Crate zng_wgt_menu

Crate zng_wgt_menu 

Source
Expand description

Menu widgets and properties.

§Crate

This crate is part of the zng project.

Modules§

context
Context menu widget and properties.
popup
Sub-menu popup widget and properties.
sub
Sub-menu widget and properties.

Structs§

ButtonStyle
W Style applied to all Button! widgets inside Menu! root.
ComboStyle
W Style applied to all Toggle! widgets using the toggle::ComboStyle! inside Menu! root.
DefaultStyle
W Default Menu! style.
IconButtonStyle
W Alternate style for buttons inside a menu.
Menu
W Menu root panel.
ToggleStyle
W Style applied to all Toggle! widgets inside Menu! root.

Statics§

ICON_BUTTON_STYLE_FN_VAR
Contextual style variable.
PANEL_FN_VAR
Defines the layout widget for Menu!.
STYLE_FN_VAR
Contextual style variable.

Functions§

has_open
P Gets if any descendant sub-menu is open.
icon
P Menu item icon.
icon_button_style_fn
P Extends or replaces the IconButtonStyle!.
icon_fn
P Menu item icon from widget function.
panel_fn
P Widget function that generates the menu layout.
shortcut_txt
P Menu item shortcut text.
style_fn
P Extends or replaces the widget style.