Magick++ 6.9.13
Loading...
Searching...
No Matches
Magick::DrawableViewbox Class Reference
Inheritance diagram for Magick::DrawableViewbox:
Collaboration diagram for Magick::DrawableViewbox:

Public Member Functions

 DrawableViewbox (::ssize_t x1_, ::ssize_t y1_, ::ssize_t x2_, ::ssize_t y2_)
void operator() (MagickCore::DrawingWand *context_) const
DrawableBasecopy () const
void x1 (::ssize_t x1_)
::ssize_t x1 (void) const
void y1 (::ssize_t y1_)
::ssize_t y1 (void) const
void x2 (::ssize_t x2_)
::ssize_t x2 (void) const
void y2 (::ssize_t y2_)
::ssize_t y2 (void) const

Private Attributes

::ssize_t _x1
::ssize_t _y1
::ssize_t _x2
::ssize_t _y2

Detailed Description

Definition at line 2192 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableViewbox()

Magick::DrawableViewbox::DrawableViewbox ( ::ssize_t x1_,
::ssize_t y1_,
::ssize_t x2_,
::ssize_t y2_ )
inline

Definition at line 2195 of file Drawable.h.

2197 : _x1(x1_),
2198 _y1(y1_),
2199 _x2(x2_),
2200 _y2(y2_) { }

◆ ~DrawableViewbox()

Magick::DrawableViewbox::~DrawableViewbox ( void )

Definition at line 1549 of file Drawable.cpp.

1550{
1551}

Member Function Documentation

◆ copy()

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

Implements Magick::DrawableBase.

Definition at line 1557 of file Drawable.cpp.

1558{
1559 return new DrawableViewbox(*this);
1560}

◆ operator()()

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

Implements Magick::DrawableBase.

Definition at line 1552 of file Drawable.cpp.

1554{
1555 DrawSetViewbox( context_, _x1, _y1, _x2, _y2 );
1556}

◆ x1() [1/2]

void Magick::DrawableViewbox::x1 ( ::ssize_t x1_)
inline

Definition at line 2211 of file Drawable.h.

2212 {
2213 _x1 = x1_;
2214 }

◆ x1() [2/2]

::ssize_t Magick::DrawableViewbox::x1 ( void ) const
inline

Definition at line 2215 of file Drawable.h.

2216 {
2217 return _x1;
2218 }

◆ x2() [1/2]

void Magick::DrawableViewbox::x2 ( ::ssize_t x2_)
inline

Definition at line 2229 of file Drawable.h.

2230 {
2231 _x2 = x2_;
2232 }

◆ x2() [2/2]

::ssize_t Magick::DrawableViewbox::x2 ( void ) const
inline

Definition at line 2233 of file Drawable.h.

2234 {
2235 return _x2;
2236 }

◆ y1() [1/2]

void Magick::DrawableViewbox::y1 ( ::ssize_t y1_)
inline

Definition at line 2220 of file Drawable.h.

2221 {
2222 _y1 = y1_;
2223 }

◆ y1() [2/2]

::ssize_t Magick::DrawableViewbox::y1 ( void ) const
inline

Definition at line 2224 of file Drawable.h.

2225 {
2226 return _y1;
2227 }

◆ y2() [1/2]

void Magick::DrawableViewbox::y2 ( ::ssize_t y2_)
inline

Definition at line 2238 of file Drawable.h.

2239 {
2240 _y2 = y2_;
2241 }

◆ y2() [2/2]

::ssize_t Magick::DrawableViewbox::y2 ( void ) const
inline

Definition at line 2242 of file Drawable.h.

2243 {
2244 return _y2;
2245 }

Member Data Documentation

◆ _x1

::ssize_t Magick::DrawableViewbox::_x1
private

Definition at line 2248 of file Drawable.h.

◆ _x2

::ssize_t Magick::DrawableViewbox::_x2
private

Definition at line 2250 of file Drawable.h.

◆ _y1

::ssize_t Magick::DrawableViewbox::_y1
private

Definition at line 2249 of file Drawable.h.

◆ _y2

::ssize_t Magick::DrawableViewbox::_y2
private

Definition at line 2251 of file Drawable.h.


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