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
Properties
  NameDescription
Public propertyalpha
Public propertyblendMode
Public propertycacheAsBitmap
将整个显示对象(如果是容器,则容器包含的整个显示列表)静态化,所有内容被缓冲到一张纹理上。 DC将保持为1。CPU消耗将降到最低。但对象的任何变化不会更新。 当cacheAsBitmap已经为true时,再次调用cacheAsBitmap=true将会刷新一次。
Public propertycachedTransform
Public propertyfilter
Public propertyfocalLength
Public propertygameObject
Public propertygraphics
Public propertygrayed
Public propertyheight
Public propertyhome
为对象设置一个默认的父Transform。当对象不在显示列表里时,它的GameObject挂到哪里。
Public propertyisDisposed
Public propertylayer
Public propertylocation
This is the pivot position
Public propertymaterial
Public propertyonAddedToStage
Public propertyonClick
Public propertyonClickLink
Public propertyonKeyDown
Public propertyonMouseWheel
Public propertyonRemovedFromStage
Public propertyonRightClick
Public propertyonRollOut
Public propertyonRollOver
Public propertyonTouchBegin
Public propertyonTouchEnd
Public propertyonTouchMove
Public propertypaintingGraphics
Public propertypaintingMode
Public propertyparent
Public propertyperspective
当对象处于ScreenSpace,也就是使用正交相机渲染时,对象虽然可以绕X轴或者Y轴旋转,但没有透视效果。设置perspective,可以模拟出透视效果。
Public propertypivot
Public propertyposition
Public propertyrenderingOrder
Public propertyrotation
Public propertyrotationX
Public propertyrotationY
Public propertyscale
Public propertyscaleX
Public propertyscaleY
Public propertyshader
Public propertysize
Public propertyskew
Public propertystage
Public propertytopmost
Public propertytouchable
Public propertyvisible
Public propertywidth
Public propertyworldSpaceContainer
Public propertyx
Public propertyxy
Public propertyy
Public propertyz
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
See Also
Inheritance Hierarchy