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

Drawing area extension class. More...

#include <manager_gui.h>

Inheritance diagram for ExtendedDrawingArea:
Inheritance graph
[legend]

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. 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 Attributes

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

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 ( )
inlinevirtual

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
textstd::string containing the text to draw
crCairo::Context in which the drawing is preformed
rectangle_widthx center position of the text
rectangle_heighty center position of the text
font_sizefont 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
textstd::string containing the text to draw
crCairo::Context in which the drawing is preformed
rectangle_widthx center position of the text
rectangle_heighty center position of the text
font_sizefont 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
textstd::string containing the text to draw
crCairo::Context in which the drawing is preformed
rectangle_widthx center position of the text
rectangle_heighty center position of the text
font_sizefont 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:


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