The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
gui2::twindow::tlinked_size Struct Reference

Helper struct to force widgets the have the same size. More...

Public Member Functions

 tlinked_size (const bool width=false, const bool height=false)
 

Public Attributes

std::vector< twidget * > widgets
 The widgets linked. More...
 
int width
 the current width of all widgets in the intis group, -1 if the width is not linked More...
 
int height
 the current height of all widgets in the intis group, -1 if the height is not linked More...
 

Detailed Description

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 603 of file window.hpp.

Constructor & Destructor Documentation

gui2::twindow::tlinked_size::tlinked_size ( const bool  width = false,
const bool  height = false 
)
inline

Definition at line 605 of file window.hpp.

Member Data Documentation

int gui2::twindow::tlinked_size::height

the current height of all widgets in the intis group, -1 if the height is not linked

Definition at line 617 of file window.hpp.

std::vector<twidget*> gui2::twindow::tlinked_size::widgets

The widgets linked.

Definition at line 611 of file window.hpp.

int gui2::twindow::tlinked_size::width

the current width of all widgets in the intis group, -1 if the width is not linked

Definition at line 614 of file window.hpp.


The documentation for this struct was generated from the following file: