UIMenuItem Class
Definition
Namespace: Brine2D.UI
A single entry in a UIMenuBarMenu dropdown. Can be a labeled action, a separator, or a disabled placeholder.
Inheritance System.Object → UIMenuItem
| Constructors | |
|---|---|
| UIMenuItem\(string, bool, Action\) |
| Properties | |
|---|---|
| Enabled | Disabled items are rendered dimmed and cannot be activated. |
| IsSeparator | When true this entry renders as a horizontal divider line. |
| Label | Display text for this item. Ignored for separator items. |
| OnClick | Optional callback invoked when this item is selected. |
| Methods | |
|---|---|
| Separator() | Creates a separator item. |