OperationMode Class Reference

Operation mode DrawingArea. More...

#include <manager_gui.h>

Inheritance diagram for OperationMode:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Enumeration Documentation

Operation mode possible states.

Enumerator:
DIRECT 
HIGH 

Definition at line 855 of file manager_gui.h.


Constructor & Destructor Documentation

OperationMode::OperationMode ( int  side_length = 100,
EnumOperationMode  operation_mode = DIRECT 
) [inline]

Class constructor.

Parameters:
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]

Class destructor.

Does nothing.

Definition at line 877 of file manager_gui.h.


Member Function Documentation

int OperationMode::getMode ( void   )  [inline]

Return the operation mode as int.

Returns:
Current operation mode as int (DIRECT=1, HIGH=2)

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.

Parameters:
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.

Parameters:
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.

Parameters:
mode the operation mode to check against.
Returns:
True if their equal, false if not

Definition at line 895 of file manager_gui.h.


Member Data Documentation

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.


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


atlascar_base
Author(s): Jorge Almeida, Miguel Oliveira, Pedro Salvado, Andre Oliveira and Pedro Pinheiro
autogenerated on Wed Jul 23 04:34:34 2014