Crate zng_wgt_dialog

Source
Expand description

Dialog widget and service.

§Crate

This crate is part of the zng project.

Modules§

backdrop
Modal backdrop widget.

Structs§

AskStyle
W Question style.
ConfirmStyle
W Confirmation style.
DIALOG
Dialog service.
DefaultStyle
W Dialog default style.
Dialog
W A modal dialog overlay container.
DialogButtonArgs
Arguments for button_fn.
DialogCloseCanceledArgs
Arguments for DIALOG_CLOSE_CANCELED_EVENT.
DialogKind
Dialog kind options.
ErrorStyle
W Dialog error style.
FileDialogFilters
File dialog filters builder.
InfoStyle
W Dialog info style.
Response
Dialog response.
Responses
Response labels.
WarnStyle
W Dialog warn style.

Enums§

FileDialogResponse
Response to a message dialog.

Statics§

BUTTON_FN_VAR
Dialog response button generator, usually placed as child_out_bottom.
CONTENT_VAR
Content widget, usually the dialog child.
DEFAULT_RESPONSE_VAR
Dialog response when closed without setting a response.
DIALOG_CLOSE_CANCELED_EVENT
An attempt to close the dialog was made without setting the response.
ICON_VAR
Icon widget, usually placed as child_out_start.
NATIVE_DIALOGS_VAR
Defines what native dialogs are used on a context.
RESPONSES_VAR
Dialog responses.
STYLE_FN_VAR
Contextual style variable.
TITLE_VAR
Title widget, usually placed as child_out_top.

Functions§

button_fn
P Dialog button generator.
content
P Dialog content widget.
default_button_fn
Default value of button_fn
default_response
P Dialog response when closed without setting a response.
icon
P Dialog icon widget.
native_dialogs
P Defines what native dialogs are used by dialogs opened on the context.
on_dialog_close_canceled
P Dialogs must only close using DIALOG.respond.
on_pre_dialog_close_canceled
P Preview on_dialog_close_canceled event.
responses
P Dialog responses.
style_fn
P Extends or replaces the widget style.
title
P Dialog title widget.