Definition at line 1054 of file Drawable.h.
◆ DrawableFont() [1/3]
Magick::DrawableFont::DrawableFont |
( |
const std::string & |
font_ | ) |
|
Definition at line 779 of file Drawable.cpp.
780 : _font(font_),
781 _family(),
782 _style(Magick::AnyStyle),
783 _weight(400),
784 _stretch(Magick::NormalStretch)
785{
786}
◆ DrawableFont() [2/3]
Magick::DrawableFont::DrawableFont |
( |
const std::string & |
family_, |
|
|
Magick::StyleType |
style_, |
|
|
const unsigned int |
weight_, |
|
|
Magick::StretchType |
stretch_ |
|
) |
| |
Definition at line 787 of file Drawable.cpp.
791 : _font(),
792 _family(family_),
793 _style(style_),
794 _weight(weight_),
795 _stretch(stretch_)
796{
797}
◆ DrawableFont() [3/3]
Magick::DrawableFont::DrawableFont |
( |
const DrawableFont & |
original_ | ) |
|
Definition at line 798 of file Drawable.cpp.
799 : DrawableBase (original_),
800 _font(original_._font),
801 _family(original_._family),
802 _style(original_._style),
803 _weight(original_._weight),
804 _stretch(original_._stretch)
805{
806}
◆ ~DrawableFont()
Magick::DrawableFont::~DrawableFont |
( |
void |
| ) |
|
◆ copy()
◆ font() [1/2]
void Magick::DrawableFont::font |
( |
const std::string & |
font_ | ) |
|
|
inline |
Definition at line 1073 of file Drawable.h.
1074 {
1075 _font = font_;
1076 }
◆ font() [2/2]
std::string Magick::DrawableFont::font |
( |
void |
| ) |
const |
|
inline |
Definition at line 1077 of file Drawable.h.
1078 {
1079 return _font;
1080 }
◆ operator()()
void Magick::DrawableFont::operator() |
( |
MagickCore::DrawingWand * |
context_ | ) |
const |
|
virtual |
Reimplemented from Magick::DrawableBase.
Definition at line 810 of file Drawable.cpp.
811{
812
813 if(_font.length())
814 {
815 (void) DrawSetFont( context_, _font.c_str() );
816 }
817
818 if(_family.length())
819 {
820
821 (void) DrawSetFontFamily( context_, _family.c_str() );
822
823
824 DrawSetFontStyle( context_, _style );
825
826
827 DrawSetFontWeight( context_, _weight );
828
829
830 DrawSetFontStretch( context_, _stretch );
831 }
832}
◆ _family
std::string Magick::DrawableFont::_family |
|
private |
◆ _font
std::string Magick::DrawableFont::_font |
|
private |
◆ _stretch
StretchType Magick::DrawableFont::_stretch |
|
private |
◆ _style
StyleType Magick::DrawableFont::_style |
|
private |
◆ _weight
unsigned int Magick::DrawableFont::_weight |
|
private |
The documentation for this class was generated from the following files: