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::tsub_player_list Struct Reference

#include <lobby.hpp>

Public Member Functions

void init (twindow &w, const std::string &id)
 
void show_toggle_callback (twidget &widget)
 
void auto_hide ()
 

Public Attributes

tlabellabel
 
tlabelcount
 
ttoggle_buttonshow_toggle
 
tlistboxlist
 
ttree_view_nodetree
 
tlabeltree_label
 

Detailed Description

Definition at line 57 of file lobby.hpp.

Member Function Documentation

void gui2::tsub_player_list::auto_hide ( )
Todo:
Make sure setting visible resizes the widget.

It doesn't work here since invalidate_layout is blocked, but the widget should also be able to handle it itself. Once done the setting of the label text can also be removed.

Definition at line 112 of file lobby.cpp.

References gui2::ttree_view_node::empty(), label, gui2::tcontrol::label(), gui2::tcontrol::set_label(), gui2::ttree_view_node::size(), tree, and tree_label.

Referenced by gui2::tlobby_main::update_playerlist().

void gui2::tsub_player_list::init ( gui2::twindow w,
const std::string id 
)

Definition at line 76 of file lobby.cpp.

References gui2::id, and show_toggle_callback().

Referenced by gui2::tplayer_list::init().

void gui2::tsub_player_list::show_toggle_callback ( gui2::twidget widget)

Member Data Documentation

tlabel* gui2::tsub_player_list::count

Definition at line 63 of file lobby.hpp.

tlabel* gui2::tsub_player_list::label

Definition at line 62 of file lobby.hpp.

Referenced by auto_hide().

tlistbox* gui2::tsub_player_list::list

Definition at line 65 of file lobby.hpp.

Referenced by show_toggle_callback(), and gui2::tlobby_main::update_playerlist().

ttoggle_button* gui2::tsub_player_list::show_toggle

Definition at line 64 of file lobby.hpp.

Referenced by show_toggle_callback().

ttree_view_node* gui2::tsub_player_list::tree

Definition at line 66 of file lobby.hpp.

Referenced by auto_hide(), and gui2::tlobby_main::update_playerlist().

tlabel* gui2::tsub_player_list::tree_label

Definition at line 67 of file lobby.hpp.

Referenced by auto_hide().


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