Operation mode DrawingArea. More...
#include <manager_gui.h>
Public Types | |
enum | EnumOperationMode { DIRECT, HIGH } |
Operation mode possible states. More... | |
Public Member Functions | |
int | getMode (void) |
Return the operation mode as int. | |
OperationMode (int side_length=100, EnumOperationMode operation_mode=DIRECT) | |
Class constructor. | |
void | operator= (EnumOperationMode mode) |
Set the current operation mode. | |
bool | operator== (EnumOperationMode mode) |
Check the current operation mode. | |
virtual | ~OperationMode () |
Class destructor. | |
Protected Member Functions | |
virtual bool | on_draw (const Cairo::RefPtr< Cairo::Context > &cr) |
On draw signal handler. | |
Protected Attributes | |
EnumOperationMode | operation_mode_ |
Current operation mode. | |
int | side_length_ |
Widget size. |
Operation mode DrawingArea.
This class graphical represents the current operation mode. The operation mode can either be DIRECT or HIGH. This class inherits the ExtendedDrawingArea class.
Definition at line 851 of file manager_gui.h.
Operation mode possible states.
Definition at line 855 of file manager_gui.h.
OperationMode::OperationMode | ( | int | side_length = 100 , |
|
EnumOperationMode | operation_mode = DIRECT | |||
) | [inline] |
Class constructor.
side_length | drawing area size | |
operation_mode | default operation model (DIRECT) |
Definition at line 863 of file manager_gui.h.
virtual OperationMode::~OperationMode | ( | ) | [inline, virtual] |
int OperationMode::getMode | ( | void | ) | [inline] |
Return the operation mode as int.
Definition at line 907 of file manager_gui.h.
virtual bool OperationMode::on_draw | ( | const Cairo::RefPtr< Cairo::Context > & | cr | ) | [inline, protected, virtual] |
On draw signal handler.
cr | cairo context |
This function is called every time there is a redraw event on the DrawingArea.
Definition at line 928 of file manager_gui.h.
void OperationMode::operator= | ( | EnumOperationMode | mode | ) | [inline] |
Set the current operation mode.
mode | the desired operation mode |
Definition at line 884 of file manager_gui.h.
bool OperationMode::operator== | ( | EnumOperationMode | mode | ) | [inline] |
Check the current operation mode.
mode | the operation mode to check against. |
Definition at line 895 of file manager_gui.h.
EnumOperationMode OperationMode::operation_mode_ [protected] |
Current operation mode.
Definition at line 987 of file manager_gui.h.
int OperationMode::side_length_ [protected] |
Widget size.
Definition at line 985 of file manager_gui.h.