Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Handles general art-related functionality. More...
#include <hdicoreArt.h>
Classes | |
class | Iterator |
Allows for iteration through the siblings of a piece of source art, a la std::vector iteration. More... | |
Public Types | |
enum | BoundsOptions { VisibleBounds = 1 << 0 , ControlBounds = 1 << 1 , NoStrokeBounds = 1 << 2 , NoExtendedBounds = 1 << 3 , StrokeDependsOnPref = 1 << 4 , ExcludeHiddenObjectBounds = 1 << 5 , ExcludeUnpaintedObjectBounds = 1 << 6 , ExcludeGuideBounds = 1 << 7 } |
Allows for querying various attributes of some art's bounds. | |
enum | ExpandOptions { ExpandPluginArt = 1 << 0 , ExpandText = 1 << 1 , ExpandStroke = 1 << 2 , ExpandPattern = 1 << 3 , ExpandGradientToMesh = 1 << 4 , ExpandGradientToPaths = 1 << 5 , ExpandSymbolInstances = 1 << 6 , ExpandOneAtATime = 1 << 7 , ExpandShowProgressBar = 1 << 8 , ExpandLockedObjects = 1 << 9 } |
Controls how art should be expanded by the expand() method. | |
enum | TransformOptions { TransformOptionNone = 0 , TransformOptionObjects = 1 << 0 , TransformOptionFillGradients = 1 << 1 , TransformOptionFillPatterns = 1 << 2 , TransformOptionStrokeGradients = 1 << 3 , TransformOptionStrokePatterns = 1 << 4 , TransformOptionLinkedMasks = 1 << 5 , TransformOptionChildren = 1 << 6 , TransformOptionSelectedSegsOnly = 1 << 7 } |
Controls how art should be transformed by the transform() method. | |
typedef std::vector< std::shared_ptr< Artboard > > | ArtboardVector |
typedef std::vector< std::shared_ptr< Art > > | ArtVector |
typedef std::vector< MatchArtSpec > | MatchArtSpecVector |
typedef std::unique_ptr< Iterator > | IteratorUP |
typedef std::shared_ptr< Iterator > | IteratorSP |
typedef std::weak_ptr< Iterator > | IteratorWP |
Public Member Functions | |
Art () | |
Constructs an empty Art object. | |
Art (const Art &art_) | |
Constructs a new Art object from an existing Art object (copy constructor) | |
Art (const AIArtHandle aiArt_) | |
Constructs a new Art object from an AIArtHandle. | |
Art (const AISafeArtHandle aiArt_) | |
Constructs a new Art object from an AISafeArtHandle. | |
Art (const std::string &uuid_) | |
Constructs a new Art object from a UUID string. | |
Art (const ArtType type_, const PaintOrder order_, const Art *const prep_=NULL) | |
Constructs a new Art object for a newly created piece of Illustrator art. | |
Art (const ArtboardPoint &anchor_, const TextOrientation dir_, const PaintOrder order_, const Art *const prep_=NULL) | |
Constructs a new Art object for a newly created piece of Illustrator text art (type of ArtTypeText) | |
virtual | ~Art () |
Art object destructor. | |
virtual Art & | operator= (const Art &rhs_) |
Assigns one Art object to another. | |
virtual bool | dispose () |
Removes the art from the artboard. | |
virtual bool | disposeChildren () |
Removes all the children art from the parent group or compound path. | |
virtual std::unique_ptr< Art > | duplicate (const PaintOrder order_, const Art *const prep_=NULL) const |
Duplicates the target piece of art on the artboard. | |
virtual AIArtHandle | aiArtHandle () const |
Gets the art handle around which the target object is wrapped. | |
virtual AISafeArtHandle | aiSafeArtHandle () const |
Gets the "safe" art handle around which the target object is wrapped. | |
virtual std::string | uuid () const |
Accessor for the UUID string for the Art object. | |
virtual bool | isEmpty () const |
Gets whether the target Art object is empty (constructed with the default ctor) | |
virtual bool | valid () const |
Tests the validity of the target piece of art by searching for it in the document. | |
virtual bool | operator== (const Art &rhs_) const |
Tests whether a given Art object is the same as another. | |
virtual bool | operator!= (const Art &rhs_) const |
Tests whether a given Art object is not the same as another. | |
virtual ArtType | artType () const |
Gets the type of the art. | |
virtual std::unique_ptr< UID > | uid () const |
Gets the UID for the target art. | |
virtual CustomArt *const | customArt () const |
Gets a CustomArt object for this Art object. | |
virtual MaskArt *const | mask () const |
Gets a MaskArt object for this Art object. | |
virtual MeshArt *const | mesh () const |
Gets a MeshArt object for this Art object. | |
virtual PathArt *const | path () const |
Gets a PathArt object for this Art object. | |
virtual PlacedArt *const | placed () const |
Gets a PlacedArt object for this Art object. | |
virtual RasterArt *const | raster () const |
Gets a RasterArt object for this Art object. | |
virtual TextArt *const | text () const |
Gets a TextArt object for this Art object. | |
virtual void | markDirty () |
Marks an Art object for redrawing by incrementing its internal modification time stamp. | |
virtual void | markClean () |
Marks an Art object that previously would have been redrawn as NOT needing redrawing. | |
virtual void | select () |
Sets the art object and all its children (in the case of a container) to be selected. | |
virtual void | deselect () |
Sets the art object and all its children (in the case of a container) to be deselected. | |
virtual bool | selected () const |
Gets whether the art is selected. | |
virtual bool | fullySelected () const |
Gets whether the art is fully selected. | |
virtual void | setSelected (const bool select_) |
Sets whether the art is selected. | |
virtual bool | editable () const |
Gets whether the art is editable. | |
virtual void | setEditable (const bool editable_) |
Sets whether the art is editable. | |
virtual bool | locked () const |
Gets whether the art is locked. | |
virtual void | setLocked (const bool lock_) |
Sets whether the art is locked. | |
virtual bool | hidden () const |
Gets whether the art is hidden. | |
virtual void | setHidden (const bool hidden_) |
Sets whether the art is hidden. | |
virtual bool | anyAncestorSelected () const |
Gets whether any ancestor of the art is selected. | |
virtual bool | anyAncestorLocked () const |
Gets whether any ancestor of the art is locked. | |
virtual bool | anyAncestorHidden () const |
Gets whether any ancestor of the art is hidden. | |
virtual ArtAttribute | allAttributes () const |
Gets a bitwise OR'd enum value of all currently set art attributes. | |
virtual void | setAllAttributes (const ArtAttribute attrs_) |
Sets a bitwise OR'd enum value for all art attributes. | |
virtual bool | attribute (const ArtAttribute attr_) const |
Gets whether a specific art attribute is true. | |
virtual void | setAttribute (const ArtAttribute attr_, const bool enable_) |
Sets an art attribute for the target art (e.g. hidden, locked, etc.) | |
virtual std::unique_ptr< ai::Dictionary > | dictionary () const |
Gets the built-in art data dictionary object for the target art. | |
virtual ArtboardRect | strokeBounds () const |
Gets the bounds rect for the target art, including the stroke. | |
virtual ArtboardRect | noStrokeBounds () const |
Gets the bounds rect for the target art, excluding the stroke. | |
virtual ArtboardRect | bounds (const BoundsOptions opts_) const |
Gets the bounds rect for the target art. | |
virtual void | updateBounds () |
Updates the bounds rect for the target art by updating Illustrator caches (regarding bounding boxes) | |
virtual ArtboardRect | transformBounds (const TransformMatrix &transform_, const BoundsOptions opts_) const |
Gets the bounds that would be the result of a transform. | |
virtual bool | updateLinks (const bool force_=false) |
Checks whether any linked objects (linked images or placed objects) contained in the subtree of a given container need updating, and updates them if needed. | |
virtual double | x () const |
Gets the top-left x-value of the art. | |
virtual double | y () const |
Gets the top-left y-value of the art. | |
virtual double | width () const |
Gets the width of the bounds of the art. | |
virtual double | height () const |
Gets the height of the bounds of the art. | |
virtual double | perimeter () const |
Gets the perimeter of the art. | |
virtual double | area () const |
Gets the area of the art. | |
virtual bool | centerPointVisible () const |
Gets whether the center point is visible for the target art. | |
virtual void | setCenterPointVisible (const bool visible_) |
Sets whether the center point is visible for the target art. | |
virtual std::unique_ptr< Artboard > | artboard () const |
Gets the "most overlapping" artboard for the target art. | |
virtual ArtboardVector | allArtboards () const |
Gets all the artboards that "touch" the target art. | |
virtual std::unique_ptr< Layer > | layer () const |
Gets the parent layer for the target art. | |
virtual uint32_t | childCount () const |
Gets the count of the children for the target art. | |
virtual std::unique_ptr< Art > | parent () const |
Gets the parent art object for the target art. | |
virtual std::unique_ptr< Art > | firstChild () const |
Gets the first child art object for the target art. | |
virtual std::unique_ptr< Art > | lastChild () const |
Gets the last child art object for the target art. | |
virtual std::unique_ptr< Art > | sibling () const |
Gets the next sibling art object for the target art. | |
virtual std::unique_ptr< Art > | priorSibling () const |
Gets the previous sibling art object for the target art. | |
virtual std::unique_ptr< Symbol > | symbol () const |
Gets the original symbol definition for an instance of a symbol. | |
virtual bool | setSymbol (const Symbol &sym_) |
Sets the original symbol definition object for an instance of a symbol. | |
virtual ArtVector | matchingChildren (const MatchArtSpecVector &specs_) const |
Gets a vector of art in the art tree, rooted at the target, whose specs match those given. | |
virtual bool | hasFill () const |
Gets whether the target art object has a fill. | |
virtual bool | hasStroke () const |
Gets whether the target art object has a stroke. | |
virtual bool | isLayerGroup () const |
Gets whether the target art object is a group that corresponds to a layer or sublayer. | |
virtual bool | isClipGroup () const |
Gets whether the target art object is a group that has clip mask children. | |
virtual void | setIsClipGroup (const bool clip_) |
Sets whether the target art object is a group that has clip mask children. | |
virtual bool | isDimension () const |
Gets whether the target art object is a piece of dimension art. | |
virtual std::unique_ptr< ArtStyle > | style () const |
Gets the art's style. | |
virtual void | setStyle (const ArtStyle &style_) |
Sets the art's style. | |
virtual bool | isStyled () const |
Gets whether the target art is part of the styled art of another art object. | |
virtual std::unique_ptr< Art > | styledArt () const |
If the art has a style, this acquires its styled representation. | |
virtual void | flattenStyledArt () |
If the art has a style, this flattens the styled representation and replaces the source art with said representation. | |
virtual BlendMode | blendMode () const |
Retrieves the current blending mode of an art object, which applies to the object as a whole. | |
virtual void | setBlendMode (const BlendMode mode_) |
Sets the current blending mode of an art object, which applies to the object as a whole. | |
virtual double | opacity () const |
Retrieves the current opacity value applied to an art object. | |
virtual void | setOpacity (const double o_) |
Sets the current opacity value applied to an art object. | |
virtual BlendKnockout | knockout () const |
Retrieves the current knockout state of an art object. | |
virtual BlendKnockout | inheritedKnockout () const |
Retrieves the inherited knockout state (on or off) of an art object. | |
virtual void | setKnockout (const BlendKnockout ko_) |
Sets the current knockout state of an art object. | |
virtual void | reorder (const PaintOrder order_, const Art *const prep_=NULL) |
Reorders the target art in Illustrator's drawing order. | |
virtual void | expand (const ExpandOptions opts_, const uint32_t steps_) |
Expands the target art object. | |
virtual void | rotate (const Angle &angle_, const bool deep_=false) |
Rotates the target art by a given angle around its center point. | |
virtual void | rotate (const Angle &angle_, const BoundsPinPointType pinPt_, const bool deep_=false) |
Rotates the target art by a given angle around a given pre-defined pin point. | |
virtual void | rotate (const Angle &angle_, const ArtboardPoint &origin_, const bool deep_=false) |
Rotates the target art by a given angle around a given pin point. | |
virtual void | scale (const double scaler_, const bool deep_=false) |
Scales the art by a given scaler from its center point. | |
virtual void | scale (const double scaler_, const BoundsPinPointType pinPt_, const bool deep_=false) |
Scales the art by a given scaler from a preset pin point. | |
virtual void | scale (const double scaler_, const ArtboardPoint &origin_, const bool deep_=false) |
Scales the art by a given scaler from a given pin point. | |
virtual void | scale (const double xScaler_, const double yScaler_, const bool deep_=false) |
Scales the art by givens scaler from its center point. | |
virtual void | scale (const double xScaler_, const double yScaler_, const BoundsPinPointType pinPt_, const bool deep_=false) |
Scales the art by given scalers from a preset pin point. | |
virtual void | scale (const double xScaler_, const double yScaler_, const ArtboardPoint &origin_, const bool deep_=false) |
Scales the art by given scalers from a given pin point. | |
virtual void | offset (const double x_, const double y_, const bool deep_=false) |
Offsets (moves) the art by given x-axis and y-axis values. | |
virtual void | move (const ArtboardPoint &newOrigin_, const BoundsPinPointType pinPt_, const bool deep_=false) |
Moves the art to a given point, placing its pin point (pinPt_ arg) at a particular pre- defined point. | |
virtual void | move (const ArtboardPoint &newOrigin_, const ArtboardPoint &origin_, const bool deep_=false) |
Moves the art to a given point, placing its pin point at another arbitrary point (pinPt_ arg) | |
virtual void | transform (const TransformMatrix &matrix_, const bool deep_=false) |
Performs an arbitrary transformation on the target art. | |
virtual void | transformWithOptions (const TransformMatrix &matrix_, const TransformOptions options_) |
Performs an arbitrary transformation on the target art with the given options. | |
virtual void | transformStrokes (const double scaler_, const bool children_) |
Performs a transformation of the size of strokes on the target art. | |
virtual bool | canIsolate () const |
Gets whether the art, or one of its parents, can be isolated. | |
virtual bool | isIsolated () const |
Gets whether the art, or one of its parents, is currently isolated. | |
virtual bool | isolate (const bool hideOtherArt_) |
Isolates the art or one of its parents. | |
Iterator | begin () const |
Gets an iterator for the art in the target's parent group, starting with the target. | |
Friends | |
aip::Art * | __accessImpl (const Art &) |
Art | __accessCtor (aip::Art *&) |
Handles general art-related functionality.
This class handles general art functionality (e.g. tranforms, metadata, duplication, reordering, siblings, etc.); more specific actions can be taken on specific art types (e.g. paths, text, etc.) by accessing the appropriate method in this class (e.g. path(), text(), etc.), but be sure to verify the type of the art first by calling artType()
hdi::core::Art::Art | ( | ) |
Constructs an empty Art object.
hdi::core::Art::Art | ( | const Art & | art_ | ) |
hdi::core::Art::Art | ( | const AIArtHandle | aiArt_ | ) |
Constructs a new Art object from an AIArtHandle.
aiArt_ | Raw Illustrator AIArtHandle |
hdi::core::Art::Art | ( | const AISafeArtHandle | aiArt_ | ) |
Constructs a new Art object from an AISafeArtHandle.
aiArt_ | Raw Illustrator AISafeArtHandle |
hdi::core::Art::Art | ( | const std::string & | uuid_ | ) |
Constructs a new Art object from a UUID string.
uuid_ | Raw Illustrator art UUID |
hdi::core::Art::Art | ( | const ArtType | type_, |
const PaintOrder | order_, | ||
const Art *const | prep_ = NULL |
||
) |
Constructs a new Art object for a newly created piece of Illustrator art.
type_ | Type of art to create |
order_ | Order in which to create the art |
prep_ | Prepositional piece of art to which order_ will apply (or NULL if not needed) |
hdi::core::Art::Art | ( | const ArtboardPoint & | anchor_, |
const TextOrientation | dir_, | ||
const PaintOrder | order_, | ||
const Art *const | prep_ = NULL |
||
) |
Constructs a new Art object for a newly created piece of Illustrator text art (type of ArtTypeText)
anchor_ | Start point of the baseline of the first character |
dir_ | Text orientation direction |
order_ | Order in which to create the art |
prep_ | Prepositional piece of art to which order_ will apply (or NULL if not needed) |
|
virtual |
Art object destructor.
|
virtual |
Gets the art handle around which the target object is wrapped.
|
virtual |
Gets the "safe" art handle around which the target object is wrapped.
|
virtual |
Gets all the artboards that "touch" the target art.
|
virtual |
Gets a bitwise OR'd enum value of all currently set art attributes.
|
virtual |
Gets whether any ancestor of the art is hidden.
|
virtual |
Gets whether any ancestor of the art is locked.
|
virtual |
Gets whether any ancestor of the art is selected.
|
virtual |
Gets the area of the art.
|
virtual |
Gets the "most overlapping" artboard for the target art.
|
virtual |
Gets the type of the art.
|
virtual |
Gets whether a specific art attribute is true.
attr_ | The attribute of interest |
Iterator hdi::core::Art::begin | ( | ) | const |
Gets an iterator for the art in the target's parent group, starting with the target.
|
virtual |
Retrieves the current blending mode of an art object, which applies to the object as a whole.
|
virtual |
Gets the bounds rect for the target art.
opts_ | A bitwise OR of the bounds in question; see BoundsOptions |
|
virtual |
Gets whether the art, or one of its parents, can be isolated.
|
virtual |
Gets whether the center point is visible for the target art.
|
virtual |
Gets the count of the children for the target art.
|
virtual |
|
virtual |
Sets the art object and all its children (in the case of a container) to be deselected.
|
virtual |
Gets the built-in art data dictionary object for the target art.
|
virtual |
Removes the art from the artboard.
|
virtual |
Removes all the children art from the parent group or compound path.
|
virtual |
Duplicates the target piece of art on the artboard.
order_ | Order in which to create the art |
prep_ | Prepositional piece of art to which order_ will apply (or NULL if not needed) |
|
virtual |
Gets whether the art is editable.
|
virtual |
Expands the target art object.
opts_ | Controls how the expansion is done |
steps_ | For artwork with gradient fills, this is the number of art pieces to create to approximate the gradient |
|
virtual |
Gets the first child art object for the target art.
|
virtual |
If the art has a style, this flattens the styled representation and replaces the source art with said representation.
|
virtual |
Gets whether the art is fully selected.
|
virtual |
Gets whether the target art object has a fill.
|
virtual |
Gets whether the target art object has a stroke.
|
virtual |
Gets the height of the bounds of the art.
|
virtual |
Gets whether the art is hidden.
|
virtual |
Retrieves the inherited knockout state (on or off) of an art object.
|
virtual |
Gets whether the target art object is a group that has clip mask children.
|
virtual |
Gets whether the target art object is a piece of dimension art.
|
virtual |
|
virtual |
Gets whether the art, or one of its parents, is currently isolated.
|
virtual |
Gets whether the target art object is a group that corresponds to a layer or sublayer.
|
virtual |
Isolates the art or one of its parents.
hideOtherArt_ | true to make non-isolated invisible, false to dim it instead |
|
virtual |
Gets whether the target art is part of the styled art of another art object.
|
virtual |
Retrieves the current knockout state of an art object.
|
virtual |
Gets the last child art object for the target art.
|
virtual |
Gets the parent layer for the target art.
|
virtual |
Gets whether the art is locked.
|
virtual |
Marks an Art object that previously would have been redrawn as NOT needing redrawing.
|
virtual |
Marks an Art object for redrawing by incrementing its internal modification time stamp.
|
virtual |
|
virtual |
Gets a vector of art in the art tree, rooted at the target, whose specs match those given.
specs_ | Vector of match specifications |
|
virtual |
|
virtual |
Moves the art to a given point, placing its pin point at another arbitrary point (pinPt_ arg)
newOrigin_ | New "origin" for the art |
origin_ | "Pin point", at an arbitrary position, which will be moved to the new "origin" |
deep_ | Whether the move transform is recursively applied to child objects |
|
virtual |
Moves the art to a given point, placing its pin point (pinPt_ arg) at a particular pre- defined point.
newOrigin_ | New "origin" for the art |
pinPt_ | "Pin point" which will be moved to the new "origin" |
deep_ | Whether the move transform is recursively applied to child objects |
|
virtual |
Gets the bounds rect for the target art, excluding the stroke.
This is a convenience method for calling bounds(VisibleBounds | NoStrokeBounds | ExcludeGuideBounds)
|
virtual |
Offsets (moves) the art by given x-axis and y-axis values.
x_ | Amount to offset along the x-axis |
y_ | Amount to offset along the y-axis |
deep_ | Whether the offset transform is recursively applied to child objects |
|
virtual |
Retrieves the current opacity value applied to an art object.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Gets a PathArt object for this Art object.
|
virtual |
Gets the perimeter of the art.
|
virtual |
|
virtual |
Gets the previous sibling art object for the target art.
|
virtual |
|
virtual |
Reorders the target art in Illustrator's drawing order.
order_ | Order in which to place the art |
prep_ | Prepositional piece of art to which order_ will apply (or NULL if not needed) |
|
virtual |
Rotates the target art by a given angle around a given pin point.
angle_ | Angle to rotate the art |
origin_ | New "origin" around which the art will be rotated |
deep_ | Whether the rotation transform is recursively applied to child objects |
|
virtual |
Rotates the target art by a given angle around its center point.
angle_ | Angle to rotate the art around its center point |
deep_ | Whether the rotation transform is recursively applied to child objects |
|
virtual |
Rotates the target art by a given angle around a given pre-defined pin point.
angle_ | Angle to rotate the art |
pinPt_ | "Pin point" around which the art will be rotated |
deep_ | Whether the rotation transform is recursively applied to child objects |
|
virtual |
Scales the art by a given scaler from a given pin point.
scaler_ | Multiplier for scaling (e.g. 0.75 is 75% of the current size) |
origin_ | "Origin" from which the art will be scaled |
deep_ | Whether the scale transform is recursively applied to child objects |
|
virtual |
Scales the art by a given scaler from its center point.
scaler_ | Multiplier for scaling (e.g. 0.75 is 75% of the current size) |
deep_ | Whether the scale transform is recursively applied to child objects |
|
virtual |
Scales the art by a given scaler from a preset pin point.
scaler_ | Multiplier for scaling (e.g. 0.75 is 75% of the current size) |
pinPt_ | "Pin point" from which the art will be scaled |
deep_ | Whether the scale transform is recursively applied to child objects |
|
virtual |
Scales the art by given scalers from a given pin point.
xScaler_ | Multiplier for scaling horizontally (e.g. 0.75 is 75% of the current size) |
yScaler_ | Multiplier for scaling vertically (e.g. 0.75 is 75% of the current size) |
origin_ | New "origin" from which the art will be scaled |
deep_ | Whether the scale transform is recursively applied to child objects |
|
virtual |
Scales the art by givens scaler from its center point.
xScaler_ | Multiplier for scaling horizontally (e.g. 0.75 is 75% of the current size) |
yScaler_ | Multiplier for scaling vertically (e.g. 0.75 is 75% of the current size) |
deep_ | Whether the scale transform is recursively applied to child objects |
|
virtual |
Scales the art by given scalers from a preset pin point.
xScaler_ | Multiplier for scaling horizontally (e.g. 0.75 is 75% of the current size) |
yScaler_ | Multiplier for scaling vertically (e.g. 0.75 is 75% of the current size) |
pinPt_ | "Pin point" from which the art will be scaled |
deep_ | Whether the scale transform is recursively applied to child objects |
|
virtual |
Sets the art object and all its children (in the case of a container) to be selected.
|
virtual |
Gets whether the art is selected.
|
virtual |
Sets a bitwise OR'd enum value for all art attributes.
attrs_ | All art attributes that should be true bitwise OR'd into a single enum value |
|
virtual |
Sets an art attribute for the target art (e.g. hidden, locked, etc.)
attr_ | The attribute of interest |
enable_ | Whether to enable the attribute (e.g. true for ArtAttrSelected to make it selected, false to deselect) |
|
virtual |
Sets the current blending mode of an art object, which applies to the object as a whole.
mode_ | New blending mode enum value |
|
virtual |
Sets whether the center point is visible for the target art.
visible_ | Whether the center point is visible |
|
virtual |
Sets whether the art is editable.
editable_ | true to allow editing, false otherwise |
|
virtual |
Sets whether the art is hidden.
hidden_ | true to hide, false otherwise |
|
virtual |
Sets whether the target art object is a group that has clip mask children.
clip_ | true to set the art object to be a clip group, false otherwise |
|
virtual |
Sets the current knockout state of an art object.
ko_ | New knockout enum value |
|
virtual |
Sets whether the art is locked.
lock_ | true to lock, false otherwise |
|
virtual |
Sets the current opacity value applied to an art object.
o_ | New opacity value, in the range [0,1] |
|
virtual |
Sets whether the art is selected.
select_ | true to select, false otherwise |
|
virtual |
Sets the art's style.
style_ | New style for the art |
|
virtual |
Sets the original symbol definition object for an instance of a symbol.
sym_ | The symbol art instance's definition |
|
virtual |
Gets the next sibling art object for the target art.
|
virtual |
Gets the bounds rect for the target art, including the stroke.
This is a convenience method for calling bounds(VisibleBounds | ExcludeGuideBounds)
|
virtual |
Gets the art's style.
|
virtual |
If the art has a style, this acquires its styled representation.
|
virtual |
Gets the original symbol definition for an instance of a symbol.
|
virtual |
|
virtual |
Performs an arbitrary transformation on the target art.
matrix_ | Transformation matrix to apply for the transform |
deep_ | Whether the transform is recursively applied to child objects |
|
virtual |
Gets the bounds that would be the result of a transform.
transform_ | Transform to "virtually" perform before acquiring bounds |
opts_ | Flags for which attributes to take into consideration during bounds calculations (bitwise OR of BoundsOptions enum) |
|
virtual |
Performs a transformation of the size of strokes on the target art.
scaler_ | Amount to scale the strokes, as a multiplier (e.g. 2.0 means 200%) |
children_ | Whether to transform strokes of all children too |
|
virtual |
Performs an arbitrary transformation on the target art with the given options.
matrix_ | Transformation matrix to apply for the transform |
options_ | TransformOptions enum values bitwise OR'd together |
|
virtual |
|
virtual |
Updates the bounds rect for the target art by updating Illustrator caches (regarding bounding boxes)
|
virtual |
Checks whether any linked objects (linked images or placed objects) contained in the subtree of a given container need updating, and updates them if needed.
force_ | Whether to force updating of objects regardless of whether they have changed |
|
virtual |
Accessor for the UUID string for the Art object.
|
virtual |
Tests the validity of the target piece of art by searching for it in the document.
|
virtual |
Gets the width of the bounds of the art.
|
virtual |
Gets the top-left x-value of the art.
|
virtual |
Gets the top-left y-value of the art.