Public Member Functions | Private Member Functions | Private Attributes

gui2::tfield_bool Class Reference

Specialized field class for boolean. More...

#include <field.hpp>

Inheritance diagram for gui2::tfield_bool:
Inheritance graph
[legend]
Collaboration diagram for gui2::tfield_bool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tfield_bool (const std::string &id, const bool mandatory, bool(*callback_load_value)(), void(*callback_save_value)(const bool value), void(*callback_change)(twidget *widget))
 tfield_bool (const std::string &id, const bool mandatory, bool &linked_variable, void(*callback_change)(twidget *widget))

Private Member Functions

void init_specialized (twindow &window)
 Overridden from tfield_.

Private Attributes

void(* callback_change_ )(twidget *widget)

Detailed Description

Specialized field class for boolean.

Definition at line 535 of file field.hpp.


Constructor & Destructor Documentation

gui2::tfield_bool::tfield_bool ( const std::string &  id,
const bool  mandatory,
bool(*)()  callback_load_value,
void(*)(const bool value)  callback_save_value,
void(*)(twidget *widget)  callback_change 
) [inline]

Definition at line 538 of file field.hpp.

gui2::tfield_bool::tfield_bool ( const std::string &  id,
const bool  mandatory,
bool &  linked_variable,
void(*)(twidget *widget)  callback_change 
) [inline]

Definition at line 549 of file field.hpp.


Member Function Documentation

void gui2::tfield_bool::init_specialized ( twindow window  )  [inline, private, virtual]

Overridden from tfield_.

Reimplemented from gui2::tfield_.

Definition at line 561 of file field.hpp.

References gui2::twindow::find(), and gui2::tselectable_::set_callback_state_change().

Here is the call graph for this function:


Member Data Documentation

void(* gui2::tfield_bool::callback_change_)(twidget *widget) [private]

Definition at line 573 of file field.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:09 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs