Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreArtboard.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_ARTBOARD__
8#define __HDI_CORE_ARTBOARD__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include <vector>
13
14#include "hdicoreMacros.h"
15
17#include "hdicoreArtboardRect.h"
18
19namespace hdi
20{
21 namespace aip
22 {
23 class Artboard;
24 }
25
26 namespace core
27 {
28 class Art;
29 class Layer;
30
35 {
36 public:
37 typedef std::vector< std::shared_ptr<Art> > ArtVector;
38
51
59 Artboard(const Artboard& a_);
60
66 virtual ~Artboard();
67
76 virtual Artboard& operator=(const Artboard& rhs_);
77
85 virtual bool isEmpty() const;
86
94 virtual bool valid() const;
95
106 virtual bool dispose();
107
116 virtual bool operator==(const Artboard& rhs_) const;
117
126 virtual bool operator!=(const Artboard& rhs_) const;
127
135 virtual ArtboardRect bounds() const;
136
144 virtual void setBounds(const ArtboardRect& bounds_);
145
160 virtual ArtboardPoint rulerOrigin() const;
161
169 virtual void setRulerOrigin(const ArtboardPoint& origin_);
170
178 virtual std::string name() const;
179
187 virtual void setName(const std::string& name_);
188
196 virtual bool active() const;
197
206 virtual ArtVector allArtObjects() const;
207
208
209 private:
210 friend aip::Artboard* __accessImpl(const Artboard&);
211 friend Artboard __accessCtor(aip::Artboard*&);
212
216 void* __data;
217
223 void* __impl() const;
224
230 Artboard(aip::Artboard*&);
231 };
232
233 typedef std::unique_ptr<Artboard> ArtboardUP;
234 typedef std::shared_ptr<Artboard> ArtboardSP;
235 typedef std::weak_ptr<Artboard> ArtboardWP;
236
237 extern aip::Artboard* __accessImpl(const Artboard&);
238 extern Artboard __accessCtor(aip::Artboard*&);
239 }
240}
241
242#endif
243// HDI_CORE_AIP_MODE
244
245#endif
246// __HDI_CORE_ARTBOARD__
Represents an individual artboard in the current document.
Definition: hdicoreArtboard.h:35
virtual bool dispose()
Removes the artboard from the document.
virtual ArtboardRect bounds() const
Gets the position (bounds) of the artboard.
virtual void setBounds(const ArtboardRect &bounds_)
Sets the position (bounds) of the artboard.
virtual void setRulerOrigin(const ArtboardPoint &origin_)
Sets the ruler origin point of the artboard, relative to the artboard itself.
Artboard(const Artboard &a_)
Constructs a new Artboard object from an existing Artboard object (copy constructor)
virtual ArtVector allArtObjects() const
Gets all the art objects that "touch" the target artboard.
virtual bool valid() const
Tests the validity of the target artboard.
virtual bool operator!=(const Artboard &rhs_) const
Tests whether a given Artboard object is not the same as another.
virtual bool active() const
Gets whether the target artboard is the current one in the current document.
virtual std::string name() const
Gets the artboard's name.
virtual ArtboardPoint rulerOrigin() const
Gets the ruler origin point of the artboard, relative to the artboard itself.
Artboard()
Constructs an empty Artboard object.
virtual void setName(const std::string &name_)
Sets the artboard's name.
virtual bool isEmpty() const
Gets whether the target Artboard object is empty (constructed with the default ctor)
virtual ~Artboard()
Destructs an Artboard object.
virtual Artboard & operator=(const Artboard &rhs_)
Assigns one Artboard object to another.
virtual bool operator==(const Artboard &rhs_) const
Tests whether a given Artboard object is the same as another.
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:31
Describes a rectangular area on the Illustrator artboard.
Definition: hdicoreArtboardRect.h:28
Header file for geometric point manipulation on the Illustrator artboard.
Header file for geometric rectangle manipulation on the Illustrator artboard.
Header file for a variety of plugin convenience macros.