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::DrawableText Class Reference

#include <Drawable.h>

Inheritance diagram for Magick::DrawableText:

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

Collaboration graph
[legend]

Public Member Functions

 DrawableText (const double x_, const double y_, const std::string &text_)
 DrawableText (const double x_, const double y_, const std::string &text_, const std::string &encoding_)
 DrawableText (const DrawableText &original_)
 ~DrawableText (void)
void operator() (MagickLib::DrawContext context_) const
DrawableBasecopy () const
void encoding (const std::string &encoding_)
void x (double x_)
double x (void) const
void y (double y_)
double y (void) const
void text (const std::string &text_)
std::string text (void) const
 DrawableText (const double x_, const double y_, const std::string &text_)
 DrawableText (const double x_, const double y_, const std::string &text_, const std::string &encoding_)
 DrawableText (const DrawableText &original_)
 ~DrawableText (void)
void operator() (MagickLib::DrawContext context_) const
DrawableBasecopy () const
void encoding (const std::string &encoding_)
void x (double x_)
double x (void) const
void y (double y_)
double y (void) const
void text (const std::string &text_)
std::string text (void) const

Private Attributes

double _x
double _y
std::string _text
std::string _encoding

Constructor & Destructor Documentation

Magick::DrawableText::DrawableText const double  x_,
const double  y_,
const std::string &  text_
 

Definition at line 1252 of file Drawable.cpp.

References DrawableText().

Referenced by DrawableText().

01254 : _x(x_), 01255 _y(y_), 01256 _text(text_), 01257 _encoding() 01258 { 01259 }

Here is the call graph for this function:

Magick::DrawableText::DrawableText const double  x_,
const double  y_,
const std::string &  text_,
const std::string &  encoding_
 

Definition at line 1260 of file Drawable.cpp.

References DrawableText().

01262 : _x(x_), 01263 _y(y_), 01264 _text(text_), 01265 _encoding(encoding_) 01266 { 01267 }

Here is the call graph for this function:

Magick::DrawableText::DrawableText const DrawableText original_  ) 
 

Definition at line 1268 of file Drawable.cpp.

References DrawableText().

01269 : DrawableBase (original_), 01270 _x(original_._x), 01271 _y(original_._y), 01272 _text(original_._text), 01273 _encoding(original_._encoding) 01274 { 01275 }

Here is the call graph for this function:

Magick::DrawableText::~DrawableText void   ) 
 

Definition at line 1276 of file Drawable.cpp.

01277 { 01278 }

Magick::DrawableText::DrawableText const double  x_,
const double  y_,
const std::string &  text_
 

Magick::DrawableText::DrawableText const double  x_,
const double  y_,
const std::string &  text_,
const std::string &  encoding_
 

Magick::DrawableText::DrawableText const DrawableText original_  ) 
 

Magick::DrawableText::~DrawableText void   ) 
 


Member Function Documentation

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

Implements Magick::DrawableBase.

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

Implements Magick::DrawableBase.

Definition at line 1286 of file Drawable.cpp.

01287 { 01288 return new DrawableText(*this); 01289 }

void Magick::DrawableText::encoding const std::string &  encoding_  )  [inline]
 

Definition at line 1883 of file Drawable.h.

01884 { 01885 _encoding = encoding_; 01886 }

void Magick::DrawableText::encoding const std::string &  encoding_  )  [inline]
 

Definition at line 1883 of file Drawable.h.

01884 { 01885 _encoding = encoding_; 01886 }

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

Implements Magick::DrawableBase.

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

Implements Magick::DrawableBase.

Definition at line 1280 of file Drawable.cpp.

References DrawAnnotation(), and DrawSetTextEncoding().

01281 { 01282 DrawSetTextEncoding( context_, _encoding.c_str() ); 01283 DrawAnnotation( context_, _x, _y, 01284 reinterpret_cast<const unsigned char*>(_text.c_str()) ); 01285 }

Here is the call graph for this function:

std::string Magick::DrawableText::text void   )  const [inline]
 

Definition at line 1910 of file Drawable.h.

01911 { 01912 return _text; 01913 }

void Magick::DrawableText::text const std::string &  text_  )  [inline]
 

Definition at line 1906 of file Drawable.h.

01907 { 01908 _text = text_; 01909 }

std::string Magick::DrawableText::text void   )  const [inline]
 

Definition at line 1910 of file Drawable.h.

01911 { 01912 return _text; 01913 }

void Magick::DrawableText::text const std::string &  text_  )  [inline]
 

Definition at line 1906 of file Drawable.h.

01907 { 01908 _text = text_; 01909 }

double Magick::DrawableText::x void   )  const [inline]
 

Definition at line 1892 of file Drawable.h.

01893 { 01894 return _x; 01895 }

void Magick::DrawableText::x double  x_  )  [inline]
 

Definition at line 1888 of file Drawable.h.

01889 { 01890 _x = x_; 01891 }

double Magick::DrawableText::x void   )  const [inline]
 

Definition at line 1892 of file Drawable.h.

01893 { 01894 return _x; 01895 }

void Magick::DrawableText::x double  x_  )  [inline]
 

Definition at line 1888 of file Drawable.h.

01889 { 01890 _x = x_; 01891 }

double Magick::DrawableText::y void   )  const [inline]
 

Definition at line 1901 of file Drawable.h.

01902 { 01903 return _y; 01904 }

void Magick::DrawableText::y double  y_  )  [inline]
 

Definition at line 1897 of file Drawable.h.

01898 { 01899 _y = y_; 01900 }

double Magick::DrawableText::y void   )  const [inline]
 

Definition at line 1901 of file Drawable.h.

01902 { 01903 return _y; 01904 }

void Magick::DrawableText::y double  y_  )  [inline]
 

Definition at line 1897 of file Drawable.h.

01898 { 01899 _y = y_; 01900 }


Field Documentation

std::string Magick::DrawableText::_encoding [private]
 

Definition at line 1919 of file Drawable.h.

std::string Magick::DrawableText::_text [private]
 

Definition at line 1918 of file Drawable.h.

double Magick::DrawableText::_x [private]
 

Definition at line 1916 of file Drawable.h.

double Magick::DrawableText::_y [private]
 

Definition at line 1917 of file Drawable.h.


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