ClippingAttachment class
An attachment with vertices that make up a polygon used for clipping the rendering of other attachments.
- Inheritance
-
- Object
- Attachment<
spine_clipping_attachment> - VertexAttachment<
spine_clipping_attachment> - ClippingAttachment
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeWorldVertices(
Slot slot) → List< double> -
Transforms and returns the attachment's local getVertices to world coordinates. If the slot's
Slot.getDeform
is not empty, it is used to deform the vertices. See World transforms in the Spine Runtimes Guide.inherited -
copy(
) → Attachment< Pointer< NativeType> > -
Returns a copy of the attachment. Copied attachments need to be disposed manually
when no longer in use via the dispose method.
inherited
-
dispose(
) → void -
inherited
-
getBones(
) → Int32List -
The bones which affect the getVertices. The array entries are, for each vertex, the number of bones affecting
the vertex followed by that many bone indices, which is the index of the bone in Skeleton.getBones. Will be null
if this attachment has no weights.
inherited
-
getColor(
) → Color - The color of the clipping attachment as it was in Spine, or a default color if nonessential data was not exported. Clipping attachments are not usually rendered at runtime.
-
getEndSlot(
) → SlotData? - Clipping is performed between the clipping attachment's slot and the end slot. If null clipping is done until the end of the skeleton's rendering.
-
getName(
) → String -
The attachment's name.
inherited
-
getTimelineAttachment(
) → Attachment< Pointer< ?NativeType> > -
Timelines for the timeline attachment are also applied to this attachment. May return
null
if not attachment-specific timelines should be applied.inherited -
getType(
) → AttachmentType -
The attachment's type.
inherited
-
getVertices(
) → Float32List -
The vertex positions in the bone's coordinate system. For a non-weighted attachment, the values are
x,y
entries for each vertex. For a weighted attachment, the values arex,y,weight
entries for each bone affecting each vertex.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setColor(
double r, double g, double b, double a) → void -
setEndSlot(
SlotData? endSlot) → void -
setTimelineAttachment(
Attachment< Pointer< ? attachment) → voidNativeType> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited