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!.
DefaultStyle
W Default Menu! style.
Menu
W Menu root panel.
ToggleStyle
W Style applied to all Button! widgets inside Menu!.
TouchButtonStyle
W Command button for touch.

Statics§

PANEL_FN_VAR
Defines the layout widget for Menu!.
SHORTCUT_SPACING_VAR
Minimum space between a menu item child and the shortcut_txt child.
STYLE_FN_VAR
Contextual style variable.

Functions§

icon
P Menu item icon.
icon_fn
P Menu item icon from widget function.
panel_fn
P Widget function that generates the menu layout.
shortcut_spacing
P Minimum space between a menu item child and the shortcut_txt child.
shortcut_txt
P Menu item shortcut text.
style_fn
P Extends or replaces the widget style.