ExtendedDrawingArea Class Reference

Drawing area extension class. More...

#include <manager_gui.h>

Inheritance diagram for ExtendedDrawingArea:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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.
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.
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.
 ExtendedDrawingArea ()
 Class constructor.
virtual ~ExtendedDrawingArea ()
 Class destructor.

Protected Attributes

Glib::RefPtr< Gdk::Pixbuf > image_
 Generic pixbuf mostly used to hold a background image.

Detailed Description

Drawing area extension class.

This class extends the Gtk::DrawingArea by adding text drawing functions and a Gdk::Pixbuf.

Definition at line 207 of file manager_gui.h.


Constructor & Destructor Documentation

ExtendedDrawingArea::ExtendedDrawingArea (  )  [inline]

Class constructor.

Does nothing.

Definition at line 215 of file manager_gui.h.

virtual ExtendedDrawingArea::~ExtendedDrawingArea (  )  [inline, virtual]

Class destructor.

Does nothing.

Definition at line 225 of file manager_gui.h.


Member Function Documentation

void ExtendedDrawingArea::drawText ( std::string  text,
const Cairo::RefPtr< Cairo::Context > &  cr,
const int  rectangle_width,
const int  rectangle_height,
double  font_size = 10 
) [inline]

Function to draw text in a Gtk::DrawingArea.

Parameters:
text std::string containing the text to draw
cr Cairo::Context in which the drawing is preformed
rectangle_width x center position of the text
rectangle_height y center position of the text
font_size font size used (default 10)

Draw a bold text with Monospace font in a DrawingArea.

Definition at line 240 of file manager_gui.h.

void ExtendedDrawingArea::drawTextItalics ( std::string  text,
const Cairo::RefPtr< Cairo::Context > &  cr,
const int  rectangle_width,
const int  rectangle_height,
double  font_size = 10 
) [inline]

Function to draw text in a Gtk::DrawingArea in italics.

Parameters:
text std::string containing the text to draw
cr Cairo::Context in which the drawing is preformed
rectangle_width x center position of the text
rectangle_height y center position of the text
font_size font size used (default 10)

Draw a bold italic text with Monospace font in a DrawingArea.

Definition at line 276 of file manager_gui.h.

void ExtendedDrawingArea::drawTextItalicsNotBold ( std::string  text,
const Cairo::RefPtr< Cairo::Context > &  cr,
const int  rectangle_width,
const int  rectangle_height,
double  font_size = 10 
) [inline]

Function to draw text in a Gtk::DrawingArea, italics but not bold.

Parameters:
text std::string containing the text to draw
cr Cairo::Context in which the drawing is preformed
rectangle_width x center position of the text
rectangle_height y center position of the text
font_size font size used (default 10)

Draw a italic text with Monospace font in a DrawingArea.

Definition at line 313 of file manager_gui.h.


Member Data Documentation

Glib::RefPtr<Gdk::Pixbuf> ExtendedDrawingArea::image_ [protected]

Generic pixbuf mostly used to hold a background image.

Definition at line 341 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