trait DisplayObject extends Object
The base class for all objects that are rendered on the screen. This is an abstract class and should not be used on its own rather it should be extended.
- Annotations
- @RawJSType() @native()
- Alphabetic
- By Inheritance
- DisplayObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
alpha: Alpha
The alpha value of the group container.
- val anchor: Point
-
def
angle: Double
The angle of rotation of the group container, in degrees.
The angle of rotation of the group container, in degrees. This adjusts the group itself by modifying its local rotation transform. This has no impact on the rotation/angle properties of the children, but it will update their worldTransform and on-screen orientation and position.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
cacheAsBitmap: Boolean
Set if this display object is cached as a bitmap.
Set if this display object is cached as a bitmap. This basically takes a snap shot of the display object as it is at that moment. It can provide a performance benefit for complex static displayObjects. To remove simply set this property to 'null'
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
destroy(): Unit
Base destroy method for generic display objects.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
setParent(container: Container): Container
Set the parent Container of this DisplayObject.
Set the parent Container of this DisplayObject.
- container
The Container to add this DisplayObject to.
- returns
The Container that this DisplayObject was added to.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toGlobal(position: Point): Point
Calculates the global position of the display object.
Calculates the global position of the display object.
- position
The world origin to calculate from.
- returns
A point object representing the position of this object.
-
def
toLocal(position: Point, from: DisplayObject = null): Point
Calculates the local position of the display object relative to another point.
Calculates the local position of the display object relative to another point.
- position
The world origin to calculate from.
- from
The DisplayObject to calculate the global position from.
- returns
A point object representing the position of this object.
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
- val visible: Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
worldTransform: Matrix
Current transform of the object based on world (parent) factors
-
def
worldVisible: Boolean
Indicates if the sprite is globally visible.
-
def
x: Double
The position of the displayObject on the x axis relative to the local coordinates of the parent.
- def x_=(x: Double): Unit
-
def
y: Double
The position of the displayObject on the y axis relative to the local coordinates of the parent.
- def y_=(y: Double): Unit