|
Smolgui
Immediate gui library based on SFML
|
Store data required to fully customize how a widget is drawn. More...
#include <Aspect.h>
Public Member Functions | |
| WidgetAspect ()=default | |
| WidgetAspect (const Widget w, const Slices s=Slices::Default, const ItemState is=ItemState::None) | |
| Constructor for widgets with default texture name. | |
| WidgetAspect (const std::string &img, const Slices s=Slices::Default, const ItemState is=ItemState::None) | |
| Constructor for widgets with custom texture name. | |
Public Attributes | |
| std::string | image = "" |
| To use custom widget texture, you should use Widget::Image and put the texture index here. | |
| Widget | widget = Widget::None |
| Change default widget type. | |
| Slices | slices = Slices::Default |
| Change default widget slicing. | |
| ItemState | state = ItemState::None |
| To force a specific state. | |
Store data required to fully customize how a widget is drawn.
|
default |
|
inline |
Constructor for widgets with default texture name.
|
inline |
Constructor for widgets with custom texture name.
| std::string sgui::WidgetAspect::image = "" |
To use custom widget texture, you should use Widget::Image and put the texture index here.
| Slices sgui::WidgetAspect::slices = Slices::Default |
Change default widget slicing.
| ItemState sgui::WidgetAspect::state = ItemState::None |
To force a specific state.
| Widget sgui::WidgetAspect::widget = Widget::None |
Change default widget type.