MyRP2_ui_core
Loading...
Searching...
No Matches
UIControlledIncrementalValue Class Reference
Inheritance diagram for UIControlledIncrementalValue:
UIModelObject TestIncrementalValue UIObjectManager Test_Manager

Public Member Functions

 UIControlledIncrementalValue (int _min_value=0, int _max_value=10, bool _is_wrapable=false, int increment=1)
 Construct a new UIControlledIncrementalValue object.
 
 ~UIControlledIncrementalValue ()
 Destroy the UIControlledIncrementalValue object.
 
virtual void increment_value ()
 
virtual void decrement_value ()
 
void set_clipped_value (int _new_value)
 Set the clipped value object.
 
int get_value ()
 Get the value object.
 
int get_min_value ()
 Get the min value object.
 
int get_max_value ()
 Get the max value object.
 
- Public Member Functions inherited from UIModelObject
 ~UIModelObject ()
 Destroy the UIModelObject object.
 
bool has_changed ()
 
void set_change_flag ()
 Set the change flag object.
 
void clear_change_flag ()
 
void update_status (ControlledObjectStatus _new_status)
 
void update_current_controller (UIController *_new_controller)
 
ControlledObjectStatus get_status ()
 Get the status object.
 
virtual void process_control_event (ControlEvent _event)=0
 

Protected Attributes

int value
 
int max_value
 
int min_value
 
int increment
 
bool is_wrappable
 

Detailed Description

Definition at line 189 of file ui_core.h.

Constructor & Destructor Documentation

◆ UIControlledIncrementalValue()

UIControlledIncrementalValue::UIControlledIncrementalValue ( int _min_value = 0,
int _max_value = 10,
bool _is_wrapable = false,
int increment = 1 )

Construct a new UIControlledIncrementalValue object.

Parameters
_min_value
_max_value
_is_wrapable
increment

Definition at line 58 of file ui_core.cpp.

◆ ~UIControlledIncrementalValue()

UIControlledIncrementalValue::~UIControlledIncrementalValue ( )

Destroy the UIControlledIncrementalValue object.

Definition at line 68 of file ui_core.cpp.

Member Function Documentation

◆ decrement_value()

void UIControlledIncrementalValue::decrement_value ( )
virtual

Definition at line 82 of file ui_core.cpp.

◆ get_max_value()

int UIControlledIncrementalValue::get_max_value ( )

Get the max value object.

Returns
int

Definition at line 110 of file ui_core.cpp.

◆ get_min_value()

int UIControlledIncrementalValue::get_min_value ( )

Get the min value object.

Returns
int

Definition at line 105 of file ui_core.cpp.

◆ get_value()

int UIControlledIncrementalValue::get_value ( )

Get the value object.

Returns
int

Definition at line 100 of file ui_core.cpp.

◆ increment_value()

void UIControlledIncrementalValue::increment_value ( )
virtual

Definition at line 72 of file ui_core.cpp.

◆ set_clipped_value()

void UIControlledIncrementalValue::set_clipped_value ( int _new_value)

Set the clipped value object.

Parameters
_new_value

Definition at line 92 of file ui_core.cpp.

Member Data Documentation

◆ increment

int UIControlledIncrementalValue::increment
protected

Definition at line 212 of file ui_core.h.

◆ is_wrappable

bool UIControlledIncrementalValue::is_wrappable
protected

Definition at line 217 of file ui_core.h.

◆ max_value

int UIControlledIncrementalValue::max_value
protected

Definition at line 202 of file ui_core.h.

◆ min_value

int UIControlledIncrementalValue::min_value
protected

Definition at line 207 of file ui_core.h.

◆ value

int UIControlledIncrementalValue::value
protected

Definition at line 197 of file ui_core.h.


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