GObject Class |
Namespace: FairyGUI
public class GObject : EventDispatcher
The GObject type exposes the following members.
Name | Description | |
---|---|---|
actualHeight |
actualHeight = height * scaleY
| |
actualWidth |
actualWidth = width * scalex
| |
alpha |
The opacity of the object. 0 = transparent, 1 = opaque.
| |
asButton | ||
asCom | ||
asComboBox | ||
asGraph | ||
asGroup | ||
asImage | ||
asLabel | ||
asList | ||
asLoader | ||
asMovieClip | ||
asProgress | ||
asRichTextField | ||
asSlider | ||
asTextField | ||
asTextInput | ||
blendMode | ||
displayObject |
Lowlevel display object.
| |
draggable | ||
dragging | ||
draggingObject |
当前全局正在被拖动的对象
| |
enabled |
Enabled is shortcut for grayed and !touchable combination.
| |
filter | ||
focusable |
If the object can be focused?
| |
focused |
If the object is focused. Focused object can receive key events.
| |
gameObjectName |
设定GameObject的名称
| |
gearLook |
Gear to look controller.
| |
gearSize |
Gear to size controller.
| |
gearXY |
Gear to xy controller.
| |
grayed |
If true, apply a grayed effect on this object.
| |
group |
Group belonging to.
| |
height |
The height of the object in pixels.
| |
icon | ||
id |
GObject的id,仅作为内部使用。与name不同,id值是不会相同的。
id is for internal use only.
| |
inContainer |
If the object has lowlevel displayobject and the displayobject has a container parent?
| |
onAddedToStage |
Dispatched when the object was added to the stage.
| |
onClick |
Dispatched when the object or its child was clicked.
| |
onClickLink |
Dispatched when links in the object or its child was clicked.
| |
onDragEnd |
Dispatched when drag end.
| |
onDragMove |
Dispatched when dragging.
| |
onDragStart |
Dispatched when drag start.
| |
OnGearStop | ||
onKeyDown |
Dispatched on key pressed when the object is in focus.
| |
onPositionChanged |
Dispatched when the object was moved.
| |
onRemovedFromStage |
Dispatched when the object was removed from the stage.
| |
onRightClick |
Dispatched when the object or its child was clicked by right mouse button. Web only.
| |
onRollOut |
The cursor or finger leave an object.
| |
onRollOver |
The cursor or finger hovers over an object.
| |
onSizeChanged |
Dispatched when the object was resized.
| |
onStage |
If the object is on stage.
| |
onTouchBegin |
Dispatched when the finger touched the object or its child just now.
| |
onTouchEnd |
Dispatched when the finger was lifted from the screen or from the mouse button.
| |
onTouchMove | ||
parent |
Parent object.
| |
pivot |
The x and y coordinates of the object's origin in its own coordinate space.
| |
pivotAsAnchor | ||
pivotX |
The x coordinate of the object's origin in its own coordinate space.
| |
pivotY |
The y coordinate of the object's origin in its own coordinate space.
| |
pixelSnapping | ||
position |
The x,y,z coordinates of the object relative to the local coordinates of the parent.
| |
relations |
Relations Object.
| |
resourceURL |
Resource url of this object.
| |
root | ||
rotation |
The rotation around the z axis of the object in degrees.
| |
rotationX |
The rotation around the x axis of the object in degrees.
| |
rotationY |
The rotation around the y axis of the object in degrees.
| |
scale |
The scale factor.
| |
scaleX |
The horizontal scale factor. '1' means no scale, cannt be negative.
| |
scaleY |
The vertical scale factor. '1' means no scale, cannt be negative.
| |
size |
The size of the object in pixels.
| |
skew | ||
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.
| |
text | ||
tooltips |
Tooltips of this object. UIConfig.tooltipsWin must be set first.
| |
touchable |
If the object can touch or click. GImage/GTextField is not touchable even it is true.
| |
visible |
The visibility of the object. An invisible object will be untouchable.
| |
width |
The width of the object in pixels.
| |
x |
The x coordinate of the object relative to the local coordinates of the parent.
| |
xMin | ||
xy |
The x and y coordinates of the object relative to the local coordinates of the parent.
| |
y |
The y coordinate of the object relative to the local coordinates of the parent.
| |
yMin | ||
z |
The z coordinate of the object relative to the local coordinates of the parent.
|
Name | Description | |
---|---|---|
data |
User defined data.
| |
dragBounds |
Restricted range of dragging.
| |
initHeight |
The initial height of the object.
| |
initWidth |
The initial width of the object.
| |
maxHeight | ||
maxWidth | ||
minHeight | ||
minWidth | ||
name |
Name of the object.
| |
packageItem | ||
sourceHeight |
The source height of the object.
| |
sourceWidth |
The source width of the object.
|