DisplayBoundsDebugger class
A utility class for debugging and rendering the bounding boxes of
GDisplayObject
instances. The DisplayBoundsDebugger
can be used to
render the bounding boxes of display objects when debugBounds
is enabled
on them.
To use the DisplayBoundsDebugger
, set $debugBounds=true
on any
GDisplayObject
.
Constructors
- DisplayBoundsDebugger(GDisplayObjectContainer root)
-
Creates a new DisplayBoundsDebugger instance with the given root
GDisplayObjectContainer
. (should be private)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
) → void -
Renders the bounds of all objects that have GDisplayObject.$debugBounds
enabled or have the debugAll flag set to
true
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- debugAll ↔ bool
-
A global flag to render the bounding box of every display object.
getter/setter pair
- debugBoundsMode ↔ DebugBoundsMode
-
The debug mode for rendering bounds. When set to
DebugBoundsMode.internal, only display objects with
GDisplayObject.$debugBounds enabled will be rendered. When set to
DebugBoundsMode.stage, all display objects will be rendered, regardless
of the GDisplayObject.$debugBounds flag.
getter/setter pair
- enabled ↔ bool
-
A global flag to disable all debug bounds rendering for performance.
getter/setter pair