Click or drag to resize
GObject Class
Inheritance Hierarchy
SystemObject
  FairyGUIEventDispatcher
    FairyGUIGObject
      More...

Namespace: FairyGUI
Assembly: FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GObject : EventDispatcher

The GObject type exposes the following members.

Constructors
  NameDescription
Public methodGObject
Initializes a new instance of the GObject class
Top
Methods
  NameDescription
Public methodAddEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodAddEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodAddRelation(GObject, RelationType)
Public methodAddRelation(GObject, RelationType, Boolean)
Public methodBroadcastEvent
(Inherited from EventDispatcher.)
Public methodBubbleEvent
(Inherited from EventDispatcher.)
Public methodCenter
Set the object in middle of the parent or GRoot if the parent is not set.
Public methodCenter(Boolean)
Set the object in middle of the parent or GRoot if the parent is not set.
Public methodConstructFromResource
Public methodDispatchEvent(String)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(EventContext)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(String, Object)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(String, Object, Object) (Inherited from EventDispatcher.)
Public methodDispose
Releases all resources used by the GObject
Public methodGetGear
Public methodGlobalToLocal(Rect)
Public methodGlobalToLocal(Vector2)
Transforms a point from global (Stage) coordinates to the local coordinate system.
Public methodHandleControllerChanged
Public methodInvalidateBatchingState
Mark the fairy batching state is invalid.
Public methodLocalToGlobal(Rect)
Public methodLocalToGlobal(Vector2)
Transforms a point from the local coordinate system to global (Stage) coordinates.
Public methodLocalToRoot
Transforms a point from the local coordinate system to GRoot coordinates.
Public methodRemoveEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodRemoveEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodRemoveEventListeners
(Inherited from EventDispatcher.)
Public methodRemoveEventListeners(String)
(Inherited from EventDispatcher.)
Public methodRemoveFromParent
Public methodRemoveRelation
Public methodRequestFocus
Request focus on this object.
Public methodRootToLocal
Transforms a point from the GRoot coordinate to local coordinates system.
Public methodSetPivot(Single, Single)
Change the x and y coordinates of the object's origin in its own coordinate space.
Public methodSetPivot(Single, Single, Boolean)
Change the x and y coordinates of the object's origin in its own coordinate space.
Public methodSetPosition
change the x,y,z coordinates of the object relative to the local coordinates of the parent.
Public methodSetScale
Change the scale factor.
Public methodSetSize(Single, Single)
Change size.
Public methodSetSize(Single, Single, Boolean)
Change size.
Public methodSetup_AfterAdd
Public methodSetup_BeforeAdd
Public methodSetXY
change the x and y coordinates of the object relative to the local coordinates of the parent.
Public methodStartDrag
Public methodStartDrag(Int32)
Public methodStopDrag
Public methodTransformPoint
Public methodTransformRect
Public methodTweenFade
Public methodTweenMove
Public methodTweenMoveX
Public methodTweenMoveY
Public methodTweenResize
Public methodTweenRotate
Public methodTweenScale
Public methodTweenScaleX
Public methodTweenScaleY
Public methodWorldToLocal(Vector3)
Public methodWorldToLocal(Vector3, Camera)
Top
Fields
  NameDescription
Public fielddata
User defined data.
Public fielddragBounds
Restricted range of dragging.
Public fieldgroup
Group belonging to.
Public fieldname
Name of the object.
Top
Properties
  NameDescription
