The Battle for Wesnoth  1.15.2+dev
Public Member Functions | List of all members
gui2::integer_selector Class Referenceabstract

Small abstract helper class. More...

#include <integer_selector.hpp>

Inheritance diagram for gui2::integer_selector:
Inheritance graph

Public Member Functions

virtual ~integer_selector ()
 
virtual void set_value (int value)=0
 Sets the selected value. More...
 
virtual int get_value () const =0
 Gets the selected value. More...
 
virtual int get_minimum_value () const =0
 Gets the minimum value. More...
 
virtual int get_maximum_value () const =0
 Gets the maximum value. More...
 

Detailed Description

Small abstract helper class.

Parts of the engine inherit this class so we can have generic widgets to select an integer value.

Definition at line 26 of file integer_selector.hpp.

Constructor & Destructor Documentation

◆ ~integer_selector()

virtual gui2::integer_selector::~integer_selector ( )
inlinevirtual

Member Function Documentation

◆ get_maximum_value()

virtual int gui2::integer_selector::get_maximum_value ( ) const
pure virtual

Gets the maximum value.

Implemented in gui2::slider.

Referenced by ~integer_selector().

◆ get_minimum_value()

virtual int gui2::integer_selector::get_minimum_value ( ) const
pure virtual

Gets the minimum value.

Implemented in gui2::slider.

Referenced by ~integer_selector().

◆ get_value()

virtual int gui2::integer_selector::get_value ( ) const
pure virtual

Gets the selected value.

Implemented in gui2::slider.

Referenced by ~integer_selector().

◆ set_value()

virtual void gui2::integer_selector::set_value ( int  value)
pure virtual

Sets the selected value.

Implemented in gui2::slider.

Referenced by gui2::dialogs::debug_clock::update_time(), and ~integer_selector().


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