Magick++ 7.1.1
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
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

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

Detailed Description

Definition at line 2291 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 2294 of file Drawable.h.

2296 : _x1(x1_),
2297 _y1(y1_),
2298 _x2(x2_),
2299 _y2(y2_) { }

◆ ~DrawableViewbox()

Magick::DrawableViewbox::~DrawableViewbox ( void  )

Definition at line 1739 of file Drawable.cpp.

1740{
1741}

Member Function Documentation

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1747 of file Drawable.cpp.

1748{
1749 return new DrawableViewbox(*this);
1750}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1742 of file Drawable.cpp.

1744{
1745 DrawSetViewbox( context_, _x1, _y1, _x2, _y2 );
1746}

◆ x1() [1/2]

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

Definition at line 2310 of file Drawable.h.

2311 {
2312 _x1 = x1_;
2313 }

◆ x1() [2/2]

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

Definition at line 2314 of file Drawable.h.

2315 {
2316 return _x1;
2317 }

◆ x2() [1/2]

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

Definition at line 2328 of file Drawable.h.

2329 {
2330 _x2 = x2_;
2331 }

◆ x2() [2/2]

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

Definition at line 2332 of file Drawable.h.

2333 {
2334 return _x2;
2335 }

◆ y1() [1/2]

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

Definition at line 2319 of file Drawable.h.

2320 {
2321 _y1 = y1_;
2322 }

◆ y1() [2/2]

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

Definition at line 2323 of file Drawable.h.

2324 {
2325 return _y1;
2326 }

◆ y2() [1/2]

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

Definition at line 2337 of file Drawable.h.

2338 {
2339 _y2 = y2_;
2340 }

◆ y2() [2/2]

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

Definition at line 2341 of file Drawable.h.

2342 {
2343 return _y2;
2344 }

Member Data Documentation

◆ _x1

::ssize_t Magick::DrawableViewbox::_x1
private

Definition at line 2347 of file Drawable.h.

◆ _x2

::ssize_t Magick::DrawableViewbox::_x2
private

Definition at line 2349 of file Drawable.h.

◆ _y1

::ssize_t Magick::DrawableViewbox::_y1
private

Definition at line 2348 of file Drawable.h.

◆ _y2

::ssize_t Magick::DrawableViewbox::_y2
private

Definition at line 2350 of file Drawable.h.


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