Class ContentItemTreeNode
Tree node for non-folder content items.
Implements
System.IComparable
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class ContentItemTreeNode : TreeNode, IComparable, IDrawable, IContentItemOwner
Constructors
ContentItemTreeNode(ContentItem)
Initializes a new instance of the ContentItemTreeNode class.
Declaration
public ContentItemTreeNode(ContentItem item)
Parameters
|
FlaxEditor.Content.ContentItem
item
The content item. |
Properties
Item
The content item.
Declaration
public ContentItem Item { get; }
Property Value
|
FlaxEditor.Content.ContentItem
|
ShowTooltip
Gets a value indicating whether show control tooltip (control is in a proper state, tooltip text is valid, etc.). Can be used to implement custom conditions for showing tooltips (eg. based on current mouse location within the control bounds).
Declaration
protected override bool ShowTooltip { get; }
Property Value
|
System.Boolean
|
Overrides
Remarks
Tooltip can be only visible if mouse is over the control area (see IsMouseOver).
Methods
Compare(Control)
Declaration
public override int Compare(Control other)
Parameters
|
Control
other
|
Returns
|
System.Int32
|
Overrides
FlaxEditor.GUI.Tree.TreeNode.Compare(FlaxEngine.GUI.Control)
DoDragDrop()
Declaration
protected override void DoDragDrop()
Overrides
FlaxEditor.GUI.Tree.TreeNode.DoDragDrop()
Draw()
Declaration
public override void Draw()
Overrides
FlaxEditor.GUI.Tree.TreeNode.Draw()
OnDestroy()
Declaration
public override void OnDestroy()
Overrides
FlaxEditor.GUI.Tree.TreeNode.OnDestroy()
OnMouseDoubleClickHeader(ref Float2, MouseButton)
Declaration
protected override bool OnMouseDoubleClickHeader(ref Float2 location, MouseButton button)
Parameters
|
Float2
location
|
|
MouseButton
button
|
Returns
|
System.Boolean
|
Overrides
FlaxEditor.GUI.Tree.TreeNode.OnMouseDoubleClickHeader(FlaxEngine.Float2, FlaxEngine.MouseButton)
OnShowTooltip(out String, out Float2, out Rectangle)
Declaration
public override bool OnShowTooltip(out string text, out Float2 location, out Rectangle area)
Parameters
|
System.String
text
|
|
Float2
location
|
|
Rectangle
area
|
Returns
|
System.Boolean
|
Overrides
FlaxEditor.GUI.Tree.TreeNode.OnShowTooltip(System.String, FlaxEngine.Float2, FlaxEngine.Rectangle)
UpdateDisplayedName()
Updates the text of the node.
Declaration
public void UpdateDisplayedName()
UpdateFilter(String)
Updates the query search filter.
Declaration
public void UpdateFilter(string filterText)
Parameters
|
System.String
filterText
The filter text. |