Crate zng_wgt_settings

Source
Expand description

Settings widgets.

Structs§

CategoriesListArgs
Arguments for a widget function that makes a list of category items that can be selected.
CategoryHeaderArgs
Arguments for a widget function that makes a category header in a settings list.
CategoryItemArgs
Arguments for a widget function that makes a category item for a categories list.
PanelArgs
Arguments for the entire settings editor layout.
SettingArgs
Arguments for a widget function that makes a setting container.
SettingsArgs
Arguments for a widget function that makes a settings for a category list.
SettingsEditor
W Settings editor widget.
SettingsEditorState
Represents the current settings data.
SettingsSearchArgs
Arguments for a search box widget.

Statics§

CATEGORIES_LIST_FN_VAR
Categories list.
CATEGORY_HEADER_FN_VAR
Category header on the settings list.
CATEGORY_ITEM_FN_VAR
Category in a category list.
PANEL_FN_VAR
Editor layout.
SETTINGS_FN_VAR
Settings list for a category.
SETTINGS_SEARCH_FN_VAR
Settings search area.
SETTING_FN_VAR
Setting item.

Traits§

SettingBuilderEditorExt
Extends SettingBuilder to set custom editor metadata.
SettingEditorExt
Extends Setting to get custom editor metadata.
SettingsCtxExt
Extends SETTINGS to provide contextual information in an editor.
WidgetInfoSettingExt
Extends WidgetInfo to provide the setting config key for setting widgets.

Functions§

categories_list_fn
P Widget function that converts CategoriesListArgs to a category list.
category_header_fn
P Widget function that converts CategoryHeaderArgs to a category settings header.
category_item_fn
P Widget function that converts CategoryItemArgs to a category item on a category list.
default_categories_list_fn
Default categories list view on actual_width > 400.
default_categories_list_mobile_fn
Default categories list view on actual_width <= 400.
default_category_header_fn
Default category item view.
default_category_item_fn
Default category item view.
default_panel_fn
Default editor layout on actual_width > 400.
default_panel_mobile_fn
Default editor layout on actual_width <= 400.
default_setting_fn
Default setting item view.
default_settings_fn
Default settings for a category view.
default_settings_search_fn
Default settings search box.
handle_settings_cmd
Set a SETTINGS_CMD handler that shows the settings window.
panel_fn
P Widget that defines the editor layout, bringing together the other component widgets.
save_state
P Save and restore settings search and selected category.
setting
P Identifies the setting_fn widget.
setting_fn
P Widget function that converts SettingArgs to a setting editor entry on a settings list.
settings_editor_node
Implements the SettingsEditor! inner widgets.
settings_fn
P Widget function that converts SettingsArgs to a settings list.
settings_search_fn
P Widget function that converts SettingsSearchArgs to a search box.