Class MenuNode
public class MenuNode : Node
- Inheritance
-
MenuNode
- Inherited Members
Constructors
MenuNode()
public MenuNode()
Properties
DisabledColor
Menu item color used when disabled.
public Color DisabledColor { get; set; }
Property Value
Font
Menu font used for menu item labels.
public Font Font { get; set; }
Property Value
HoverColor
Menu item color used when hovered and not selected.
public Color HoverColor { get; set; }
Property Value
HoverSelectedColor
Menu item color used when hovered and selected.
public Color HoverSelectedColor { get; set; }
Property Value
Items
Menu node items
public MenuItem[] Items { get; set; }
Property Value
- MenuItem[]
NormalColor
Menu item color used when not selected and not hovered.
public Color NormalColor { get; set; }
Property Value
PressedColor
Menu item color used when pressed.
public Color PressedColor { get; set; }
Property Value
SelectedColor
Menu item color used when selected and not hovered.
public Color SelectedColor { get; set; }
Property Value
SelectedIndex
Menu selected index
public int SelectedIndex { get; set; }
Property Value
SelectedItemType
Type of the currently selected menu item, or null when no item is selected.
public MenuItemType? SelectedItemType { get; }
Property Value
Size
Menu size
public SizeF Size { get; set; }
Property Value
Methods
ActivateSelection()
Activate the currently selected menu item.
public void ActivateSelection()
DecrementSelectedSlider()
Decreases the selected slider by one twentieth of its range.
public void DecrementSelectedSlider()
Dismiss()
Dismisses the menu by sliding visible items down and fading them out, then hiding the node. The panel is removed and navigation history cleared so the next Show starts fresh.
public void Dismiss()
IncrementSelectedSlider()
Increases the selected slider by one twentieth of its range.
public void IncrementSelectedSlider()
NavigateBack()
Navigate back to the parent menu if the current panel is a submenu.
public void NavigateBack()
Show()
Shows the menu, animating visible items sliding up into view. Safe to call after items have been set. Rebuilds the panel if a prior dismiss cleared it.
public void Show()
StartMoveSelectionDown()
Start moving selection rect down
public void StartMoveSelectionDown()
StartMoveSelectionUp()
Start moving Selection rect up
public void StartMoveSelectionUp()
StopMoveSelection()
Stop moving selection rect
public void StopMoveSelection()