GRoot Properties |
The GRoot type exposes the following members.
Name | Description | |
---|---|---|
![]() | actualHeight |
actualHeight = height * scaleY
(Inherited from GObject.) |
![]() | actualWidth |
actualWidth = width * scalex
(Inherited from GObject.) |
![]() | alpha |
The opacity of the object. 0 = transparent, 1 = opaque.
(Inherited from GObject.) |
![]() | apexIndex | (Inherited from GComponent.) |
![]() | asButton | (Inherited from GObject.) |
![]() | asCom | (Inherited from GObject.) |
![]() | asComboBox | (Inherited from GObject.) |
![]() | asGraph | (Inherited from GObject.) |
![]() | asGroup | (Inherited from GObject.) |
![]() | asImage | (Inherited from GObject.) |
![]() | asLabel | (Inherited from GObject.) |
![]() | asList | (Inherited from GObject.) |
![]() | asLoader | (Inherited from GObject.) |
![]() | asMovieClip | (Inherited from GObject.) |
![]() | asProgress | (Inherited from GObject.) |
![]() | asRichTextField | (Inherited from GObject.) |
![]() | asSlider | (Inherited from GObject.) |
![]() | asTextField | (Inherited from GObject.) |
![]() | asTextInput | (Inherited from GObject.) |
![]() | baseUserData | (Inherited from GComponent.) |
![]() | blendMode | (Inherited from GObject.) |
![]() | childrenRenderOrder | (Inherited from GComponent.) |
![]() | clipSoftness |
If clipping softness is set, clipped containers will have soft border effect.
(Inherited from GComponent.) |
![]() | container |
Content container. If the component is not clipped, then container==rootContainer.
(Inherited from GComponent.) |
![]() ![]() | contentScaleFactor | |
![]() | Controllers |
Returns controller list.
(Inherited from GComponent.) |
![]() | displayObject |
Lowlevel display object.
(Inherited from GObject.) |
![]() | draggable | (Inherited from GObject.) |
![]() | dragging | (Inherited from GObject.) |
![]() | enabled |
Enabled is shortcut for grayed and !touchable combination.
(Inherited from GObject.) |
![]() | fairyBatching |
Draw call optimization switch.
(Inherited from GComponent.) |
![]() | filter | (Inherited from GObject.) |
![]() | focus | |
![]() | focusable |
If the object can be focused?
(Inherited from GObject.) |
![]() | focused |
If the object is focused. Focused object can receive key events.
(Inherited from GObject.) |
![]() | gameObjectName |
设定GameObject的名称
(Inherited from GObject.) |
![]() | gearLook |
Gear to look controller.
(Inherited from GObject.) |
![]() | gearSize |
Gear to size controller.
(Inherited from GObject.) |
![]() | gearXY |
Gear to xy controller.
(Inherited from GObject.) |
![]() | grayed |
If true, apply a grayed effect on this object.
(Inherited from GObject.) |
![]() | group |
Group belonging to.
(Inherited from GObject.) |
![]() | hasAnyPopup | |
![]() | hasModalWindow |
Return true if a modal window is on stage.
|
![]() | height |
The height of the object in pixels.
(Inherited from GObject.) |
![]() | icon | (Inherited from GObject.) |
![]() | id |
GObject的id,仅作为内部使用。与name不同,id值是不会相同的。
id is for internal use only.
(Inherited from GObject.) |
![]() | inContainer |
If the object has lowlevel displayobject and the displayobject has a container parent?
(Inherited from GObject.) |
![]() ![]() | inst | |
![]() | margin | (Inherited from GComponent.) |
![]() | mask |
The mask of the component.
(Inherited from GComponent.) |
![]() | modalLayer | |
![]() | modalWaiting |
Return true if modal waiting layer is on stage.
|
![]() | numChildren |
The number of children of this component.
(Inherited from GComponent.) |
![]() | onAddedToStage |
Dispatched when the object was added to the stage.
(Inherited from GObject.) |
![]() | onClick |
Dispatched when the object or its child was clicked.
(Inherited from GObject.) |
![]() | onClickLink |
Dispatched when links in the object or its child was clicked.
(Inherited from GObject.) |
![]() | onDragEnd |
Dispatched when drag end.
(Inherited from GObject.) |
![]() | onDragMove |
Dispatched when dragging.
(Inherited from GObject.) |
![]() | onDragStart |
Dispatched when drag start.
(Inherited from GObject.) |
![]() | onDrop |
Dispatched when an object was dragged and dropped to this component.
(Inherited from GComponent.) |
![]() | OnGearStop | (Inherited from GObject.) |
![]() | onKeyDown |
Dispatched on key pressed when the object is in focus.
(Inherited from GObject.) |
![]() | onPositionChanged |
Dispatched when the object was moved.
(Inherited from GObject.) |
![]() | onRemovedFromStage |
Dispatched when the object was removed from the stage.
(Inherited from GObject.) |
![]() | onRightClick |
Dispatched when the object or its child was clicked by right mouse button. Web only.
(Inherited from GObject.) |
![]() | onRollOut |
The cursor or finger leave an object.
(Inherited from GObject.) |
![]() | onRollOver |
The cursor or finger hovers over an object.
(Inherited from GObject.) |
![]() | onSizeChanged |
Dispatched when the object was resized.
(Inherited from GObject.) |
![]() | onStage |
If the object is on stage.
(Inherited from GObject.) |
![]() | onTouchBegin |
Dispatched when the finger touched the object or its child just now.
(Inherited from GObject.) |
![]() | onTouchEnd |
Dispatched when the finger was lifted from the screen or from the mouse button.
(Inherited from GObject.) |
![]() | onTouchMove | (Inherited from GObject.) |
![]() | opaque |
If true, mouse/touch events cannot pass through the empty area of the component. Default is true.
(Inherited from GComponent.) |
![]() | parent |
Parent object.
(Inherited from GObject.) |
![]() | pivot |
The x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | pivotAsAnchor | (Inherited from GObject.) |
![]() | pivotX |
The x coordinate of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | pivotY |
The y coordinate of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | pixelSnapping | (Inherited from GObject.) |
![]() | position |
The x,y,z coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | relations |
Relations Object.
(Inherited from GObject.) |
![]() | resourceURL |
Resource url of this object.
(Inherited from GObject.) |
![]() | reversedMask | (Inherited from GComponent.) |
![]() | root | (Inherited from GObject.) |
![]() | rootContainer |
Root container.
(Inherited from GComponent.) |
![]() | rotation |
The rotation around the z axis of the object in degrees.
(Inherited from GObject.) |
![]() | rotationX |
The rotation around the x axis of the object in degrees.
(Inherited from GObject.) |
![]() | rotationY |
The rotation around the y axis of the object in degrees.
(Inherited from GObject.) |
![]() | scale |
The scale factor.
(Inherited from GObject.) |
![]() | scaleX |
The horizontal scale factor. '1' means no scale, cannt be negative.
(Inherited from GObject.) |
![]() | scaleY |
The vertical scale factor. '1' means no scale, cannt be negative.
(Inherited from GObject.) |
![]() | scrollPane |
ScrollPane of the component. If the component is not scrollable, the value is null.
(Inherited from GComponent.) |
![]() | size |
The size of the object in pixels.
(Inherited from GObject.) |
![]() | skew | (Inherited from GObject.) |
![]() | sortingOrder |
By default(when sortingOrder==0), object added to component is arrange by the added roder.
The bigger is the sorting order, the object is more in front.
(Inherited from GObject.) |
![]() | soundVolume | |
![]() | text | (Inherited from GObject.) |
![]() | tooltips |
Tooltips of this object. UIConfig.tooltipsWin must be set first.
(Inherited from GObject.) |
![]() | touchable |
If the object can touch or click. GImage/GTextField is not touchable even it is true.
(Inherited from GObject.) |
![]() | touchTarget |
Get current touch target. (including hover)
|
![]() | viewHeight |
View port height of the container.
(Inherited from GComponent.) |
![]() | viewWidth |
Viwe port width of the container.
(Inherited from GComponent.) |
![]() | visible |
The visibility of the object. An invisible object will be untouchable.
(Inherited from GObject.) |
![]() | width |
The width of the object in pixels.
(Inherited from GObject.) |
![]() | x |
The x coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | xMin | (Inherited from GObject.) |
![]() | xy |
The x and y coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | y |
The y coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | yMin | (Inherited from GObject.) |
![]() | z |
The z coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |