Module hilo/view/View
Requires
hilo/core/Hilo, hilo/core/Class, hilo/event/EventMixin, hilo/geom/Matrix
Source
View.js
View View is the base class of all display objects
Property | Defined | |
---|---|---|
align:String|Function
The alignment of the view, the value must be one of Hilo.align enum.
|
View | |
alpha:Number
The opacity of the view, default value is 1.
|
View | |
background:Object
The background style to fill the view, can be css color, gradient or pattern of canvas
|
View | |
boundsArea:Array
The vertex points of the view, the points are relative to the center point.
|
View | |
depth:Number
The z index of the view, readonly!
|
View | |
drawable:Drawable
The drawable object of the view.
|
View | |
height:Number
The height of the view, default value is 0.
|
View | |
id:String
The identifier for the view.
|
View | |
mask:Graphics
Sets a mask for the view.
|
View | |
onUpdate:Function
|
View | |
parent:Container
The parent view of this view, readonly!
|
View | |
pivotX:Number
Position of the center point on the x axis of the view, default value is 0.
|
View | |
pivotY:Number
Position of the center point on the y axis of the view, default value is 0.
|
View | |
pointerEnabled:Boolean
Is the view can receive DOM events, default value is true.
|
View | |
rotation:Number
The rotation of the view in angles, default value is 0.
|
View | |
scaleX:Number
The x axis scale factor of the view, default value is 1.
|
View | |
scaleY:Number
The y axis scale factor of the view, default value is 1.
|
View | |
visible:Boolean
The visibility of the view.
|
View | |
width:Number
The width of the view, default value is 0.
|
View | |
x:Number
The position of the view on the x axis relative to the local coordinates of the parent, default value is 0.
|
View | |
y:Number
The position of the view on the y axis relative to the local coordinates of the parent, default value is 0.
|
View |
Method | Defined | |
---|---|---|
View(properties:Object)
Constructor
|
View | |
|
View | |
getBounds():Array
|
View | |
getScaledHeight():Number
|
View | |
getScaledWidth():Number
|
View | |
getStage():Stage
|
View | |
hitTestObject(object:View, usePolyCollision:Boolean)
|
View | |
hitTestPoint(x:Number, y:Number, usePolyCollision:Boolean):Boolean
|
View | |
removeFromParent():View
|
View | |
|
View | |
toString():String
|
View |