C# 클래스 FairyGUI.GComponent

Component
상속: GObject
파일 보기 프로젝트 열기: fairygui/FairyGUI-unity 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_boundsChanged bool
_margin Margin
_trackBounds bool

공개 메소드들

메소드 설명
AddChild ( GObject child ) : GObject

Add a child to the component. It will be at the frontmost position.

AddChildAt ( GObject child, int index ) : GObject

Adds a child to the component at a certain index.

AddController ( FairyGUI.Controller controller ) : void

Adds a controller to the container.

ConstructFromResource ( ) : void
ConstructFromXML ( XML xml ) : void

Method for extensions to override

Dispose ( ) : void
EnsureBoundsCorrect ( ) : void

Make sure the bounds of the component is correct. Bounds of the component is not updated on every changed. For example, you add a new child to the list, children in the list will be rearranged in next frame. If you want to access the correct child position immediatelly, call this function first.

GComponent ( ) : System
GetChild ( string name ) : GObject

Returns a child object with a certain name.

GetChildAt ( int index ) : GObject

Returns a child object at a certain index. If index out of bounds, exception raised.

GetChildInGroup ( FairyGUI.GGroup group, string name ) : GObject

Returns a child object belong to a group with a certain name.

GetChildIndex ( GObject child ) : int

Returns the index of a child within the container, or "-1" if it is not found.

GetChildren ( ) : FairyGUI.GObject[]

Returns a copy of all children with an array.

GetController ( string name ) : FairyGUI.Controller

Returns a controller object with a certain name.

GetControllerAt ( int index ) : FairyGUI.Controller

Returns a controller object at a certain index.

GetFirstChildInView ( ) : int
GetTransition ( string name ) : Transition

Returns a transition object at a certain name.

GetTransitionAt ( int index ) : Transition

Returns a transition object at a certain index.

GetVisibleChild ( string name ) : GObject

Returns a visible child object with a certain name.

InvalidateBatchingState ( bool childChanged ) : void
IsAncestorOf ( GObject obj ) : bool

IsChildInView ( GObject child ) : bool

Test if a child is in view.

RemoveChild ( GObject child ) : GObject

Removes a child from the component. If the object is not a child, nothing happens.

RemoveChild ( GObject child, bool dispose ) : GObject

Removes a child from the component. If the object is not a child, nothing happens.

RemoveChildAt ( int index ) : GObject

Removes a child at a certain index. Children above the child will move down.

RemoveChildAt ( int index, bool dispose ) : GObject

Removes a child at a certain index. Children above the child will move down.

RemoveChildren ( ) : void

Remove all children.

RemoveChildren ( int beginIndex, int endIndex, bool dispose ) : void

Removes a range of children from the container (endIndex included).

RemoveController ( FairyGUI.Controller c ) : void

Removes a controller from the container.

SetBoundsChangedFlag ( ) : void

Notify the component the bounds should recaculate.

SetChildIndex ( GObject child, int index ) : void

Moves a child to a certain index. Children at and after the replaced position move up.

SetChildIndexBefore ( GObject child, int index ) : int

Moves a child to a certain position which is in front of the child previously at given index. 与SetChildIndex不同的是,如果child原来在index的前面,那么child插入的位置是index-1,即保证排在原来占据index的对象的前面。

SwapChildren ( GObject child1, GObject child2 ) : void

Swaps the indexes of two children.

SwapChildrenAt ( int index1, int index2 ) : void

Swaps the indexes of two children.

보호된 메소드들

메소드 설명
CreateDisplayObject ( ) : void
GetSnappingPosition ( float &xValue, float &yValue ) : void
HandleGrayedChanged ( ) : void
HandleSizeChanged ( ) : void
OnUpdate ( ) : void
SetBounds ( float ax, float ay, float aw, float ah ) : void
SetupOverflow ( OverflowType overflow ) : void
SetupScroll ( Margin scrollBarMargin, ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags, String vtScrollBarRes, String hzScrollBarRes ) : void
UpdateBounds ( ) : void

비공개 메소드들

