Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
SvgFontDrawingArea Class Referencefinal

#include <svg-fonts-dialog.h>

Inheritance diagram for SvgFontDrawingArea:

Public Member Functions

 SvgFontDrawingArea ()
 
void set_text (Glib::ustring)
 
void set_svgfont (SvgFont *)
 
void set_size (int x, int y)
 
void redraw ()
 

Private Member Functions

void draw_func (Cairo::RefPtr< Cairo::Context > const &cr, int width, int height)
 

Private Attributes

int _x = 0
 
int _y = 0
 
SvgFont_svgfont = nullptr
 
Glib::ustring _text
 

Detailed Description

Definition at line 41 of file svg-fonts-dialog.h.

Constructor & Destructor Documentation

◆ SvgFontDrawingArea()

SvgFontDrawingArea::SvgFontDrawingArea ( )

Definition at line 47 of file svg-fonts-dialog.cpp.

References draw_func().

Member Function Documentation

◆ draw_func()

void SvgFontDrawingArea::draw_func ( Cairo::RefPtr< Cairo::Context > const &  cr,
int  width,
int  height 
)
private

Definition at line 72 of file svg-fonts-dialog.cpp.

References _svgfont, _text, _y, and SvgFont::get_font_face().

Referenced by SvgFontDrawingArea().

◆ redraw()

◆ set_size()

void SvgFontDrawingArea::set_size ( int  x,
int  y 
)

Definition at line 62 of file svg-fonts-dialog.cpp.

References _x, and _y.

◆ set_svgfont()

void SvgFontDrawingArea::set_svgfont ( SvgFont svgfont)

Definition at line 53 of file svg-fonts-dialog.cpp.

References _svgfont.

Referenced by Inkscape::UI::Dialog::SvgFontsDialog::font_selected().

◆ set_text()

Member Data Documentation

◆ _svgfont

SvgFont* SvgFontDrawingArea::_svgfont = nullptr
private

Definition at line 52 of file svg-fonts-dialog.h.

Referenced by draw_func(), and set_svgfont().

◆ _text

Glib::ustring SvgFontDrawingArea::_text
private

Definition at line 53 of file svg-fonts-dialog.h.

Referenced by draw_func(), and set_text().

◆ _x

int SvgFontDrawingArea::_x = 0
private

Definition at line 51 of file svg-fonts-dialog.h.

Referenced by set_size().

◆ _y

int SvgFontDrawingArea::_y = 0
private

Definition at line 51 of file svg-fonts-dialog.h.

Referenced by draw_func(), and set_size().


The documentation for this class was generated from the following files: