Drawing area extension class. More...
#include <manager_gui.h>
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. |
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 | ( | ) | [inline, virtual] |
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.
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.
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.
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.