GUI.h
static bool IsFocusedClicked()
Convenience function to get whether the focused widget is clicked.
bool IsFocused()
Returns whether the GUI is focused view the SetFocus() function.
bool IsBeingDragged()
Returns whether the user's pointer is attempting to drag the region.
void OnStep()
Function that is called upon each Run iteration. Component Run()s are run before the entity's run fun...
const std::string & GetTooltipText() const
Returns the currently set tooltip text. The default is the empty string.
Definition: AssetID.h:37
std::string GetInfo()
Returns a string containing human-readable information on the state of the component.
bool IsClicked()
Returns whether the user's pointer clicked within this GUI's region this frame.
A component that provides managed input interaction suitable for making things like buttons...
Definition: GUI.h:52
static bool IsFocusedHovered()
Convenience function to get whether the focused widget is hovered.
void SetTooltipText(const std::string &tooltip)
Sets text to appear if the pointer is above it.
Class that extends the functionality of an Entity, but as a removable and addable object...
Definition: Component.h:66
bool IsHovered()
Returns whether user's pointer is over this GUI's region this frame.