Magick++ 7.1.2-32
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
Magick::DrawableFont Class Reference
Inheritance diagram for Magick::DrawableFont:
Magick::DrawableBase

Public Member Functions

 DrawableFont (const std::string &font_)
 DrawableFont (const std::string &family_, StyleType style_, const unsigned int weight_, StretchType stretch_)
 DrawableFont (const DrawableFont &original_)
void operator() (MagickCore::DrawingWand *context_) const
DrawableBase * copy () const
void font (const std::string &font_)
std::string font (void) const

Private Attributes

std::string _font
std::string _family
StyleType _style
unsigned int _weight
StretchType _stretch

Detailed Description

Definition at line 1054 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableFont() [1/2]

Magick::DrawableFont::DrawableFont ( const std::string & font_)

Definition at line 776 of file Drawable.cpp.

777 : _font(font_),
778 _family(),
779 _style(Magick::AnyStyle),
780 _weight(400),
781 _stretch(Magick::NormalStretch)
782{
783}

◆ DrawableFont() [2/2]

Magick::DrawableFont::DrawableFont ( const DrawableFont & original_)

Definition at line 795 of file Drawable.cpp.

796 : DrawableBase (original_),
797 _font(original_._font),
798 _family(original_._family),
799 _style(original_._style),
800 _weight(original_._weight),
801 _stretch(original_._stretch)
802{
803}

◆ ~DrawableFont()

Magick::DrawableFont::~DrawableFont ( void )

Definition at line 804 of file Drawable.cpp.

805{
806}

Member Function Documentation

◆ copy()

Magick::DrawableBase * Magick::DrawableFont::copy ( ) const
virtual

Reimplemented from Magick::DrawableBase.

Definition at line 830 of file Drawable.cpp.

831{
832 return new DrawableFont(*this);
833}

◆ 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 807 of file Drawable.cpp.

808{
809 // font
810 if(_font.length())
811 {
812 (void) DrawSetFont( context_, _font.c_str() );
813 }
814
815 if(_family.length())
816 {
817 // font-family
818 (void) DrawSetFontFamily( context_, _family.c_str() );
819
820 // font-style
821 DrawSetFontStyle( context_, _style );
822
823 // font-weight
824 DrawSetFontWeight( context_, _weight );
825
826 // font-stretch
827 DrawSetFontStretch( context_, _stretch );
828 }
829}

Field Documentation

◆ _family

std::string Magick::DrawableFont::_family
private

Definition at line 1084 of file Drawable.h.

◆ _font

std::string Magick::DrawableFont::_font
private

Definition at line 1083 of file Drawable.h.

◆ _stretch

StretchType Magick::DrawableFont::_stretch
private

Definition at line 1087 of file Drawable.h.

◆ _style

StyleType Magick::DrawableFont::_style
private

Definition at line 1085 of file Drawable.h.

◆ _weight

unsigned int Magick::DrawableFont::_weight
private

Definition at line 1086 of file Drawable.h.


The documentation for this class was generated from the following files:
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Magick++/Drawable.h
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Drawable.cpp