|
Window Framework v1.2.4
Window Framework for Unity UI Toolkit
|
Used to define the items that will be displayed in the context menu.
Public Member Functions | |
| ContextMenuItem () | |
| Create a menu seperator in the menu. | |
| ContextMenuItem (bool isSeparator=true, string label=null, Action action=null, Func< bool > isVisible=null, Func< bool > isDisabled=null, Func< bool > isChecked=null, Object userData=null) | |
| Context Menu Default implementation with all possible options. | |
| ContextMenuItem (string label, Action action=null) | |
| Represents an individual item in a context menu, providing the label and action. | |
| ContextMenuItem (string label, Action action=null, Func< bool > isVisible=null) | |
| Represents an item in a context menu, including its label, action to be performed, and visibility logic. | |
| ContextMenuItem (string label, Action action=null, Func< bool > isVisible=null, Func< bool > isDisabled=null) | |
| ContextMenuItem (string label, Action action=null, Func< bool > isVisible=null, Func< bool > isDisabled=null, Func< bool > isChecked=null) | |
| Represents an item in a context menu, providing its display label, associated action, and optional logic for visibility, enablement, and selection state. | |
| ContextMenuItem (string label, Action action=null, Func< bool > isVisible=null, Func< bool > isDisabled=null, Func< bool > isChecked=null, Object userData=null) | |
| Represents an item in a context menu, providing its display label, associated action, and optional logic for visibility, enablement, and selection state. | |
Public Attributes | |
| Action | Action |
| Func< bool > | IsChecked |
| Func< bool > | IsDisabled |
| bool | IsSeparator |
| Func< bool > | IsVisible |
| string | Label |
| Object | UserData |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | string | label, |
| Action | action = null ) |
| label | Text to display in the menu |
| action | Action to Invoke when activated |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | string | label, |
| Action | action = null, | ||
| Func< bool > | isVisible = null ) |
| label | Text to display in the menu |
| action | Action to Invoke when activated |
| isVisible | Bool Func - Should the item be displayed undercurrent conditions |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | string | label, |
| Action | action = null, | ||
| Func< bool > | isVisible = null, | ||
| Func< bool > | isDisabled = null ) |
| label | Text to display in the menu |
| action | Action to Invoke when activated |
| isVisible | Bool Func - Should the item be displayed undercurrent conditions |
| isDisabled | Bool Func - Show the item but in a disabled state based on data |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | string | label, |
| Action | action = null, | ||
| Func< bool > | isVisible = null, | ||
| Func< bool > | isDisabled = null, | ||
| Func< bool > | isChecked = null ) |
| label | Text to display in the menu |
| action | Action to Invoke when activated |
| isVisible | Bool Func - Should the item be displayed undercurrent conditions |
| isDisabled | Bool Func - Show the item but in a disabled state based on data |
| isChecked | Bool Func - Show a check mark next to the item in the menu |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | string | label, |
| Action | action = null, | ||
| Func< bool > | isVisible = null, | ||
| Func< bool > | isDisabled = null, | ||
| Func< bool > | isChecked = null, | ||
| Object | userData = null ) |
| label | Text to display in the menu |
| action | Action to Invoke when activated |
| isVisible | Bool Func - Should the item be displayed undercurrent conditions |
| isDisabled | Bool Func - Show the item but in a disabled state based on data |
| isChecked | Bool Func - Show a check mark next to the item in the menu |
| userData | Optional user data object to store in the userdata container of the visual element |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | ) |
| GWG.WindowFramework.ContextMenuItem.ContextMenuItem | ( | bool | isSeparator = true, |
| string | label = null, | ||
| Action | action = null, | ||
| Func< bool > | isVisible = null, | ||
| Func< bool > | isDisabled = null, | ||
| Func< bool > | isChecked = null, | ||
| Object | userData = null ) |
| isSeparator | Make the item as a seperator |
| label | Text to display in the menu |
| action | Action to Invoke when activated |
| isVisible | Bool Func - Should the item be displayed undercurrent conditions |
| isDisabled | Bool Func - Show the item but in a disabled state based on data |
| isChecked | Bool Func - Show a check mark next to the item in the menu |
| userData | Optional user data object to store in the userdata container of the visual element |
| Action GWG.WindowFramework.ContextMenuItem.Action |
| Func<bool> GWG.WindowFramework.ContextMenuItem.IsChecked |
| Func<bool> GWG.WindowFramework.ContextMenuItem.IsDisabled |
| bool GWG.WindowFramework.ContextMenuItem.IsSeparator |
| Func<bool> GWG.WindowFramework.ContextMenuItem.IsVisible |
| string GWG.WindowFramework.ContextMenuItem.Label |
| Object GWG.WindowFramework.ContextMenuItem.UserData |