-
$alpha
↔ double
-
(Internal usage)
The alpha (transparency) value of this object,
a value between 0.0 (fully transparent) and 1.0 (fully opaque).
getter/setter pairinherited
-
$colorize
↔ Color?
-
(Internal usage)
The color to apply to this object.
getter/setter pairinherited
-
$debugBounds
↔ bool
-
(Internal usage)
Whether to show debug bounds for this object.
getter/setter pairinherited
-
$debugBoundsPaint
↔ Paint?
-
(Internal usage)
Defines the debug paint used to show the bounds of this display object
when debug mode is enabled. By default, it uses a magenta stroke with
a width of 1. Override this property to use a custom debug paint.
getter/setter pairinherited
-
$debugLastLayerBounds
↔ GRect?
-
(Internal usage)
Tracks the last layer bounds used for rendering this display object
using getBounds($parent).
getter/setter pairinherited
-
$filters
↔ List<GBaseFilter>?
-
(Internal usage)
The filters applied to this object.
getter/setter pairinherited
-
$hasColorize
→ bool
-
(Internal usage)
Whether this object has a color applied to it.
no setterinherited
-
$hasTouchableArea
↔ bool
-
(Internal usage)
Optimization flag indicating whether this object has a touchable area.
getter/setter pairinherited
-
$hasVisibleArea
↔ bool
-
(Internal usage)
Optimization flag indicating whether this object has a
visible area.
getter/setter pairinherited
-
$lastClickTime
↔ double
-
(Internal usage)
The time of the last mouse click.
getter/setter pairinherited
-
$lastMouseDownInput
↔ MouseInputData?
-
Track the last mouse down state (for Mouse Click and Tap)
getter/setter pairinherited
-
$lastMouseDownTime
↔ double
-
(Internal usage)
Time of the last mouse down event to register a click.
getter/setter pairinherited
-
$mask
↔ GShape?
-
(Internal usage)
The mask of this object, used for masking.
getter/setter pairinherited
-
$maskee
↔ GDisplayObject?
-
(Internal usage)
The display object that acts as a mask of this object.
getter/setter pairinherited
-
$matrixDirty
↔ bool
-
(Internal usage)
Indicates whether the matrix of this object needs to be recalculated.
getter/setter pairinherited
-
$mouseDownObj
↔ GDisplayObject?
-
(Internal usage)
The object that the mouse was last pressed on.
getter/setter pairinherited
-
$mouseOverObj
↔ GDisplayObject?
-
(Internal usage)
The object that the mouse is currently over.
getter/setter pairinherited
-
$onAdded
↔ Signal?
-
(Internal)
getter/setter pairinherited
-
$onAddedToStage
↔ Signal?
-
(Internal)
getter/setter pairinherited
-
$onMouseClick
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseDoubleClick
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseDown
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseMove
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseOut
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseOver
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseUp
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onMouseWheel
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onPostPaint
↔ EventSignal<Canvas>?
-
(Internal)
getter/setter pairinherited
-
$onPrePaint
↔ EventSignal<Canvas>?
-
(Internal)
getter/setter pairinherited
-
$onPreTransform
↔ EventSignal<Canvas>?
-
(Internal)
getter/setter pairinherited
-
$onRemoved
↔ Signal?
-
(Internal)
getter/setter pairinherited
-
$onRemovedFromStage
↔ Signal?
-
(Internal)
getter/setter pairinherited
-
$onRightMouseDown
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onTap
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$onZoomPan
↔ EventSignal<MouseInputData>?
-
(Internal)
getter/setter pairinherited
-
$parent
↔ GDisplayObjectContainer?
-
(Internal usage)
The
parent display object container that this object is a child of.
getter/setter pairinherited
-
$useSaveLayerBounds
↔ bool
-
(Internal usage)
When enabled, a rectangle is created to save the layer for better
rendering performance.
getter/setter pairinherited
-
allowSaveLayer
↔ bool
-
When enabled, the saveLayer() feature is used for better rendering
performance. Disabling it may provide better performance for certain
display objects.
Childless DisplayObjects, like
GShape and GBitmap, have their own
Paint() so no need to use an expensive saveLayer().
getter/setter pairinherited
-
alpha
↔ double
-
Returns the alpha (transparency) value of this object.
getter/setter pairinherited
-
backgroundBitmap
→ GBitmap
-
no setter
-
base
→ GDisplayObject
-
Returns the base object, i.e. the topmost parent in the display hierarchy.
no setterinherited
-
bounds
→ GRect?
-
TODO: should be cached.
Returns the bounds of this object in its local coordinate space.
no setterinherited
-
canvasRect
→ ViewportTransform
-
no setter
-
children
→ List<GDisplayObject>
-
The list of children that this container holds.
finalinherited
-
colorize
↔ Color?
-
Gets the color applied to this object.
getter/setter pairinherited
-
elements
→ List<GDisplayObject>
-
no setter
-
filterPaint
↔ Paint
-
The paint to use for filters that require a paint.
getter/setter pairinherited
-
filters
↔ List<GBaseFilter>?
-
Gets the filters applied to this object.
getter/setter pairinherited
-
graphics
→ Graphics
-
Returns the
graphics object associated with this sprite. If the
_graphics field is null, it is assigned a new Graphics object. This
means that the graphics object is lazily initialized when it is first
requested. This allows the sprite to be used without graphics until it is
needed.
no setterinherited
-
hasChildren
→ bool
-
Whether this container has any children.
no setterinherited
-
hasFilters
→ bool
-
Returns true if this object has any filters applied.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
↔ double
-
Indicates the height of the display object, in dp.
The
height is calculated based on the bounds of the content of the
display object.
When you set the height property, the scaleX property is adjusted
accordingly, as shown in the following code:
getter/setter pairinherited
-
inStage
→ bool
-
Returns
true if this object is on the stage.
no setterinherited
-
isDraggable
→ bool
-
no setter
-
isMask
→ bool
-
Returns whether this object is currently being used as a
mask for another
object.
no setterinherited
-
isRotated
→ bool
-
Returns whether this object has any
rotation or skew transformation.
no setterinherited
-
isScaleEnabled
→ bool
-
no setter
-
mask
↔ GShape?
-
Returns the mask of this object.
getter/setter pairinherited
-
maskInverted
↔ bool
-
Whether the object should apply an inverted mask.
can be set on the Shape mask, or the maskee DisplayObject.
getter/setter pairinherited
-
maskRect
↔ GRect?
-
The rectangular area of the mask.
getter/setter pairinherited
-
maskRectCornerRadius
↔ double?
-
The corner radius of the mask.
getter/setter pairinherited
-
maskRectInverted
↔ bool
-
Whether the mask is inverted or not.
getter/setter pairinherited
-
mouseChildren
↔ bool
-
Whether this container will capture mouse input events for its children.
getter/setter pairinherited
-
mouseEnabled
↔ bool
-
Indicates whether this object can receive mouse and touch input events.
getter/setter pairinherited
-
mousePosition
→ GPoint
-
Returns the position of the mouse in the local coordinate system of this
object.
The mouse position is updated every frame, so this method returns the
current mouse position relative to the top-left corner of this object.
no setterinherited
-
mouseUseShape
↔ bool
-
Whether to use the shape of the object for mouse event detection.
getter/setter pairinherited
-
mouseX
→ double
-
The x-coordinate of the mouse or touch position in the local coordinate
system of this object.
no setterinherited
-
mouseY
→ double
-
The y-coordinate of the mouse or touch position in the local coordinate
system of this object.
no setterinherited
-
name
↔ String?
-
Name to reference this object.
getter/setter pairinherited
-
numChildren
→ int
-
The number of children of this container.
no setterinherited
-
onAdded
→ Signal
-
Returns the
Signal that is triggered when an object is added to the
display list.
no setterinherited
-
onAddedToStage
→ Signal
-
Returns the
Signal that is triggered when an object is added to the
stage.
no setterinherited
-
onMouseClick
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse is clicked.
no setterinherited
-
onMouseDoubleClick
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse is double clicked.
no setterinherited
-
onMouseDown
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse button is pressed down.
no setterinherited
-
onMouseMove
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse is moved.
no setterinherited
-
onMouseOut
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse leaves a component.
no setterinherited
-
onMouseOver
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse is over a component.
no setterinherited
-
onMouseScroll
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse wheel is scrolled.
no setterinherited
-
onMouseUp
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the mouse button is released.
no setterinherited
-
onPostPaint
→ EventSignal<Canvas>
-
A signal that runs right after
GDisplayObject.$applyPaint is called.
no setterinherited
-
onPrePaint
→ EventSignal<Canvas>
-
A signal that runs before
GDisplayObject.$applyPaint, which is the
render method to subclass.
no setterinherited
-
onPreTransform
→ EventSignal<Canvas>
-
A signal that runs right away when
GDisplayObject.paint is called,
before any mask or filters are applied. This is the first signal to run
on rendering.
no setterinherited
-
onRemoved
→ Signal
-
Returns the
Signal that is triggered when an object is removed from the
display list.
no setterinherited
-
onRemovedFromStage
→ Signal
-
Returns the
Signal that is triggered when an object is removed from the
stage.
no setterinherited
-
onRightMouseDown
→ EventSignal<MouseInputData>
-
A signal that is dispatched when the right mouse button is pressed down.
no setterinherited
-
onTap
→ EventSignal<MouseInputData>
-
Gesture tap signal similar to Mouse Click but takes movement threshold.
no setterinherited
-
onZoomPan
→ EventSignal<MouseInputData>
-
A signal that is dispatched when a zoom/pan gesture is performed.
no setterinherited
-
parent
→ GDisplayObjectContainer?
-
Returns the parent container.
no setterinherited
-
pivotX
↔ double
-
Returns the x coordinate of the pivot point,
the center of scaling and rotation.
getter/setter pairinherited
-
pivotY
↔ double
-
Returns the y coordinate of the pivot point,
the center of scaling and rotation.
getter/setter pairinherited
-
pluginManager
↔ RendererPluginManager?
-
getter/setter pair
-
root
→ GDisplayObject?
-
Returns the root
GDisplayObject that is the ancestor of this object
(either a Stage or a null).
no setterinherited
-
rotation
↔ double
-
Returns the angle of rotation in radians.
getter/setter pairinherited
-
rotationX
↔ double
-
The rotation angle in radians about the x-axis for 3d transformation.
getter/setter pairinherited
-
rotationY
↔ double
-
The rotation angle in radians about the y-axis for 3d transformation.
getter/setter pairinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scale
↔ double
-
Shortcut for setting proportional X and Y scale values.
getter/setter pairinherited
-
scaleX
↔ double
-
Returns the horizontal scale of the object.
getter/setter pairinherited
-
scaleY
↔ double
-
Returns the vertical scale of the object.
getter/setter pairinherited
-
schema
→ Schema
-
no setter
-
schemaElements
→ Iterable<SchemaElement>
-
no setter
-
skewX
↔ double
-
Returns the angle of skew on the x-axis in radians.
getter/setter pairinherited
-
skewY
↔ double
-
Returns the angle of skew on the y-axis in radians.
getter/setter pairinherited
-
stage
→ Stage?
-
Returns the stage this object is on or
null if it's not on a stage.
no setterinherited
-
stageHeight
→ double
-
no setter
-
stageWidth
→ double
-
no setter
-
transformationMatrix
↔ GMatrix
-
Gets the transformation matrix that represents the object's position,
scale, rotation and skew.
getter/setter pairinherited
-
useCursor
↔ bool
-
Whether to use a custom cursor for this object.
getter/setter pairinherited
-
userData
↔ Object?
-
You can store any user defined data in this property for easy access.
getter/setter pairinherited
-
viewportPosition
→ Offset
-
no setter
-
viewportScale
→ double
-
no setter
-
viewportX
→ double
-
no setter
-
viewportY
→ double
-
no setter
-
visible
↔ bool
-
Returns whether the display object is visible or not.
getter/setter pairinherited
-
width
↔ double
-
Indicates the width of the display object, in dp.
The
width is calculated based on the bounds of the content of the
display object.
When you set the width property, the scaleX property is adjusted
accordingly, as shown in the following code:
getter/setter pairinherited
-
worldAlpha
→ double
-
Returns the alpha value of the object relative to its parent and all its
ancestors.
no setterinherited
-
worldScaleX
→ double
-
Returns the horizontal scaling factor of the object relative to its
parent and all its ancestors.
no setterinherited
-
worldScaleY
→ double
-
Returns the vertical scaling factor of the object relative to its parent
and all its ancestors.
no setterinherited
-
worldX
→ double
-
Returns the x coordinate of the object relative to the stage and all its
ancestors.
no setterinherited
-
worldY
→ double
-
Returns the y coordinate of the object relative to the stage and all its
ancestors.
no setterinherited
-
x
↔ double
-
The
x coordinate of the display object relative to its parent's
coordinate system.
getter/setter pairinherited
-
y
↔ double
-
The
y coordinate of the display object relative to its parent's
coordinate system.
getter/setter pairinherited
-
z
↔ double
-
(Experimental)
The z-coordinate of this object in 3D space.
getter/setter pairinherited