Class ContentNavigationButton
A navigation button for ContentWindow.
Inheritance
System.Object
FlaxEditor.GUI.NavigationButton
ContentNavigationButton
Implements
System.IComparable
Namespace: FlaxEditor.Content.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ContentNavigationButton : NavigationButton, IComparable, IDrawable
Constructors
ContentNavigationButton(ContentTreeNode, Single, Single, Single)
Initializes a new instance of the ContentNavigationButton class.
Declaration
public ContentNavigationButton(ContentTreeNode targetNode, float x, float y, float height)
Parameters
ContentTreeNode
targetNode
The target node. |
System.Single
x
The x position. |
System.Single
y
The y position. |
System.Single
height
The height. |
Properties
TargetNode
Gets the target node.
Declaration
public ContentTreeNode TargetNode { get; }
Property Value
ContentTreeNode
|
Methods
OnClick()
Called when mouse or touch clicks the button.
Declaration
protected override void OnClick()
Overrides
OnDragDrop(ref Float2, DragData)
When mouse dragging drops on control's area
Declaration
public override DragDropEffect OnDragDrop(ref Float2 location, DragData data)
Parameters
Float2
location
Mouse location in Control Space |
DragData
data
The data. See DragDataText and DragDataFiles. |
Returns
DragDropEffect
The drag event result effect. |
Overrides
OnDragEnter(ref Float2, DragData)
When mouse dragging enters control's area
Declaration
public override DragDropEffect OnDragEnter(ref Float2 location, DragData data)
Parameters
Float2
location
Mouse location in Control Space |
DragData
data
The data. See DragDataText and DragDataFiles. |
Returns
DragDropEffect
The drag event result effect. |
Overrides
OnDragLeave()
When mouse dragging leaves control's area
Declaration
public override void OnDragLeave()
Overrides
OnDragMove(ref Float2, DragData)
When mouse dragging moves over control's area
Declaration
public override DragDropEffect OnDragMove(ref Float2 location, DragData data)
Parameters
Float2
location
Mouse location in Control Space |
DragData
data
The data. See DragDataText and DragDataFiles. |
Returns
DragDropEffect
The drag event result effect. |
Overrides
Extension Methods
See Also
FlaxEditor.GUI.NavigationButton