Sprite class

Inheritance

Constructors

Sprite.new(Pointer<SdlTexture> texture, {Rectangle<double>? srcrect})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
srcrect Rectangle<double>?
getter/setter pair
texture Pointer<SdlTexture>
getter/setter pair

Methods

addChild(Node child) Future
inherited
addEvent(Event<EventManager> event, {Node? owner}) → void
inherited
convertToNodeSpace([Point<double>? point]) Point<double>
inherited
convertToNodeSpaceAR([Point<double>? point]) Point<double>
inherited
convertToWorldSpace([Point<double>? point]) Point<double>
inherited
convertToWorldSpaceAR([Point<double>? point]) Point<double>
inherited
ctor() Future
inherited
destroy() Future
inherited
draw(NodeContext context) Future
override
drawNormal(NodeContext context, Rectangle<double> bb) Future
drawSlice(NodeContext context, Rectangle<double> bb) Future
getAncestor<T>() → T?
inherited
getAnchorPoint() Point<double>
inherited
getAnchorPointInPoints() Point<double>
inherited
getAngle() double
getCloneChildren() List<Node>
inherited
getContentSize() Point<double>
inherited
getFlipX() bool
getFlipY() bool
getParent() Node?
inherited
getPosition() Point<double>
inherited
getPositionAR() Point<double>
inherited
getScale() double
inherited
getSlice() bool
getWorldAnchorPointInPoints() Point<double>
inherited
getWorldBoundingBox([Point<double>? calc]) Rectangle<double>
inherited
getWorldContentSize() Point<double>
inherited
getWorldIntersectBox() Rectangle<double>?
inherited
getWorldPosition() Point<double>
inherited
getWorldScale() double
inherited
lateDraw(NodeContext context) Future
inherited
lateUpdate() Future
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshWaitEvent() → void
inherited
remove(Node child) Future
inherited
removeAllChildren() Future
inherited
removeEvent(Event<EventManager> event, {Node? owner}) → void
inherited
removeFromParent() Future
inherited
resize() Future
inherited
setAnchorPoint(Point<double> anchorPoint) → void
inherited
setAngle(double angle) → void
setContentSize(Point<double> contentSize) → void
inherited
setFlipX(dynamic flipX) → void
setFlipY(dynamic flipY) → void
setPosition(Point<double> position) → void
inherited
setPositionAR(Point<double> position) → void
inherited
setScale(double scale) → void
inherited
setSlice(bool slice) → void
setSpriteFrame(SpriteFrame spriteFrame) → void
toString() String
A string representation of this object.
inherited
update(NodeContext context) Future
inherited
walkDestroy() Future
inherited
walkResize() Future
inherited
walkUpdateAndDraw(NodeContext context) Future
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited