![]() |
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 |
Parses and applies a resource description string to a widget.
| widget | Widget to associate resources with. |
| resources | String describing the style resources. |
Implements lysa::ui::Style::addResource()
|
overridevirtual |
Draws a widget using the classic 3D look.
| widget | Widget to draw. |
| resources | Resources used for drawing. |
| renderer | The 2D renderer. |
| before | True when called before drawing children, false after. |
Implements lysa::ui::Style::draw()
|
overridevirtual |
Adjusts widget size to classic style constraints (borders, padding, etc.).
| widget | The widget being resized. |
| rect | The rectangle to adjust. |
| resources | The widget's UI resources. |
Implements lysa::ui::Style::resize()