Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreMaskArt.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_MASK_ART__
8 #define __HDI_CORE_MASK_ART__
9 
10 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
16  class Art;
17 
21  class MaskArt
22  {
23  public:
29  ~MaskArt();
30 
40  bool exists() const;
41 
49  bool create();
50 
58  bool dispose();
59 
70  bool linked() const;
71 
82  void setLinked(const bool link_);
83 
93  bool enabled() const;
94 
104  void setEnabled(const bool enable_);
105 
116  bool inverted() const;
117 
127  void setInverted(const bool invert_);
128 
140  bool clipped() const;
141 
153  void setClipped(const bool clip_);
154 
163  bool copy(const Art& dest_) const;
164 
172  std::auto_ptr<Art> maskArt() const;
173 
174 
175  private:
176  // Only Art can construct a new MaskArt object
177  friend class Art;
178 
182  Art* __art;
183 
189  MaskArt();
190 
198  MaskArt(Art* const art_);
199 
205  MaskArt(const MaskArt&);
206 
212  MaskArt& operator=(const MaskArt&);
213  };
214  }
215 }
216 
217 #endif
218 // __HDI_CORE_MASK_ART__
void setLinked(const bool link_)
Sets the link state of the target mask.
std::auto_ptr< Art > maskArt() const
Gets the art object that comprises the opacity mask.
Handles general art-related functionality.
Definition: hdicoreArt.h:47
bool enabled() const
Gets the enabled state of the target mask.
bool exists() const
Gets whether a mask for the related art already exists.
void setClipped(const bool clip_)
Sets the clipping state of the target mask.
bool clipped() const
Gets the clipping state of the target mask.
Allows for mask manipulation, metadata access, etc.
Definition: hdicoreMaskArt.h:21
bool copy(const Art &dest_) const
Copies the target mask to some destination art.
bool linked() const
Gets the link state of the target mask.
void setEnabled(const bool enable_)
Sets the enabled state of the target mask.
~MaskArt()
Destructs a MaskArt object.
void setInverted(const bool invert_)
Sets the inversion state of the target mask.
bool dispose()
Disposes the mask for the related art object, if one exists.
bool create()
Creates a mask for the related art object if one does not already exists.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Definition: hdicoreaiArray.h:12
bool inverted() const
Gets the inversion state of the target mask.