Attorney for game loop access to UIComponent methods. More...
#include <UIAttorney.h>
Static Private Member Functions | |
static void | Render (UIComponent *p) |
Calls the Render method of the UIComponent object. | |
static bool | IsMouseOver (UIComponent *p, float xPos, float yPos) |
Checks if the mouse is over the UIComponent object. | |
static void | OnPress (UIComponent *p) |
Calls the OnPress method of the UIComponent object. | |
static UIComponentType | GetType (UIComponent *p) |
Calls the OnRelease method of the UIComponent object. | |
static void | OnButtonHover (UIComponent *p) |
Calls the OnPress method of the Button object. | |
static void | OnButtonHold (UIComponent *p) |
Calls the OnHold method of the Button object. | |
static void | OnButtonRelease (UIComponent *p) |
Calls the OnRelease method of the Button object. | |
static bool | IsEnabled (UIComponent *p) |
Checks if the UIComponent is enabled. | |
static void | OnComponentLayerChanged (UIComponent *p, int oldLayer, int newLayer) |
Sets the enabled state of the UIComponent. | |
Friends | |
class | UIComponent |
class | Canvas |
class | Dropdown |
class | ScrollList |
Attorney for game loop access to UIComponent methods.
The GameLoop class provides static methods to allow Canvas, Dropdown, and ScrollList to invoke protected or private methods of UIComponent and Button, such as rendering, input event handling, and type queries.
Only classes declared as friends (Canvas, Dropdown, ScrollList) can use these methods.
|
inlinestaticprivate |
Calls the OnRelease method of the UIComponent object.
p | Pointer to the UIComponent object. |
|
inlinestaticprivate |
Checks if the UIComponent is enabled.
|
inlinestaticprivate |
Checks if the mouse is over the UIComponent object.
p | Pointer to the UIComponent object. |
xPos | X position of the mouse. |
yPos | Y position of the mouse. |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
Sets the enabled state of the UIComponent.
p | Pointer to the UIComponent object. |
enabled | True to enable, false to disable. |
|
inlinestaticprivate |
Calls the OnPress method of the UIComponent object.
p | Pointer to the UIComponent object. |
|
inlinestaticprivate |
Calls the Render method of the UIComponent object.
p | Pointer to the UIComponent object. |