|
| | DynText (glm::vec2 origin, const std::string &text, std::shared_ptr< gui::font::Loader > loader, Options options) |
| |
| | DynText (const std::string &text, std::shared_ptr< gui::font::Loader > loader, Options options) |
| |
| void | render () override |
| | ====================================================================================== More...
|
| |
| void | changeColor (font::Color new_color) |
| |
| void | changeText (const std::string &new_text) |
| |
| | Widget (Type type, glm::vec2 origin) |
| | Sets the type and origin position of the widget, and assigns a new unique handle. More...
|
| |
| virtual | ~Widget ()=default |
| |
| void | setOrigin (glm::vec2 origin) |
| | Overrides the current origin position with the newly specified one. More...
|
| |
| virtual void | lock () |
| | Function that is run after all of the widgets have been added to the screee but before any input handling has occurred. More...
|
| |
| CallbackHandle | addOnClick (Callback callback) |
| | ====================================================================================== More...
|
| |
| CallbackHandle | addOnHover (Callback callback) |
| | Register a new onHover callback function for this widget. More...
|
| |
| void | removeOnClick (CallbackHandle handle) |
| | Removes the onClick callback function associated with the given handle. More...
|
| |
| void | removeOnHover (CallbackHandle handle) |
| | Removes the onHover callback function associated with the given handle. More...
|
| |
| virtual void | doClick (float x, float y) |
| | Performs a click at the specified (x,y) position in the GUI coordinate frame. More...
|
| |
| virtual void | doHover (float x, float y) |
| | Performs a hover action at the specified (x,y) position in the GUI coordinate frame. More...
|
| |
| virtual void | render ()=0 |
| | ====================================================================================== More...
|
| |
| Type | getType () const |
| | ====================================================================================== More...
|
| |
| const glm::vec2 & | getOrigin () const |
| | Queries the origin position of the widget. More...
|
| |
| std::pair< std::size_t, std::size_t > | getSize () const |
| | Queries the size of the widget in pixels. More...
|
| |
| Handle | getHandle () const |
| | Queries the handle for this specific widget. More...
|
| |
| virtual bool | hasHandle (Handle handle) const |
| | ====================================================================================== More...
|
| |
| virtual Widget * | borrow (Handle handle) |
| | Gives a pointer to the subwidget specified by the handle. More...
|
| |
| void gui::widget::DynText::render |
( |
| ) |
|
|
overridevirtual |
======================================================================================
=<DISPLAY>============================================================================
Renders the widget to the screen
This is the only function that must be overridden by derived classes.
Implements gui::widget::Widget.