The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Public Attributes | List of all members
gui2::window::linked_size Struct Reference

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...
 

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

Constructor & Destructor Documentation

◆ linked_size()

gui2::window::linked_size::linked_size ( const bool  width = false,
const bool  height = false 
)
inline

Definition at line 586 of file window.hpp.

Member Data Documentation

◆ height

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().

◆ 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().

◆ width

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().


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