|
CeresEngine 0.2.0
A game development framework
|
A set of common and useful functions for implementing UIs. More...
#include <CeresEngine/UI/UIUtility.hpp>
Static Public Member Functions | |
| static bool | makeFirstResponder (UIView *view) |
| Makes the view the first responder in it's window. | |
| static bool | isOver (const UIView *view, const UIMouseEvent &event) |
| A utility method that checks if the event occurred over the view. | |
| static bool | forwardInputEvent (UIWindow *window, const AnyInputEvent &event) |
A utility method that forwards a generic AnyEvent to the given window. | |
A set of common and useful functions for implementing UIs.
|
static |
A utility method that forwards a generic AnyEvent to the given window.
|
static |
A utility method that checks if the event occurred over the view.
This is useful for checking if the event was a click-drag, which can be handled as a cancellation.
| view | The view to be checked. |
| event | The event to extract the location for. |
true if the event occurred over the view, false otherwise. Makes the view the first responder in it's window.
| view | The view to be made first responder. This view must be attached to a window. |
true if the view is now the first responder, false if the current first responder rejected or the view rejected first responder status.