Image class
Constructors
- Image()
Properties
- artboard → Artboard?
-
The artboard this component belongs to.
no setterinherited
- asset ↔ ImageAsset?
-
getter/setter pairinherited
- assetId ↔ int
-
Image drawable for an image asset
getter/setter pairinherited
- assetIdPropertyKey → int
-
Get the Core typeKey for the property that stores the assetId on the
concrete object.
no setter
- blendMode ↔ BlendMode
-
getter/setter pairinherited
- blendModeValue ↔ int
-
Change the
_blendModeValue
field value.blendModeValueChanged
will be invoked only if the field's value has changed.getter/setter pairinherited - canBeOrphaned → bool
-
Override to true if you want some object inheriting from Component to not
have a parent. Most objects will validate that they have a parent during
the onAdded callback otherwise they are considered invalid and are culled
from core.
no setterinherited
- childOpacity → double
-
no setterinherited
- children → ContainerChildren
-
finalinherited
-
clippingShapes
→ Iterable<
ClippingShape> -
no setterinherited
- constraintBounds → AABB
-
Bounds to use for constraining to object space.
no setterinherited
-
constraints
→ Iterable<
Constraint> -
no setterinherited
- context ↔ RuntimeArtboard
-
covariantgetter/setter pairinherited
- coreType → int
-
no setterinherited
-
coreTypes
→ Set<
int> -
no setterinherited
-
dependencies
→ Set<
Component> -
no setterinherited
- dependencyRoot ↔ Artboard?
-
getter/setter pairinherited
-
dependents
→ Set<
Component> -
no setterinherited
- dirt ↔ int
-
getter/setter pairinherited
- drawableFlags ↔ int
-
Change the
_drawableFlags
field value.drawableFlagsChanged
will be invoked only if the field's value has changed.getter/setter pairinherited - drawRules → DrawRules?
-
no setterinherited
- flattenedDrawRules ↔ DrawRules?
-
Flattened rules inherited from parents (or self) so we don't have to look
up the tree when re-sorting.
getter/setter pairinherited
- graphOrder ↔ int
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMesh → bool
-
no setter
- hasValidated → bool
-
no setterinherited
- height → double
-
no setter
- id ↔ int
-
getter/setter pairinherited
- image → Image?
-
no setter
- isCollapsed → bool
-
Whether this Component's update processes at all.
no setterinherited
- isConstrained → bool
-
no setterinherited
- isHidden → bool
-
no setterinherited
- isTargetOpaque → bool
-
no setterinherited
- localBounds → AABB
-
no setteroverride
- mesh → Mesh?
-
no setter
- name ↔ String
-
Non-unique identifier, used to give friendly names to elements in the
hierarchy. Runtimes provide an API for finding components by this
name
.getter/setter pairinherited - next ↔ Drawable?
-
The next drawable in the draw order.
getter/setter pairinherited
- opacity ↔ double
-
Change the
_opacity
field value. opacityChanged will be invoked only if the field's value has changed.getter/setter pairinherited - originX ↔ double
-
Origin x in normalized coordinates (0.5 = center, 0 = left, 1 = right).
getter/setter pairinherited
- originY ↔ double
-
Origin y in normalized coordinates (0.5 = center, 0 = top, 1 = bottom).
getter/setter pairinherited
- parent ↔ ContainerComponent?
-
getter/setter pairinherited
- parentId ↔ int
-
Identifier used to track parent ContainerComponent.
getter/setter pairinherited
- parentWorldTransform → Mat2D
-
Returns the world transform of the parent component. Returns the identity
if there is no parent (the artboard should be the only case here).
no setterinherited
- prev ↔ Drawable?
-
The previous drawable in the draw order.
getter/setter pairinherited
- renderOpacity → double
-
no setterinherited
- renderTransform → Mat2D
-
no setter
- rotation ↔ double
-
Change the
_rotation
field value. rotationChanged will be invoked only if the field's value has changed.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ Vec2D
-
getter/setter pairinherited
- scaleX ↔ double
-
Change the
_scaleX
field value. scaleXChanged will be invoked only if the field's value has changed.getter/setter pairinherited - scaleY ↔ double
-
Change the
_scaleY
field value. scaleYChanged will be invoked only if the field's value has changed.getter/setter pairinherited -
skinnable
→ Skinnable<
MeshVertex> ? -
no setter
- transform → Mat2D
-
finalinherited
- translation ↔ Vec2D
-
Sets the position of the Node
getter/setter pairinherited
- userData ↔ dynamic
-
getter/setter pairinherited
- width → double
-
no setter
- worldTransform → Mat2D
-
finalinherited
- worldTranslation → Vec2D
-
no setterinherited
- x ↔ double
-
Change the
_x
field value. xChanged will be invoked only if the field's value has changed.getter/setter pairinherited - y ↔ double
-
Change the
_y
field value. yChanged will be invoked only if the field's value has changed.getter/setter pairinherited
Methods
-
addDependent(
Component dependent, {Component? via}) → bool -
Mark
dependent
as a component which must update after this. Providevia
as the Component registering the dependency when it is notdependent
itself. At edit time this allows the editor to rebuild bothdependent
andvia
whendependent
has its dependencies cleared.inherited -
addDirt(
int value, {bool recurse = false}) → bool -
inherited
-
allDependencies(
Set< Component> dependencies) → void -
inherited
-
appendChild(
Component child) → void -
Adds the child to the children list and re-wires the parent reference of
the child to the parent. Effectively detach and append.
inherited
-
assetIdChanged(
int from, int to) → void -
override
-
blendModeValueChanged(
int from, int to) → void -
inherited
-
buildDependencies(
) → void -
inherited
-
buildDrawOrder(
List< Drawable> drawables, DrawRules? rules, List<DrawRules> allRules) → void -
inherited
-
calculateWorldTransform(
) → void -
inherited
-
changeArtboard(
Artboard? value) → void -
inherited
-
childAdded(
Component child) → void -
override
-
childRemoved(
Component child) → void -
override
-
clearDependencies(
) → void -
inherited
-
clip(
Canvas canvas) → bool -
inherited
-
clone<
K extends Core< (CoreContext> >) → K? -
Make a duplicate of this core object, N.B. that all properties excluding
object id are copied.
inherited
-
computeIntrinsicSize(
Size min, Size max) → Size -
controlSize(
Size size) → void -
copy(
covariant Image source) → void -
Copies property values, currently doesn't trigger change callbacks. It's
meant to be a helper for clone.
override
-
draw(
Canvas canvas) → void - Draw the contents of this drawable component in world transform space.
-
drawableFlagsChanged(
int from, int to) → void -
inherited
-
forAll(
DescentCallback cb) → bool -
inherited
-
forEachChild(
DescentCallback cb) → void -
inherited
-
import(
ImportStack stack) → bool -
isValidParent(
Component parent) → bool -
inherited
-
markDirtyIfConstrained(
) → void -
inherited
-
markRebuildDependencies(
) → void -
inherited
-
markTransformDirty(
) → void -
inherited
-
markWorldTransformDirty(
) → void -
inherited
-
nameChanged(
String from, String to) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAdded(
) → void -
inherited
-
onAddedDirty(
) → void -
inherited
-
onDependencyRemoved(
Component dependent) → void -
Something we depend on has been removed. It's important to clear out any
stored references to that dependency so it can be garbage collected (if
necessary).
inherited
-
onDirty(
int mask) → void -
inherited
-
onRemoved(
) → void -
When a component has been removed from the Core Context, we clean up any
dangling references left on the parent and on any other dependent
component. It's important for specialization of Component to respond to
override
onDependencyRemoved
and clean up any further stored references to that component (for example the target of a Constraint).inherited -
opacityChanged(
double from, double to) → void -
inherited
-
originXChanged(
double from, double to) → void -
override
-
originYChanged(
double from, double to) → void -
override
-
parentChanged(
ContainerComponent? from, ContainerComponent? to) → void -
inherited
-
parentIdChanged(
int from, int to) → void -
inherited
-
prependChild(
Component child) → void -
inherited
-
propagateCollapse(
bool collapse) → bool -
inherited
-
propagateCollapseToChildren(
bool collapse) → void -
inherited
-
registerWithImporter(
ImportStack stack) → bool -
inherited
-
remove(
) → void -
inherited
-
removeRecursive(
) → void -
Recursive version of
Component.remove
. This should only be called when you know this is the only part of the branch you are removing in your operation. If your operation could remove items from the same branch multiple times, you should consider building up a list of the individual items to remove and then remove them individually to avoid calling remove multiple times on children.inherited -
resolveArtboard(
) → bool -
Find the artboard in the hierarchy.
inherited
-
rotationChanged(
double from, double to) → void -
inherited
-
scaleXChanged(
double from, double to) → void -
inherited
-
scaleYChanged(
double from, double to) → void -
inherited
-
setAsset(
ImageAsset? value, {bool changeId = true}) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
int dirt) → void -
inherited
-
updateTransform(
) → void -
inherited
-
updateWorldTransform(
) → void -
inherited
-
userDataChanged(
dynamic from, dynamic to) → void -
inherited
-
validate(
) → bool -
inherited
-
visitAncestor(
Component ancestor) → void -
Called whenever we're resolving the artboard, we piggy back on that
process to visit ancestors in the tree. This is a good opportunity to
check if we have an ancestor of a specific type. For example, a Path needs
to know which Shape it's within.
inherited
-
xChanged(
double from, double to) → void -
inherited
-
yChanged(
double from, double to) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited