Skip to main content

GTreeNode

Namespace:FairyGUI
Source:Assets/Scripts/UI/GTreeNode.cs (line 9)

public class GTreeNode

Constructors​

GTreeNode(bool)​

public GTreeNode(bool hasChild);
ParameterTypeDescription
hasChildbool

Source:UI/GTreeNode.cs (line 36)

GTreeNode(bool, string)​

public GTreeNode(bool hasChild, string resURL);
ParameterTypeDescription
hasChildbool
resURLstring

Source:UI/GTreeNode.cs (line 46)

Fields​

data​

public object data;

Source:UI/GTreeNode.cs (line 14)

Methods​

AddChild(GTreeNode)​

public GTreeNode AddChild(GTreeNode child);
ParameterTypeDescription
childGTreeNode

Source:UI/GTreeNode.cs (line 164)

AddChildAt(GTreeNode, int)​

public GTreeNode AddChildAt(GTreeNode child, int index);
ParameterTypeDescription
childGTreeNode
indexint

Source:UI/GTreeNode.cs (line 176)

ExpandToRoot()​

public void ExpandToRoot();

Source:UI/GTreeNode.cs (line 101)

GetChildAt(int)​

public GTreeNode GetChildAt(int index);
ParameterTypeDescription
indexint

Source:UI/GTreeNode.cs (line 276)

GetChildIndex(GTreeNode)​

public int GetChildIndex(GTreeNode child);
ParameterTypeDescription
childGTreeNode

Source:UI/GTreeNode.cs (line 289)

GetNextSibling()​

public GTreeNode GetNextSibling();

Source:UI/GTreeNode.cs (line 314)

GetPrevSibling()​

public GTreeNode GetPrevSibling();

Source:UI/GTreeNode.cs (line 298)

RemoveChild(GTreeNode)​

public GTreeNode RemoveChild(GTreeNode child);
ParameterTypeDescription
childGTreeNode

Source:UI/GTreeNode.cs (line 220)

RemoveChildAt(int)​

public GTreeNode RemoveChildAt(int index);
ParameterTypeDescription
indexint

Source:UI/GTreeNode.cs (line 235)

RemoveChildren(int, int)​

public void RemoveChildren(int beginIndex = 0, int endIndex = -1);
ParameterTypeDescription
beginIndexint
endIndexint

Source:UI/GTreeNode.cs (line 262)

SetChildIndex(GTreeNode, int)​

public void SetChildIndex(GTreeNode child, int index);
ParameterTypeDescription
childGTreeNode
indexint

Source:UI/GTreeNode.cs (line 331)

SwapChildren(GTreeNode, GTreeNode)​

public void SwapChildren(GTreeNode child1, GTreeNode child2);
ParameterTypeDescription
child1GTreeNode
child2GTreeNode

Source:UI/GTreeNode.cs (line 357)

SwapChildrenAt(int, int)​

public void SwapChildrenAt(int index1, int index2);
ParameterTypeDescription
index1int
index2int

Source:UI/GTreeNode.cs (line 371)

Properties​

cell​

public GComponent cell { get; }

Source:UI/GTreeNode.cs (line 56)

expanded​

public bool expanded { get; set; }

Source:UI/GTreeNode.cs (line 72)

icon​

public string icon { get; set; }

Source:UI/GTreeNode.cs (line 142)

isFolder​

public bool isFolder { get; }

Source:UI/GTreeNode.cs (line 114)

level​

public int level { get; }

Source:UI/GTreeNode.cs (line 64)

numChildren​

public int numChildren { get; }

Source:UI/GTreeNode.cs (line 383)

parent​

public GTreeNode parent { get; private set; }

Source:UI/GTreeNode.cs (line 19)

text​

public string text { get; set; }

Source:UI/GTreeNode.cs (line 122)

tree​

public GTree tree { get; private set; }

Source:UI/GTreeNode.cs (line 24)