Class ContentFolderTreeNode
Content folder tree node.
Inheritance
Implements
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ContentFolderTreeNode : TreeNode, IComparable, IDrawable
Constructors
ContentFolderTreeNode(ContentFolderTreeNode, ContentFolderType, String)
Initializes a new instance of the ContentFolderTreeNode class.
Declaration
protected ContentFolderTreeNode(ContentFolderTreeNode parent, ContentFolderType type, string path)
Parameters
|
ContentFolderTreeNode
parent
The parent node. |
|
FlaxEditor.Content.ContentFolderType
type
The folder type. |
|
System.String
path
The folder path. |
ContentFolderTreeNode(ContentFolderTreeNode, String)
Initializes a new instance of the ContentFolderTreeNode class.
Declaration
public ContentFolderTreeNode(ContentFolderTreeNode parent, string path)
Parameters
|
ContentFolderTreeNode
parent
The parent node. |
|
System.String
path
The folder path. |
Fields
_folder
The folder.
Declaration
protected ContentFolder _folder
Field Value
|
FlaxEditor.Content.ContentFolder
|
Properties
CanDelete
Whether this node can be deleted.
Declaration
public virtual bool CanDelete { get; }
Property Value
|
System.Boolean
|
CanDuplicate
Whether this node can be duplicated.
Declaration
public virtual bool CanDuplicate { get; }
Property Value
|
System.Boolean
|
CanHaveAssets
Returns true if that folder can import/manage assets.
Declaration
public bool CanHaveAssets { get; }
Property Value
|
System.Boolean
True if can contain assets for project, otherwise false |
CanHaveScripts
Returns true if that folder can import/manage scripts.
Declaration
public bool CanHaveScripts { get; }
Property Value
|
System.Boolean
|
Folder
Gets the content folder item.
Declaration
public ContentFolder Folder { get; }
Property Value
|
FlaxEditor.Content.ContentFolder
|
FolderType
Gets the type of the folder.
Declaration
public ContentFolderType FolderType { get; }
Property Value
|
FlaxEditor.Content.ContentFolderType
|
NavButtonLabel
ParentNode
Gets the parent node.
Declaration
public ContentFolderTreeNode ParentNode { get; }
Property Value
|
ContentFolderTreeNode
|
Path
Gets the folder path.
Declaration
public string Path { get; }
Property Value
|
System.String
|
Methods
Compare(Control)
Declaration
public override int Compare(Control other)
Parameters
|
Control
other
|
Returns
|
System.Int32
|
Overrides
DoDragDrop()
Declaration
protected override void DoDragDrop()
Overrides
Draw()
Declaration
public override void Draw()
Overrides
OnDestroy()
Declaration
public override void OnDestroy()
Overrides
OnDragDropHeader(DragData)
Declaration
protected override DragDropEffect OnDragDropHeader(DragData data)
Parameters
|
DragData
data
|
Returns
|
DragDropEffect
|
Overrides
OnDragEnterHeader(DragData)
Declaration
protected override DragDropEffect OnDragEnterHeader(DragData data)
Parameters
|
DragData
data
|
Returns
|
DragDropEffect
|
Overrides
OnDragLeaveHeader()
Declaration
protected override void OnDragLeaveHeader()
Overrides
OnDragMoveHeader(DragData)
Declaration
protected override DragDropEffect OnDragMoveHeader(DragData data)
Parameters
|
DragData
data
|
Returns
|
DragDropEffect
|
Overrides
OnExpandedChanged()
Declaration
protected override void OnExpandedChanged()
Overrides
OnKeyDown(KeyboardKeys)
Declaration
public override bool OnKeyDown(KeyboardKeys key)
Parameters
|
KeyboardKeys
key
|
Returns
|
System.Boolean
|
Overrides
OnLongPress()
Declaration
protected override void OnLongPress()
Overrides
PerformLayout(Boolean)
Declaration
public override void PerformLayout(bool force = false)
Parameters
|
System.Boolean
force
|
Overrides
StartRenaming()
Shows the rename popup for the item.
Declaration
public void StartRenaming()
UpdateFilter(String)
Updates the query search filter.
Declaration
public void UpdateFilter(string filterText)
Parameters
|
System.String
filterText
The filter text. |