Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Friends | List of all members
smlt::ui::UIManager Class Reference
Inheritance diagram for smlt::ui::UIManager:
smlt::EventListener

Public Member Functions

 UIManager (Stage *stage, StageNodePool *pool, UIConfig config=UIConfig())
 
Buttonnew_widget_as_button (const unicode &text, Px width=Px(-1), Px height=Px(-1), std::shared_ptr< WidgetStyle > shared_style=std::shared_ptr< WidgetStyle >())
 
Labelnew_widget_as_label (const unicode &text, Px width=Px(-1), Px height=Px(-1))
 
ProgressBarnew_widget_as_progress_bar (float min=.0f, float max=100.0f, float value=.0f)
 
Imagenew_widget_as_image (const TexturePtr &texture)
 
Framenew_widget_as_frame (const unicode &title, const Px &width=Px(-1), const Px &height=Px(-1))
 
Keyboardnew_widget_as_keyboard (const KeyboardMode &mode=KEYBOARD_MODE_UPPERCASE, const unicode &initial_text="")
 
TextEntrynew_widget_as_text_entry (const unicode &text="", Px width=Px(-1), Px height=Px(-1))
 
Widgetwidget (WidgetID widget_id)
 
void destroy_widget (WidgetID widget)
 
Stagestage () const
 
void destroy_object (Widget *object)
 
void destroy_object_immediately (Widget *object)
 
const UIConfigconfig () const
 
FontPtr load_or_get_font (const std::string &family, const Px &size, const FontWeight &weight, const FontStyle &style)
 
- Public Member Functions inherited from smlt::EventListener
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)
 

Friends

class Widget
 
class ::smlt::Stage
 
class ::smlt::Application
 

The documentation for this class was generated from the following files: