GTreeNode
命名空间:FairyGUI
源码:Assets/Scripts/UI/GTreeNode.cs (行 9)
public class GTreeNode
构造函数
GTreeNode(bool)
public GTreeNode(bool hasChild);
| 参数 | 类型 | 说明 |
|---|---|---|
hasChild | bool |
源码:UI/GTreeNode.cs (行 36)
GTreeNode(bool, string)
public GTreeNode(bool hasChild, string resURL);
| 参数 | 类型 | 说明 |
|---|---|---|
hasChild | bool | |
resURL | string |
源码:UI/GTreeNode.cs (行 46)
字段
data
public object data;
源码:UI/GTreeNode.cs (行 14)
方法
AddChild(GTreeNode)
public GTreeNode AddChild(GTreeNode child);
| 参数 | 类型 | 说明 |
|---|---|---|
child | GTreeNode |
源码:UI/GTreeNode.cs (行 164)
AddChildAt(GTreeNode, int)
public GTreeNode AddChildAt(GTreeNode child, int index);
| 参数 | 类型 | 说明 |
|---|---|---|
child | GTreeNode | |
index | int |
源码:UI/GTreeNode.cs (行 176)
ExpandToRoot()
public void ExpandToRoot();
源码:UI/GTreeNode.cs (行 101)
GetChildAt(int)
public GTreeNode GetChildAt(int index);
| 参数 | 类型 | 说明 |
|---|---|---|
index | int |
源码:UI/GTreeNode.cs (行 276)
GetChildIndex(GTreeNode)
public int GetChildIndex(GTreeNode child);
| 参数 | 类型 | 说明 |
|---|---|---|
child | GTreeNode |
源码:UI/GTreeNode.cs (行 289)
GetNextSibling()
public GTreeNode GetNextSibling();
源码:UI/GTreeNode.cs (行 314)
GetPrevSibling()
public GTreeNode GetPrevSibling();
源码:UI/GTreeNode.cs (行 298)
RemoveChild(GTreeNode)
public GTreeNode RemoveChild(GTreeNode child);
| 参数 | 类型 | 说明 |
|---|---|---|
child | GTreeNode |
源码:UI/GTreeNode.cs (行 220)
RemoveChildAt(int)
public GTreeNode RemoveChildAt(int index);
| 参数 | 类型 | 说明 |
|---|---|---|
index | int |
源码:UI/GTreeNode.cs (行 235)
RemoveChildren(int, int)
public void RemoveChildren(int beginIndex = 0, int endIndex = -1);
| 参数 | 类型 | 说明 |
|---|---|---|
beginIndex | int | |
endIndex | int |
源码:UI/GTreeNode.cs (行 262)
SetChildIndex(GTreeNode, int)
public void SetChildIndex(GTreeNode child, int index);
| 参数 | 类型 | 说明 |
|---|---|---|
child | GTreeNode | |
index | int |
源码:UI/GTreeNode.cs (行 331)
SwapChildren(GTreeNode, GTreeNode)
public void SwapChildren(GTreeNode child1, GTreeNode child2);
| 参数 | 类型 | 说明 |
|---|---|---|
child1 | GTreeNode | |
child2 | GTreeNode |
源码:UI/GTreeNode.cs (行 357)
SwapChildrenAt(int, int)
public void SwapChildrenAt(int index1, int index2);
| 参数 | 类型 | 说明 |
|---|---|---|
index1 | int | |
index2 | int |
源码:UI/GTreeNode.cs (行 371)
属性
cell
public GComponent cell { get; }
源码:UI/GTreeNode.cs (行 56)
expanded
public bool expanded { get; set; }
源码:UI/GTreeNode.cs (行 72)
icon
public string icon { get; set; }
源码:UI/GTreeNode.cs (行 142)
isFolder
public bool isFolder { get; }
源码:UI/GTreeNode.cs (行 114)
level
public int level { get; }
源码:UI/GTreeNode.cs (行 64)
numChildren
public int numChildren { get; }
源码:UI/GTreeNode.cs (行 383)
parent
public GTreeNode parent { get; private set; }
源码:UI/GTreeNode.cs (行 19)
text
public string text { get; set; }
源码:UI/GTreeNode.cs (行 122)
tree
public GTree tree { get; private set; }
源码:UI/GTreeNode.cs (行 24)