The GObject type exposes the following members.
Methods
| Name | Description |
---|
| AddEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
| AddEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
| AddRelation(GObject, RelationType) | |
| AddRelation(GObject, RelationType, Boolean) | |
| BroadcastEvent | (Inherited from EventDispatcher.) |
| BubbleEvent | (Inherited from EventDispatcher.) |
| 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) | (Inherited from EventDispatcher.) |
| DispatchEvent(EventContext) | (Inherited from EventDispatcher.) |
| DispatchEvent(String, Object) | (Inherited from EventDispatcher.) |
| 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) | (Inherited from EventDispatcher.) |
| RemoveEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
| RemoveEventListeners | (Inherited from EventDispatcher.) |
| RemoveEventListeners(String) | (Inherited from EventDispatcher.) |
| 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) | |
TopSee Also