Public propertyactualHeight
actualHeight = height * scaleY
Public propertyactualWidth
actualWidth = width * scalex
Public propertyalpha
The opacity of the object. 0 = transparent, 1 = opaque.
Public propertyasButton
Public propertyasCom
Public propertyasComboBox
Public propertyasGraph
Public propertyasGroup
Public propertyasImage
Public propertyasLabel
Public propertyasList
Public propertyasLoader
Public propertyasMovieClip
Public propertyasProgress
Public propertyasRichTextField
Public propertyasSlider
Public propertyasTextField
Public propertyasTextInput
Public propertyblendMode
Public propertydisplayObject
Lowlevel display object.
Public propertydraggable
Public propertydragging
Public propertyStatic memberdraggingObject
当前全局正在被拖动的对象
Public propertyenabled
Enabled is shortcut for grayed and !touchable combination.
Public propertyfilter
Public propertyfocusable
If the object can be focused?
Public propertyfocused
If the object is focused. Focused object can receive key events.
Public propertygearLook
Gear to look controller.
Public propertygearSize
Gear to size controller.
Public propertygearXY
Gear to xy controller.
Public propertygrayed
If true, apply a grayed effect on this object.
Public propertyheight
The height of the object in pixels.
Public propertyicon
Public propertyid
GObject的id,仅作为内部使用。与name不同,id值是不会相同的。 id is for internal use only.
Public propertyinContainer
If the object has lowlevel displayobject and the displayobject has a container parent?
Public propertyinitHeight
The initial height of the object.
Public propertyinitWidth
The initial width of the object.
Public propertyonAddedToStage
Dispatched when the object was added to the stage.
Public propertyonClick
Dispatched when the object or its child was clicked.
Public propertyonClickLink
Dispatched when links in the object or its child was clicked.
Public propertyonDragEnd
Dispatched when drag end.
Public propertyonDragMove
Dispatched when dragging.
Public propertyonDragStart
Dispatched when drag start.
Public propertyOnGearStop
Public propertyonKeyDown
Dispatched on key pressed when the object is in focus.
Public propertyonPositionChanged
Dispatched when the object was moved.
Public propertyonRemovedFromStage
Dispatched when the object was removed from the stage.
Public propertyonRightClick
Dispatched when the object or its child was clicked by right mouse button. Web only.
Public propertyonRollOut
Only available for mouse input: the cursor leave an object.
Public propertyonRollOver
Only available for mouse input: the cursor hovers over an object.
Public propertyonSizeChanged
Dispatched when the object was resized.
Public propertyonStage
If the object is on stage.
Public propertyonTouchBegin
Dispatched when the finger touched the object or its child just now.
Public propertyonTouchEnd
Dispatched when the finger was lifted from the screen or from the mouse button.
Public propertyparent
Parent object.
Public propertypivot
The x and y coordinates of the object's origin in its own coordinate space.
Public propertypivotX
The x coordinate of the object's origin in its own coordinate space.
Public propertypivotY
The y coordinate of the object's origin in its own coordinate space.
Public propertypixelSnapping
Public propertyposition
The x,y,z coordinates of the object relative to the local coordinates of the parent.
Public propertyrelations
Relations Object.
Public propertyresourceURL
Resource url of this object.
Public propertyroot
Public propertyrotation
The rotation around the z axis of the object in degrees.
Public propertyrotationX
The rotation around the x axis of the object in degrees.
Public propertyrotationY
The rotation around the y axis of the object in degrees.
Public propertyscale
The scale factor.
Public propertyscaleX
The horizontal scale factor. '1' means no scale, cannt be negative.
Public propertyscaleY
The vertical scale factor. '1' means no scale, cannt be negative.
Public propertysize
The size of the object in pixels.
Public propertyskew
Public propertysortingOrder
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.
Public propertysourceHeight
The source height of the object.
Public propertysourceWidth
The source width of the object.
Public propertytext
Public propertytooltips
Tooltips of this object. UIConfig.tooltipsWin must be set first.
Public propertytouchable
If the object can touch or click. GImage/GTextField is not touchable even it is true.
Public propertyvisible
The visibility of the object. An invisible object will be untouchable.
Public propertywidth
The width of the object in pixels.
Public propertyx
The x coordinate of the object relative to the local coordinates of the parent.
Public propertyxy
The x and y coordinates of the object relative to the local coordinates of the parent.
Public propertyy
The y coordinate of the object relative to the local coordinates of the parent.
Public propertyz
The z coordinate of the object relative to the local coordinates of the parent.
Top
See Also
Inheritance Hierarchy