Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Handles general pattern-related functionality. More...
#include <hdicorePattern.h>
Public Types | |
enum | Type { UnknownPatternType = 0 , NormalPatternType = 10 , SymbolPatternType = 20 , BrushPatternType = 30 } |
Indicates the type of "pattern" an object is representing. | |
Public Member Functions | |
Pattern () | |
Constructs an empty Pattern object. | |
Pattern (const Pattern &patt_) | |
Constructs a new Pattern object from an existing Pattern object (copy constructor) | |
virtual | ~Pattern () |
Pattern object destructor. | |
virtual Pattern & | operator= (const Pattern &rhs_) |
Assigns one Pattern object to another. | |
virtual bool | dispose () |
Removes the pattern from its document. | |
virtual AIPatternHandle | aiPatternHandle () const |
Gets the pattern handle around which the target object is wrapped. | |
virtual bool | isEmpty () const |
Gets whether the target Pattern object is empty (constructed with the default ctor) | |
virtual bool | valid () const |
Tests the validity of the target pattern by searching for it in the document. | |
virtual Type | patternType () const |
Gets the type of pattern the target object is representing. | |
virtual bool | operator== (const Pattern &rhs_) const |
Tests whether a given Pattern object is the same as another. | |
virtual bool | operator!= (const Pattern &rhs_) const |
Tests whether a given Pattern object is not the same as another. | |
virtual std::unique_ptr< Art > | sourceArt () const |
Gets the Art object that defines the source art for the pattern. | |
virtual void | setSourceArt (const Art &art_) |
Sets the Art object that defines the source art for the pattern. | |
virtual std::string | name () const |
Gets the name of the pattern. | |
virtual void | setName (const std::string &name_) |
Sets the name of the pattern. | |
virtual ArtboardRect | bounds () const |
Gets the bounds rect for the target pattern. | |
virtual bool | isBeingEdited () const |
Gets whether the target pattern is currently being edited in pattern editing mode. | |
virtual bool | setBeingEdited (const Art *const inst_=NULL) |
Puts the document into pattern editing mode, with the target pattern being the one to edit. | |
Static Public Member Functions | |
static Pattern | create () |
Creates a new Pattern object (and Illustrator pattern); set the source art for it with the setSourceArt() method. | |
Protected Member Functions | |
void * | _impl () const |
Internal use only. | |
Protected Attributes | |
void * | _data |
Private implementation data. | |
Friends | |
aip::Pattern * | __accessImpl (const Pattern &) |
Pattern | __accessCtor (aip::Pattern *&) |
Handles general pattern-related functionality.
hdi::core::Pattern::Pattern | ( | ) |
Constructs an empty Pattern object.
hdi::core::Pattern::Pattern | ( | const Pattern & | patt_ | ) |
|
virtual |
Pattern object destructor.
|
protected |
Internal use only.
|
virtual |
Gets the pattern handle around which the target object is wrapped.
|
virtual |
Gets the bounds rect for the target pattern.
|
static |
Creates a new Pattern object (and Illustrator pattern); set the source art for it with the setSourceArt() method.
|
virtual |
Removes the pattern from its document.
Reimplemented in hdi::core::Symbol.
|
virtual |
Gets whether the target pattern is currently being edited in pattern editing mode.
Reimplemented in hdi::core::Symbol.
|
virtual |
|
virtual |
Gets the name of the pattern.
|
virtual |
|
virtual |
|
virtual |
Gets the type of pattern the target object is representing.
|
virtual |
Puts the document into pattern editing mode, with the target pattern being the one to edit.
inst_ | Ignored |
Reimplemented in hdi::core::Symbol.
|
virtual |
Sets the name of the pattern.
name_ | New name for the pattern, as UTF-8 |
|
virtual |
Sets the Art object that defines the source art for the pattern.
art_ | New source art for the target Pattern object |
Reimplemented in hdi::core::Symbol.
|
virtual |
Gets the Art object that defines the source art for the pattern.
Reimplemented in hdi::core::Symbol.
|
virtual |
Tests the validity of the target pattern by searching for it in the document.
Reimplemented in hdi::core::Symbol.