class GUITooltip

Inherits: GUIWidget

GUI widget that renders a tooltip overlaid over other GUI elements.

Public

Constructors

GUITooltip

GUITooltip(const HSceneObject &parent, const GUIWidget &overlaidWidget, const GUIPhysicalPoint &position, const String &text)

Creates a new tooltip widget.

parent
Parent scene object to attach the tooltip to.
overlaidWidget
Widget over which to overlay the tooltip.
position
Position of the tooltip, relative to the overlaid widget position.
text
Text to display in the tooltip.

Methods

~GUITooltip

~GUITooltip() noexcept = default

Protected

Methods

OnCreated

void OnCreated() override

Called once when the component has been created.

Called regardless of the state the component is in.

Private

Fields

mPosition

GUIPhysicalPoint mPosition

mText

String mText