|
| UIManager (Stage *stage, StageNodePool *pool, UIConfig config=UIConfig()) |
|
Button * | new_widget_as_button (const unicode &text, Px width=Px(-1), Px height=Px(-1), std::shared_ptr< WidgetStyle > shared_style=std::shared_ptr< WidgetStyle >()) |
|
Label * | new_widget_as_label (const unicode &text, Px width=Px(-1), Px height=Px(-1)) |
|
ProgressBar * | new_widget_as_progress_bar (float min=.0f, float max=100.0f, float value=.0f) |
|
Image * | new_widget_as_image (const TexturePtr &texture) |
|
Frame * | new_widget_as_frame (const unicode &title, const Px &width=Px(-1), const Px &height=Px(-1)) |
|
Keyboard * | new_widget_as_keyboard (const KeyboardMode &mode=KEYBOARD_MODE_UPPERCASE, const unicode &initial_text="") |
|
TextEntry * | new_widget_as_text_entry (const unicode &text="", Px width=Px(-1), Px height=Px(-1)) |
|
Widget * | widget (WidgetID widget_id) |
|
void | destroy_widget (WidgetID widget) |
|
Stage * | stage () const |
|
void | destroy_object (Widget *object) |
|
void | destroy_object_immediately (Widget *object) |
|
const UIConfig * | config () const |
|
FontPtr | load_or_get_font (const std::string &family, const Px &size, const FontWeight &weight, const FontStyle &style) |
|
void | handle_touch_begin (Window *window, TouchPointID touch_id, float normalized_x, float normalized_y, float pressure) |
|
void | handle_touch_end (Window *window, TouchPointID touch_id, float normalized_x, float normalized_y) |
|
void | handle_touch_move (Window *window, TouchPointID touch_id, float normalized_x, float normalized_y, float dx, float dy) |
|
void | handle_key_down (Window *window, KeyboardCode code, ModifierKeyState modifiers) |
|
void | handle_key_up (Window *window, KeyboardCode code, ModifierKeyState modifiers) |
|
void | handle_controller_button_down (GameControllerIndex controller, JoystickButton button) |
|
void | handle_controller_button_up (GameControllerIndex controller, JoystickButton button) |
|