Magick++ 6.9.13
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

Private Attributes

double _x
double _y

Detailed Description

Definition at line 2152 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableTranslation()

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

Definition at line 2155 of file Drawable.h.

2156 : _x(x_),
2157 _y(y_)
2158 { }

◆ ~DrawableTranslation()

Magick::DrawableTranslation::~DrawableTranslation ( void )

Definition at line 1535 of file Drawable.cpp.

1536{
1537}

Member Function Documentation

◆ copy()

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

Implements Magick::DrawableBase.

Definition at line 1543 of file Drawable.cpp.

1544{
1545 return new DrawableTranslation(*this);
1546}

◆ operator()()

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

Implements Magick::DrawableBase.

Definition at line 1538 of file Drawable.cpp.

1540{
1541 DrawTranslate( context_, _x, _y );
1542}

◆ x() [1/2]

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

Definition at line 2168 of file Drawable.h.

2169 {
2170 _x = x_;
2171 }

◆ x() [2/2]

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

Definition at line 2172 of file Drawable.h.

2173 {
2174 return _x;
2175 }

◆ y() [1/2]

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

Definition at line 2177 of file Drawable.h.

2178 {
2179 _y = y_;
2180 }

◆ y() [2/2]

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

Definition at line 2181 of file Drawable.h.

2182 {
2183 return _y;
2184 }

Member Data Documentation

◆ _x

double Magick::DrawableTranslation::_x
private

Definition at line 2187 of file Drawable.h.

◆ _y

double Magick::DrawableTranslation::_y
private

Definition at line 2188 of file Drawable.h.


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