The GObject type exposes the following members.
Methods
| Name | Description |
---|
 | AddEventListener(String, EventCallback0) | |
 | AddEventListener(String, EventCallback1) | |
 | AddRelation(GObject, RelationType) | |
 | AddRelation(GObject, RelationType, Boolean) | |
 | BroadcastEvent | |
 | BubbleEvent | |
 | Center() |
Set the object in middle of the parent or GRoot if the parent is not set.
|
 | Center(Boolean) |
Set the object in middle of the parent or GRoot if the parent is not set.
|
 | ConstructFromResource | |
 | DispatchEvent(String) | |
 | DispatchEvent(EventContext) | |
 | DispatchEvent(String, Object) | |
 | DispatchEvent(String, Object, Object) | (Inherited from EventDispatcher.) |
 | Dispose | |
 | GetGear | |
 | GlobalToLocal(Rect) | |
 | GlobalToLocal(Vector2) |
Transforms a point from global (Stage) coordinates to the local coordinate system.
|
 | HandleControllerChanged | |
 | InvalidateBatchingState |
Mark the fairy batching state is invalid.
|
 | LocalToGlobal(Rect) | |
 | LocalToGlobal(Vector2) |
Transforms a point from the local coordinate system to global (Stage) coordinates.
|
 | LocalToRoot |
Transforms a point from the local coordinate system to GRoot coordinates.
|
 | MakeFullScreen |
设置对象为全屏大小(逻辑屏幕)。
|
 | RemoveEventListener(String, EventCallback0) | |
 | RemoveEventListener(String, EventCallback1) | |
 | RemoveEventListeners() | |
 | RemoveEventListeners(String) | |
 | RemoveFromParent | |
 | RemoveRelation | |
 | RequestFocus |
Request focus on this object.
|
 | RootToLocal |
Transforms a point from the GRoot coordinate to local coordinates system.
|
 | SetHome | |
 | SetPivot(Single, Single) |
Change the x and y coordinates of the object's origin in its own coordinate space.
|
 | SetPivot(Single, Single, Boolean) |
Change the x and y coordinates of the object's origin in its own coordinate space.
|
 | SetPosition |
change the x,y,z coordinates of the object relative to the local coordinates of the parent.
|
 | SetScale |
Change the scale factor.
|
 | SetSize(Single, Single) |
Change size.
|
 | SetSize(Single, Single, Boolean) |
Change size.
|
 | Setup_AfterAdd | |
 | Setup_BeforeAdd | |
 | SetXY(Single, Single) |
change the x and y coordinates of the object relative to the local coordinates of the parent.
|
 | SetXY(Single, Single, Boolean) | |
 | StartDrag() | |
 | StartDrag(Int32) | |
 | StopDrag | |
 | TransformPoint | |
 | TransformRect | |
 | TweenFade | |
 | TweenMove | |
 | TweenMoveX | |
 | TweenMoveY | |
 | TweenResize | |
 | TweenRotate | |
 | TweenScale | |
 | TweenScaleX | |
 | TweenScaleY | |
 | WorldToLocal(Vector3) | |
 | WorldToLocal(Vector3, Camera) | |
Top
See Also