Powered by Pair ImageMagick logo
Image Magick
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Magick::DrawableFont Class Reference

#include <Drawable.h>

Inheritance diagram for Magick::DrawableFont:

Inheritance graph
[legend]
Collaboration diagram for Magick::DrawableFont:

Collaboration graph
[legend]

Public Member Functions

 DrawableFont (const std::string &font_)
 DrawableFont (const std::string &family_, StyleType style_, const unsigned long weight_, StretchType stretch_)
 DrawableFont (const DrawableFont &original_)
 ~DrawableFont (void)
void operator() (MagickLib::DrawContext context_) const
DrawableBasecopy () const
void font (const std::string &font_)
std::string font (void) const
 DrawableFont (const std::string &font_)
 DrawableFont (const std::string &family_, StyleType style_, const unsigned long weight_, StretchType stretch_)
 DrawableFont (const DrawableFont &original_)
 ~DrawableFont (void)
void operator() (MagickLib::DrawContext context_) const
DrawableBasecopy () const
void font (const std::string &font_)
std::string font (void) const

Private Attributes

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

Constructor & Destructor Documentation

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

Definition at line 625 of file Drawable.cpp.

References AnyStyle, DrawableFont(), and NormalStretch.

Referenced by DrawableFont().

00626 : _font(font_), 00627 _family(), 00628 _style(Magick::AnyStyle), 00629 _weight(400), 00630 _stretch(Magick::NormalStretch) 00631 { 00632 }

Here is the call graph for this function:

Magick::DrawableFont::DrawableFont const std::string &  family_,
StyleType  style_,
const unsigned long  weight_,
StretchType  stretch_
 

Definition at line 633 of file Drawable.cpp.

References DrawableFont().

00637 : _font(), 00638 _family(family_), 00639 _style(style_), 00640 _weight(weight_), 00641 _stretch(stretch_) 00642 { 00643 }

Here is the call graph for this function:

Magick::DrawableFont::DrawableFont const DrawableFont original_  ) 
 

Definition at line 644 of file Drawable.cpp.

References DrawableFont().

00645 : DrawableBase (original_), 00646 _font(original_._font), 00647 _family(original_._family), 00648 _style(original_._style), 00649 _weight(original_._weight), 00650 _stretch(original_._stretch) 00651 { 00652 }

Here is the call graph for this function:

Magick::DrawableFont::~DrawableFont void   ) 
 

Definition at line 653 of file Drawable.cpp.

00654 { 00655 }

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

Magick::DrawableFont::DrawableFont const std::string &  family_,
StyleType  style_,
const unsigned long  weight_,
StretchType  stretch_
 

Magick::DrawableFont::DrawableFont const DrawableFont original_  ) 
 

Magick::DrawableFont::~DrawableFont void   ) 
 


Member Function Documentation

DrawableBase* Magick::DrawableFont::copy  )  const [virtual]
 

Implements Magick::DrawableBase.

Magick::DrawableBase * Magick::DrawableFont::copy  )  const [virtual]
 

Implements Magick::DrawableBase.

Definition at line 679 of file Drawable.cpp.

00680 { 00681 return new DrawableFont(*this); 00682 }

std::string Magick::DrawableFont::font void   )  const [inline]
 

Definition at line 948 of file Drawable.h.

00949 { 00950 return _font; 00951 }

void Magick::DrawableFont::font const std::string &  font_  )  [inline]
 

Definition at line 944 of file Drawable.h.

00945 { 00946 _font = font_; 00947 }

std::string Magick::DrawableFont::font void   )  const [inline]
 

Definition at line 948 of file Drawable.h.

00949 { 00950 return _font; 00951 }

void Magick::DrawableFont::font const std::string &  font_  )  [inline]
 

Definition at line 944 of file Drawable.h.

00945 { 00946 _font = font_; 00947 }

void Magick::DrawableFont::operator() MagickLib::DrawContext  context_  )  const [virtual]
 

Implements Magick::DrawableBase.

void Magick::DrawableFont::operator() MagickLib::DrawContext  context_  )  const [virtual]
 

Implements Magick::DrawableBase.

Definition at line 656 of file Drawable.cpp.

References _family, _font, _stretch, _style, _weight, DrawSetFont(), DrawSetFontFamily(), DrawSetFontStretch(), DrawSetFontStyle(), DrawSetFontWeight(), and operator()().

Referenced by operator()().

00657 { 00658 // font 00659 if(_font.length()) 00660 { 00661 (void) DrawSetFont( context_, _font.c_str() ); 00662 } 00663 00664 if(_family.length()) 00665 { 00666 // font-family 00667 (void) DrawSetFontFamily( context_, _family.c_str() ); 00668 00669 // font-style 00670 DrawSetFontStyle( context_, _style ); 00671 00672 // font-weight 00673 DrawSetFontWeight( context_, _weight ); 00674 00675 // font-stretch 00676 DrawSetFontStretch( context_, _stretch ); 00677 } 00678 }

Here is the call graph for this function:


Field Documentation

std::string Magick::DrawableFont::_family [private]
 

Definition at line 955 of file Drawable.h.

Referenced by operator()().

std::string Magick::DrawableFont::_font [private]
 

Definition at line 954 of file Drawable.h.

Referenced by operator()().

StretchType Magick::DrawableFont::_stretch [private]
 

Definition at line 958 of file Drawable.h.

Referenced by operator()().

StyleType Magick::DrawableFont::_style [private]
 

Definition at line 956 of file Drawable.h.

Referenced by operator()().

unsigned long Magick::DrawableFont::_weight [private]
 

Definition at line 957 of file Drawable.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Mon Oct 25 13:47:38 2004 for ImageMagick by doxygen 1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC