The Battle for Wesnoth  1.15.0-dev
Public Member Functions | Public Attributes | List of all members
gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child Struct Reference

Definition of an item. More...

Public Member Functions

 child ()
 

Public Attributes

grid child_grid
 The grid containing the widgets. More...
 
bool selected
 Is the item selected or not. More...
 
bool shown
 Is the row shown or not. More...
 
std::size_t ordered_index
 

Detailed Description

template<class minimum_selection, class maximum_selection, class my_placement, class select_action>
struct gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child

Definition of an item.

Definition at line 926 of file generator_private.hpp.

Constructor & Destructor Documentation

◆ child()

template<class minimum_selection , class maximum_selection , class my_placement , class select_action >
gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child::child ( )
inline

Definition at line 928 of file generator_private.hpp.

Member Data Documentation

◆ child_grid

template<class minimum_selection , class maximum_selection , class my_placement , class select_action >
grid gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child::child_grid

◆ ordered_index

template<class minimum_selection , class maximum_selection , class my_placement , class select_action >
std::size_t gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child::ordered_index

Definition at line 953 of file generator_private.hpp.

◆ selected

template<class minimum_selection , class maximum_selection , class my_placement , class select_action >
bool gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child::selected

Is the item selected or not.

Definition at line 940 of file generator_private.hpp.

◆ shown

template<class minimum_selection , class maximum_selection , class my_placement , class select_action >
bool gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::child::shown

Is the row shown or not.

This flag is used the help to set the visible flag, it's preferred to test this flag for external functions.

Todo:
functions now test for visible and shown, that can use some polishing.

Definition at line 951 of file generator_private.hpp.

Referenced by gui2::generator< minimum_selection, maximum_selection, my_placement, select_action >::impl_draw_children().


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