Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Allows for layer metadata access, visibility manipulation, locking, etc. More...
#include <hdicoreLayer.h>
Classes | |
class | Iterator |
Allows for iteration through the siblings of a layer, a la std::vector iteration. More... | |
Public Types | |
typedef std::unique_ptr< Iterator > | IteratorUP |
typedef std::shared_ptr< Iterator > | IteratorSP |
typedef std::weak_ptr< Iterator > | IteratorWP |
typedef Color | ColorType |
Public Member Functions | |
Layer () | |
Constructs an empty Layer object. | |
Layer (const Layer &layer_) | |
Constructs a Layer object from an existing Layer object (copy constructor) | |
Layer (const AILayerHandle aiLayer_) | |
Constructs a new Layer object from an AILayerHandle. | |
Layer (const PaintOrder order_, const Layer *const prep_=NULL) | |
Inserts a new layer at a given position in the layer list in the current document. | |
virtual | ~Layer () |
Layer destructor. | |
virtual Layer & | operator= (const Layer &rhs_) |
Assigns one Layer object to another. | |
virtual AILayerHandle | aiLayerHandle () const |
Gets the layer handle around which the target object is wrapped. | |
virtual bool | isEmpty () const |
Gets whether the target Layer object is empty (constructed with the default ctor) | |
virtual bool | dispose () |
Removes the layer from the document. | |
virtual bool | editable () const |
Gets whether the target layer is editable. | |
virtual void | setEditable (const bool editable_) |
Sets whether the target layer is editable. | |
virtual bool | locked () const |
Gets whether the target layer is locked. | |
virtual void | setLocked (const bool locked_) |
Sets whether the target layer is locked. | |
virtual bool | hasArt () const |
Gets whether the target layer has any art. | |
virtual bool | hasSelectedArt () const |
Gets whether any of the target layer's art is selected. | |
virtual void | deselectArt () const |
Deselects all of the target layer's art. | |
virtual std::unique_ptr< Art > | group () const |
Gets the first (invisible) art group inside the layer. | |
virtual std::unique_ptr< Layer > | parent () const |
Gets the parent layer object for the target layer. | |
virtual std::unique_ptr< Layer > | firstChild () const |
Gets the first child layer object for the target layer. | |
virtual std::unique_ptr< Layer > | sibling () const |
Gets the next sibling layer object for the target layer. | |
virtual std::unique_ptr< Layer > | priorSibling () const |
Gets the previous sibling layer object for the target layer. | |
virtual std::unique_ptr< Layer > | nextPreorderLayer () const |
Gets the next layer in preorder traversal, which returns descendents first. | |
virtual bool | preview () const |
Gets the target layer's preview or outline mode setting. | |
virtual void | setPreview (const bool preview_) |
Sets the target layer to preview or outline mode. | |
virtual bool | printed () const |
Gets whether the target layer is considered printable when printing the document. | |
virtual void | setPrinted (const bool printed_) |
Sets whether the target layer is considered printable when printing the document. | |
virtual bool | dimsPlacedImages () const |
Gets whether images in the target layer are automatically dimmed. | |
virtual void | setDimsPlacedImages (const bool dim_) |
Sets whether images in the target layer are automatically dimmed. | |
virtual bool | convertToGroup () |
Converts the target layer to an artwork group. | |
Iterator | begin () const |
Gets an iterator for the layer in the target's parent layer, starting with the target. | |
virtual std::string | name () const |
Gets the name for the target layer. | |
virtual void | setName (const std::string &name_) |
Sets the name for the target layer. | |
virtual void | show () |
Shows the layer. | |
virtual void | hide () |
Hides the layer. | |
virtual bool | visible () const |
Gets whether the target layer is visible. | |
virtual void | setVisible (const bool visible_) |
Sets whether the target layer is visible. | |
virtual bool | active () const |
Gets whether the target Layer object is the active (current) layer. | |
virtual ColorType | color () const |
Gets the color of the layer in the layer list. | |
virtual void | setColor (const ColorType color_) |
Sets the color of the layer in the layer list. | |
virtual bool | operator== (const Layer &rhs_) const |
Tests whether a given Layer object is the same as another. | |
virtual bool | operator!= (const Layer &rhs_) const |
Tests whether a given Layer object is not the same as another. | |
virtual bool | valid () const |
Tests the validity of the target layer by checking its topmost "invisible" group. | |
Friends | |
class | CurrentDocument |
aip::Layer * | __accessImpl (const Layer &) |
Layer | __accessCtor (aip::Layer *&) |
Allows for layer metadata access, visibility manipulation, locking, etc.
hdi::core::Layer::Layer | ( | ) |
Constructs an empty Layer object.
hdi::core::Layer::Layer | ( | const Layer & | layer_ | ) |
hdi::core::Layer::Layer | ( | const AILayerHandle | aiLayer_ | ) |
Constructs a new Layer object from an AILayerHandle.
aiLayer_ | Raw Illustrator AILayerHandle |
hdi::core::Layer::Layer | ( | const PaintOrder | order_, |
const Layer *const | prep_ = NULL |
||
) |
Inserts a new layer at a given position in the layer list in the current document.
order_ | Order in which to create the layer |
prep_ | Prepositional layer to which order_ will apply |
|
virtual |
Layer destructor.
|
virtual |
Gets whether the target Layer object is the active (current) layer.
|
virtual |
Gets the layer handle around which the target object is wrapped.
Iterator hdi::core::Layer::begin | ( | ) | const |
Gets an iterator for the layer in the target's parent layer, starting with the target.
|
virtual |
Gets the color of the layer in the layer list.
|
virtual |
Converts the target layer to an artwork group.
|
virtual |
Deselects all of the target layer's art.
|
virtual |
Gets whether images in the target layer are automatically dimmed.
|
virtual |
Removes the layer from the document.
|
virtual |
Gets whether the target layer is editable.
|
virtual |
Gets the first child layer object for the target layer.
|
virtual |
Gets the first (invisible) art group inside the layer.
|
virtual |
Gets whether the target layer has any art.
|
virtual |
Gets whether any of the target layer's art is selected.
|
virtual |
Hides the layer.
|
virtual |
|
virtual |
Gets whether the target layer is locked.
|
virtual |
Gets the name for the target layer.
|
virtual |
Gets the next layer in preorder traversal, which returns descendents first.
|
virtual |
|
virtual |
|
virtual |
Gets the parent layer object for the target layer.
|
virtual |
Gets the target layer's preview or outline mode setting.
|
virtual |
Gets whether the target layer is considered printable when printing the document.
|
virtual |
Gets the previous sibling layer object for the target layer.
|
virtual |
Sets the color of the layer in the layer list.
color_ | New layer color |
|
virtual |
Sets whether images in the target layer are automatically dimmed.
dim_ | true to dim images, false otherwise |
|
virtual |
Sets whether the target layer is editable.
editable_ | true to allow editing, false otherwise |
|
virtual |
Sets whether the target layer is locked.
locked_ | true to lock, false otherwise |
|
virtual |
Sets the name for the target layer.
name_ | New layer name, as UTF-8 |
|
virtual |
Sets the target layer to preview or outline mode.
preview_ | true for preview, false for outline |
|
virtual |
Sets whether the target layer is considered printable when printing the document.
printed_ | true for printable, false otherwise |
|
virtual |
|
virtual |
Shows the layer.
|
virtual |
Gets the next sibling layer object for the target layer.
|
virtual |
Tests the validity of the target layer by checking its topmost "invisible" group.
|
virtual |
Gets whether the target layer is visible.