메소드 설명
AdjustRadioGroupDepth ( GObject obj, FairyGUI.Controller c ) : void
ApplyAllControllers ( ) : void
ApplyController ( FairyGUI.Controller c ) : void
BuildNativeDisplayList ( ) : void
ChildSortingOrderChanged ( GObject child, int oldValue, int newValue ) : void
ChildStateChanged ( GObject child ) : void
ConstructFromResource ( List objectPool, int poolIndex ) : void
GetChildById ( string id ) : GObject
GetInsertPosForSortingChild ( GObject target ) : int
UpdateClipRect ( ) : void
_SetChildIndex ( GObject child, int oldIndex, int index ) : int
__addedToStage ( ) : void
__removedFromStage ( ) : void

메소드 상세

AddChild() 공개 메소드

Add a child to the component. It will be at the frontmost position.
public AddChild ( GObject child ) : GObject
child GObject A child object
리턴 GObject

AddChildAt() 공개 메소드

Adds a child to the component at a certain index.
public AddChildAt ( GObject child, int index ) : GObject
child GObject A child object
index int Index
리턴 GObject

AddController() 공개 메소드

Adds a controller to the container.
public AddController ( FairyGUI.Controller controller ) : void
controller FairyGUI.Controller Controller object
리턴 void

ConstructFromResource() 공개 메소드

public ConstructFromResource ( ) : void
리턴 void

ConstructFromXML() 공개 메소드

Method for extensions to override
public ConstructFromXML ( XML xml ) : void
xml FairyGUI.Utils.XML
리턴 void

CreateDisplayObject() 보호된 메소드

protected CreateDisplayObject ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EnsureBoundsCorrect() 공개 메소드

Make sure the bounds of the component is correct. Bounds of the component is not updated on every changed. For example, you add a new child to the list, children in the list will be rearranged in next frame. If you want to access the correct child position immediatelly, call this function first.
public EnsureBoundsCorrect ( ) : void
리턴 void

GComponent() 공개 메소드

public GComponent ( ) : System
리턴 System

GetChild() 공개 메소드

Returns a child object with a certain name.
public GetChild ( string name ) : GObject
name string Name
리턴 GObject

GetChildAt() 공개 메소드

Returns a child object at a certain index. If index out of bounds, exception raised.
public GetChildAt ( int index ) : GObject
index int Index
리턴 GObject

GetChildInGroup() 공개 메소드

Returns a child object belong to a group with a certain name.
public GetChildInGroup ( FairyGUI.GGroup group, string name ) : GObject
group FairyGUI.GGroup A group object
name string Name
리턴 GObject

GetChildIndex() 공개 메소드

Returns the index of a child within the container, or "-1" if it is not found.
public GetChildIndex ( GObject child ) : int
child GObject A child object
리턴 int

GetChildren() 공개 메소드

Returns a copy of all children with an array.
public GetChildren ( ) : FairyGUI.GObject[]
리턴 FairyGUI.GObject[]

GetController() 공개 메소드

Returns a controller object with a certain name.
public GetController ( string name ) : FairyGUI.Controller
name string Name
리턴 FairyGUI.Controller

GetControllerAt() 공개 메소드

Returns a controller object at a certain index.
public GetControllerAt ( int index ) : FairyGUI.Controller
index int Index
리턴 FairyGUI.Controller

GetFirstChildInView() 공개 메소드

public GetFirstChildInView ( ) : int
리턴 int

GetSnappingPosition() 보호된 메소드

protected GetSnappingPosition ( float &xValue, float &yValue ) : void
xValue float
yValue float
리턴 void

GetTransition() 공개 메소드

Returns a transition object at a certain name.
public GetTransition ( string name ) : Transition
name string Name
리턴 Transition

GetTransitionAt() 공개 메소드

Returns a transition object at a certain index.
public GetTransitionAt ( int index ) : Transition
index int Index
리턴 Transition

GetVisibleChild() 공개 메소드

Returns a visible child object with a certain name.
public GetVisibleChild ( string name ) : GObject
name string Name
리턴 GObject

HandleGrayedChanged() 보호된 메소드

protected HandleGrayedChanged ( ) : void
리턴 void

HandleSizeChanged() 보호된 메소드

protected HandleSizeChanged ( ) : void
리턴 void

