Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::DrawableTranslation Class Reference
Inheritance diagram for Magick::DrawableTranslation:
Collaboration diagram for Magick::DrawableTranslation:

Public Member Functions

 DrawableTranslation (double x_, double y_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
DrawableBasecopy () const
 
void x (double x_)
 
double x (void) const
 
void y (double y_)
 
double y (void) const
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

double _x
 
double _y
 

Detailed Description

Definition at line 2251 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableTranslation()

Magick::DrawableTranslation::DrawableTranslation ( double  x_,
double  y_ 
)
inline

Definition at line 2254 of file Drawable.h.

2255 : _x(x_),
2256 _y(y_)
2257 { }

◆ ~DrawableTranslation()

Magick::DrawableTranslation::~DrawableTranslation ( void  )

Definition at line 1725 of file Drawable.cpp.

1726{
1727}

Member Function Documentation

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1733 of file Drawable.cpp.

1734{
1735 return new DrawableTranslation(*this);
1736}

◆ operator()()

void Magick::DrawableTranslation::operator() ( MagickCore::DrawingWand *  context_) const
virtual

Reimplemented from Magick::DrawableBase.

Definition at line 1728 of file Drawable.cpp.

1730{
1731 DrawTranslate( context_, _x, _y );
1732}

◆ x() [1/2]

void Magick::DrawableTranslation::x ( double  x_)
inline

Definition at line 2267 of file Drawable.h.

2268 {
2269 _x = x_;
2270 }

◆ x() [2/2]

double Magick::DrawableTranslation::x ( void  ) const
inline

Definition at line 2271 of file Drawable.h.

2272 {
2273 return _x;
2274 }

◆ y() [1/2]

void Magick::DrawableTranslation::y ( double  y_)
inline

Definition at line 2276 of file Drawable.h.

2277 {
2278 _y = y_;
2279 }

◆ y() [2/2]

double Magick::DrawableTranslation::y ( void  ) const
inline

Definition at line 2280 of file Drawable.h.

2281 {
2282 return _y;
2283 }

Member Data Documentation

◆ _x

double Magick::DrawableTranslation::_x
private

Definition at line 2286 of file Drawable.h.

◆ _y

double Magick::DrawableTranslation::_y
private

Definition at line 2287 of file Drawable.h.


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