![]() |
Lysa UI
0.0
Lysa UI —UI components for the Lysa Engine
|
Classic vector style UI with 3D look.
Inheritance diagram for StyleClassic:Public Member Functions | |
| ~StyleClassic () override = default | |
| void | draw (const Widget &widget, UIResource &resources, Vector2DRenderer &renderer, bool before) const override |
| void | addResource (Widget &widget, const std::string &resources) override |
| void | resize (Widget &widget, Rect &rect, UIResource &resources) override |
Public Member Functions inherited from Style | |
| Style () | |
| virtual | ~Style () = default |
| virtual void | setOption (const std::string &name, const std::string &value) |
| std::string | getOption (const std::string &name) const |
| std::shared_ptr< Font > | getFont () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Style | |
| static std::shared_ptr< Style > | create (const std::string &name="vector") |
Protected Member Functions inherited from Style | |
| virtual void | init () |
Protected Attributes inherited from Style | |
| std::shared_ptr< Font > | font |
|
overridedefault |
|
overridevirtual |
Create a resource from a resources description string.
| widget | Widget to associate resources with. |
| resources | String describing the resources. |
Implements lysa::ui::Style::addResource()
|
overridevirtual |
Draws a widget.
| widget | Widget to draw. |
| resources | Resources used for drawing this widget. |
| render | The 2D renderer. |
| when | True = before drawing children, False = after. |
Implements lysa::ui::Style::draw()
|
overridevirtual |
Adjusts a widget size to style specific constraints.
| widget | The widget being resized. |
| rect | The rectangle to adjust. |
| resources | The widget's UI resources. |
Implements lysa::ui::Style::resize()