Expand description
Types for handling menus (context menu, menubar) Menu system for context menus, dropdown menus, and application menus.
This module provides a cross-platform menu abstraction modeled after the Windows API, supporting hierarchical menus with separators, icons, keyboard accelerators, and callbacks.
§Core vs Layout Types
This module uses CoreMenuCallback with usize placeholders instead of function pointers
to avoid circular dependencies between azul-core and azul-layout. The actual function
pointers are stored in azul-layout and converted via unsafe code with identical memory
layout.
Structs§
- Core
Menu Callback - Menu callback using usize placeholder for function pointer.
- Menu
- Represents a menu (context menu, dropdown menu, or application menu).
- Menu
Item Vec - Menu
Item VecSlice - C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
- String
Menu Item - A menu item with a text label and optional features.
Enums§
- Menu
Item - Represents a single item in a menu.
- Menu
Item Icon - Optional icon displayed next to a menu item.
- Menu
Item State - Describes the interactive state of a menu item.
- Menu
Item VecDestructor - Menu
Popup Position - Specifies where a popup menu should appear relative to the cursor or clicked element.
- Option
Core Menu Callback - Option
Menu - Option
Menu Item - Option
Menu Item Icon