Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OperationMode Class Reference

Operation mode DrawingArea. More...

#include <manager_gui.h>

Inheritance diagram for OperationMode:
Inheritance graph
[legend]

Public Types

enum  EnumOperationMode { DIRECT, HIGH }
 Operation mode possible states. More...
 

Public Member Functions

int getMode (void)
 Return the operation mode as int. More...
 
 OperationMode (int side_length=100, EnumOperationMode operation_mode=DIRECT)
 Class constructor. More...
 
void operator= (EnumOperationMode mode)
 Set the current operation mode. More...
 
bool operator== (EnumOperationMode mode)
 Check the current operation mode. More...
 
virtual ~OperationMode ()
 Class destructor. More...
 
- Public Member Functions inherited from ExtendedDrawingArea
void drawText (std::string text, const Cairo::RefPtr< Cairo::Context > &cr, const int rectangle_width, const int rectangle_height, double font_size=10)
 Function to draw text in a Gtk::DrawingArea. More...
 
void drawTextItalics (std::string text, const Cairo::RefPtr< Cairo::Context > &cr, const int rectangle_width, const int rectangle_height, double font_size=10)
 Function to draw text in a Gtk::DrawingArea in italics. More...
 
void drawTextItalicsNotBold (std::string text, const Cairo::RefPtr< Cairo::Context > &cr, const int rectangle_width, const int rectangle_height, double font_size=10)
 Function to draw text in a Gtk::DrawingArea, italics but not bold. More...
 
 ExtendedDrawingArea ()
 Class constructor. More...
 
virtual ~ExtendedDrawingArea ()
 Class destructor. More...
 

Protected Member Functions

virtual bool on_draw (const Cairo::RefPtr< Cairo::Context > &cr)
 On draw signal handler. More...
 

Protected Attributes

EnumOperationMode operation_mode_
 Current operation mode. More...
 
int side_length_
 Widget size. More...
 
- Protected Attributes inherited from ExtendedDrawingArea
Glib::RefPtr< Gdk::Pixbuf > image_
 Generic pixbuf mostly used to hold a background image. More...
 

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_lengthdrawing area size
operation_modedefault operation model (DIRECT)

Definition at line 863 of file manager_gui.h.

virtual OperationMode::~OperationMode ( )
inlinevirtual

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)
inlineprotectedvirtual

On draw signal handler.

Parameters
crcairo 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
modethe desired operation mode

Definition at line 884 of file manager_gui.h.

bool OperationMode::operator== ( EnumOperationMode  mode)
inline

Check the current operation mode.

Parameters
modethe 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

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.


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


atlascar_base
Author(s): Jorge Almeida, Sérgio Pinho, Miguel Oliveira, Pedro Salvado, Andre Oliveira and Pedro Pinheiro
autogenerated on Mon Mar 2 2015 01:31:23