Drawing area extension class.
More...
#include <manager_gui.h>
|
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...
|
|
|
Glib::RefPtr< Gdk::Pixbuf > | image_ |
| Generic pixbuf mostly used to hold a background image. More...
|
|
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.
ExtendedDrawingArea::ExtendedDrawingArea |
( |
| ) |
|
|
inline |
virtual ExtendedDrawingArea::~ExtendedDrawingArea |
( |
| ) |
|
|
inlinevirtual |
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.
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