Click or drag to resize
DisplayObject Class
Inheritance Hierarchy
SystemObject
  FairyGUIEventDispatcher
    FairyGUIDisplayObject
      More...

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

The DisplayObject type exposes the following members.

Constructors
  NameDescription
Public methodDisplayObject
Initializes a new instance of the DisplayObject class
Top
Methods
  NameDescription
Public methodAddEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodAddEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodBroadcastEvent
(Inherited from EventDispatcher.)
Public methodBubbleEvent
(Inherited from EventDispatcher.)
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 DisplayObject
Public methodEnsureSizeCorrect
Public methodEnterPaintingMode
进入绘画模式,整个对象将画到一张RenderTexture上,然后这种贴图将代替原有的显示内容。 可以在onPaint回调里对这张纹理进行进一步操作,实现特殊效果。 可能有多个地方要求进入绘画模式,这里用requestorId加以区别,取值是1、2、4、8、16以此类推。1024内内部保留。用户自定义的id从1024开始。
Public methodGetBounds
Public methodGlobalToLocal
将舞台坐标转换为本地坐标
Public methodInvalidateBatchingState
Public methodLeavePaintingMode
离开绘画模式
Public methodLocalToGlobal
将本地坐标转换为舞台坐标
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 methodSetPosition
Public methodSetScale
Public methodSetSize
Public methodSetXY
Public methodTransformPoint
Public methodTransformRect
Public methodUpdate
Public methodWorldToLocal
转换世界坐标点到等效的本地xy平面的点。等效的意思是他们在屏幕方向看到的位置一样。 返回的点是在对象的本地坐标空间,且z=0
Top
Fields
  NameDescription
Public fieldgOwner
Public fieldid
Public fieldname
Public fieldonPaint
Top
Properties
See Also
Inheritance Hierarchy