Store widget options : tooltip, position, description.
More...
#include <Options.h>
Store widget options : tooltip, position, description.
◆ WidgetOptions() [1/5]
| sgui::WidgetOptions::WidgetOptions |
( |
| ) |
|
|
default |
◆ WidgetOptions() [2/5]
| sgui::WidgetOptions::WidgetOptions |
( |
const std::string & | des, |
|
|
const Tooltip & | t = {}, |
|
|
const sf::Vector2f & | d = {} ) |
|
inline |
Full constructor, but with options if only description is required.
◆ WidgetOptions() [3/5]
| sgui::WidgetOptions::WidgetOptions |
( |
const Tooltip & | inf | ) |
|
|
inline |
When only a tooltip is needed.
◆ WidgetOptions() [4/5]
| sgui::WidgetOptions::WidgetOptions |
( |
const sf::Vector2f | disp | ) |
|
|
inline |
When only the relative displacement is needed.
◆ WidgetOptions() [5/5]
| sgui::WidgetOptions::WidgetOptions |
( |
const WidgetAspect & | a | ) |
|
|
inline |
To control widget appearance.
◆ aspect
To control widget aspect.
◆ description
| std::string sgui::WidgetOptions::description = "" |
◆ displacement
| sf::Vector2f sgui::WidgetOptions::displacement = {} |
To override automatic position.
◆ horizontal
| bool sgui::WidgetOptions::horizontal = false |
Is widget horizontal or vertical ?
◆ size
| sf::Vector2f sgui::WidgetOptions::size = { 6.f, 1.f } |
For slider and progress bar.
◆ tooltip
| Tooltip sgui::WidgetOptions::tooltip = {} |
The documentation for this struct was generated from the following file: