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. 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... | |
![]() | |
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... | |
![]() | |
Glib::RefPtr< Gdk::Pixbuf > | image_ |
Generic pixbuf mostly used to hold a background image. More... | |
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.
|
inline |
Class constructor.
side_length | drawing area size |
operation_mode | default operation model (DIRECT) |
Definition at line 863 of file manager_gui.h.
|
inlinevirtual |
|
inline |
Return the operation mode as int.
Definition at line 907 of file manager_gui.h.
|
inlineprotectedvirtual |
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.
|
inline |
Set the current operation mode.
mode | the desired operation mode |
Definition at line 884 of file manager_gui.h.
|
inline |
Check the current operation mode.
mode | the operation mode to check against. |
Definition at line 895 of file manager_gui.h.
|
protected |
Current operation mode.
Definition at line 987 of file manager_gui.h.
|
protected |
Widget size.
Definition at line 985 of file manager_gui.h.