InvalidateBatchingState() 공개 메소드

public InvalidateBatchingState ( bool childChanged ) : void
childChanged bool
리턴 void

IsAncestorOf() 공개 메소드

public IsAncestorOf ( GObject obj ) : bool
obj GObject
리턴 bool

IsChildInView() 공개 메소드

Test if a child is in view.
public IsChildInView ( GObject child ) : bool
child GObject A child object
리턴 bool

OnUpdate() 보호된 메소드

protected OnUpdate ( ) : void
리턴 void

RemoveChild() 공개 메소드

Removes a child from the component. If the object is not a child, nothing happens.
public RemoveChild ( GObject child ) : GObject
child GObject A child object
리턴 GObject

RemoveChild() 공개 메소드

Removes a child from the component. If the object is not a child, nothing happens.
public RemoveChild ( GObject child, bool dispose ) : GObject
child GObject A child object
dispose bool If true, the child will be disposed right away.
리턴 GObject

RemoveChildAt() 공개 메소드

Removes a child at a certain index. Children above the child will move down.
public RemoveChildAt ( int index ) : GObject
index int Index
리턴 GObject

RemoveChildAt() 공개 메소드

Removes a child at a certain index. Children above the child will move down.
public RemoveChildAt ( int index, bool dispose ) : GObject
index int Index
dispose bool If true, the child will be disposed right away.
리턴 GObject

RemoveChildren() 공개 메소드

Remove all children.
public RemoveChildren ( ) : void
리턴 void

RemoveChildren() 공개 메소드

Removes a range of children from the container (endIndex included).
public RemoveChildren ( int beginIndex, int endIndex, bool dispose ) : void
beginIndex int Begin index.
endIndex int End index.(Included).
dispose bool If true, the child will be disposed right away.
리턴 void

RemoveController() 공개 메소드

Removes a controller from the container.
public RemoveController ( FairyGUI.Controller c ) : void
c FairyGUI.Controller Controller object.
리턴 void

SetBounds() 보호된 메소드

protected SetBounds ( float ax, float ay, float aw, float ah ) : void
ax float
ay float
aw float
ah float
리턴 void

SetBoundsChangedFlag() 공개 메소드

Notify the component the bounds should recaculate.
public SetBoundsChangedFlag ( ) : void
리턴 void

SetChildIndex() 공개 메소드

Moves a child to a certain index. Children at and after the replaced position move up.
public SetChildIndex ( GObject child, int index ) : void
child GObject A Child
index int Index
리턴 void

SetChildIndexBefore() 공개 메소드

Moves a child to a certain position which is in front of the child previously at given index. 与SetChildIndex不同的是,如果child原来在index的前面,那么child插入的位置是index-1,即保证排在原来占据index的对象的前面。
public SetChildIndexBefore ( GObject child, int index ) : int
child GObject
index int
리턴 int

SetupOverflow() 보호된 메소드

protected SetupOverflow ( OverflowType overflow ) : void
overflow OverflowType
리턴 void

SetupScroll() 보호된 메소드

protected SetupScroll ( Margin scrollBarMargin, ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags, String vtScrollBarRes, String hzScrollBarRes ) : void
scrollBarMargin Margin
scroll ScrollType
scrollBarDisplay ScrollBarDisplayType
flags int
vtScrollBarRes String
hzScrollBarRes String
리턴 void

SwapChildren() 공개 메소드

Swaps the indexes of two children.
public SwapChildren ( GObject child1, GObject child2 ) : void
child1 GObject A child object
child2 GObject A child object
리턴 void

SwapChildrenAt() 공개 메소드

Swaps the indexes of two children.
public SwapChildrenAt ( int index1, int index2 ) : void
index1 int index of first child
index2 int index of second child
리턴 void

UpdateBounds() 보호된 메소드

protected UpdateBounds ( ) : void
리턴 void

프로퍼티 상세

_boundsChanged 보호되어 있는 프로퍼티

protected bool _boundsChanged
리턴 bool

_margin 보호되어 있는 프로퍼티

protected Margin,FairyGUI _margin
리턴 Margin

_trackBounds 보호되어 있는 프로퍼티

protected bool _trackBounds
리턴 bool