ExtractedUiImage class

Extracted image UI element — a tinted textured quad.

Inheritance

Constructors

ExtractedUiImage({required Rect rect, required int sortKey, required TextureHandle texture, Rect? sourceRect, Color tint = const Color(0xFFFFFFFF)})
Creates an extracted UI image.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
rect → Rect
The element's screen-space rectangle in logical pixels.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sortKey → int
Draw-order key. Higher values draw on top of lower ones. The UiExtractor assigns keys inside DrawLayer.ui's sort range so UI elements always stack over gameplay sprites.
finalinherited
sourceRect → Rect?
Source rectangle in texture pixels. null uses the whole texture.
final
texture → TextureHandle
The texture to sample.
final
tint → Color
Tint applied to the sampled texels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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