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 585 of file window.hpp.
|
inline |
Definition at line 587 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 599 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 593 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 596 of file window.hpp.
Referenced by gui2::window::layout_linked_widgets().