Helper struct to force widgets the have the same size. More...
Public Member Functions | |
linked_size (const bool width=false, const bool height=false) | |
Public Attributes | |
std::vector< widget * > | widgets |
The widgets linked. More... | |
int | width |
The current width of all widgets in the group, -1 if the width is not linked. More... | |
int | height |
The current height of all widgets in the group, -1 if the height is not linked. More... | |
Helper struct to force widgets the have the same size.
Widget which are linked will get the same width and/or height. This can especially be useful for listboxes, but can also be used for other applications.
Definition at line 584 of file window.hpp.
|
inline |
Definition at line 586 of file window.hpp.
int gui2::window::linked_size::height |
The current height of all widgets in the group, -1 if the height is not linked.
Definition at line 598 of file window.hpp.
Referenced by gui2::window::layout_linked_widgets().
std::vector<widget*> gui2::window::linked_size::widgets |
The widgets linked.
Definition at line 592 of file window.hpp.
Referenced by gui2::window::layout_linked_widgets().
int gui2::window::linked_size::width |
The current width of all widgets in the group, -1 if the width is not linked.
Definition at line 595 of file window.hpp.
Referenced by gui2::window::layout_linked_widgets().