class GUIContent

Holds data used for displaying content in a GUIElement.

Content can consist of a string, image, a tooltip or none of those.

Public

Constructors

GUIContent

GUIContent() noexcept(false) = default

Constructs an empty content.

GUIContent

GUIContent(const HString &text)

Constructs content with just a string.

GUIContent

GUIContent(const HString &text, const HString &tooltip)

Constructs content with a string and a tooltip.

GUIContent

GUIContent(const GUIContentImages &image)

Constructs content with just an image.

GUIContent

GUIContent(const GUIContentImages &image, const HString &tooltip)

Constructs content with an image and a tooltip.

GUIContent

GUIContent(const HString &text, const GUIContentImages &image)

Constructs content with a string and an image.

GUIContent

GUIContent(const HString &text, const GUIContentImages &image, const HString &tooltip)

Constructs content with a string, an image and a tooltip.

Methods

GetImage

const HSpriteImage &GetImage(GUIElementState state = GUIElementState::Normal) const

Returns image content (if any).

Fields

Text

HString Text

Images

Tooltip

HString Tooltip