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

Public Member Functions

 Drawable (const DrawableBase &original_)
 
 Drawable (const Drawable &original_)
 
Drawableoperator= (const Drawable &original_)
 
void operator() (MagickCore::DrawingWand *) const
 

Private Attributes

DrawableBasedp
 

Detailed Description

Definition at line 120 of file Drawable.h.

Constructor & Destructor Documentation

◆ Drawable() [1/3]

Magick::Drawable::Drawable ( void  )

Definition at line 82 of file Drawable.cpp.

83 : dp((Magick::DrawableBase *) NULL)
84{
85}

◆ Drawable() [2/3]

Magick::Drawable::Drawable ( const DrawableBase original_)

Definition at line 87 of file Drawable.cpp.

88 : dp(original_.copy())
89{
90}

◆ ~Drawable()

Magick::Drawable::~Drawable ( void  )

Definition at line 92 of file Drawable.cpp.

93{
94 delete dp;
95 dp=(Magick::DrawableBase *) NULL;
96}

◆ Drawable() [3/3]

Magick::Drawable::Drawable ( const Drawable original_)

Definition at line 98 of file Drawable.cpp.

99 : dp((original_.dp != (Magick::DrawableBase *) NULL ? original_.dp->copy() :
100 (Magick::DrawableBase *) NULL))
101{
102}

Member Function Documentation

◆ operator()()

void Magick::Drawable::operator() ( MagickCore::DrawingWand *  context_) const

Definition at line 120 of file Drawable.cpp.

121{
122 if (dp != (Magick::DrawableBase *) NULL)
123 dp->operator()(context_);
124}

◆ operator=()

Magick::Drawable & Magick::Drawable::operator= ( const Drawable original_)

Definition at line 104 of file Drawable.cpp.

106{
107 DrawableBase
108 *temp_dp;
109
110 if (this != &original_)
111 {
112 temp_dp=(original_.dp != (Magick::DrawableBase *) NULL ?
113 original_.dp->copy() : (Magick::DrawableBase *) NULL);
114 delete dp;
115 dp=temp_dp;
116 }
117 return(*this);
118}

Member Data Documentation

◆ dp

DrawableBase* Magick::Drawable::dp
private

Definition at line 143 of file Drawable.h.


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