The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Types | Private Attributes | List of all members
gui2::tstate_default Class Reference

#include <matrix.hpp>

Public Member Functions

 tstate_default ()
 
void set_active (const bool active)
 
bool get_active () const
 
unsigned get_state () const
 

Protected Types

enum  tstate { ENABLED, DISABLED, COUNT }
 Possible states of the widget. More...
 

Private Attributes

tstate state_
 Current state of the widget. More...
 

Detailed Description

Definition at line 35 of file matrix.hpp.

Member Enumeration Documentation

Possible states of the widget.

Note the order of the states must be the same as defined in settings.hpp.

Enumerator
ENABLED 
DISABLED 
COUNT 

Definition at line 52 of file matrix.hpp.

Constructor & Destructor Documentation

gui2::tstate_default::tstate_default ( )

Definition at line 40 of file matrix.cpp.

Member Function Documentation

bool gui2::tstate_default::get_active ( ) const

Definition at line 50 of file matrix.cpp.

References DISABLED, and state_.

Referenced by set_active().

unsigned gui2::tstate_default::get_state ( ) const

Definition at line 55 of file matrix.cpp.

References state_.

void gui2::tstate_default::set_active ( const bool  active)

Definition at line 43 of file matrix.cpp.

References DISABLED, ENABLED, get_active(), and state_.

Member Data Documentation

tstate gui2::tstate_default::state_
private

Current state of the widget.

The state of the widget determines what to render and how the widget reacts to certain 'events'.

Definition at line 65 of file matrix.hpp.

Referenced by get_active(), get_state(), and set_active().


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