Module dialog
Available on crate feature
dep_fltk
only.Expand description
Dialog widgets
Structs§
- File
Chooser - FLTK’s own
FileChooser
. Which differs for the NativeFileDialog
Example: - File
Chooser Type - The types of FileChooser
- File
Dialog - FLTK’s NativeFileChooser
- File
Dialog Options - Defines the File dialog options, which can be set using the
set_option()
method. - Help
Dialog - Creates a help dialog
Enums§
- Beep
Type - Defines the type of beep to be passed to the beep function
- Color
Mode - Color modes to be used with the color chooser
- File
Dialog Action - Rusult of try_show
- File
Dialog Type - Defines the type of dialog, which can be changed dynamically using the
set_type()
method
Functions§
- alert
- Displays an alert box
- alert_
default - Displays an alert box, the dialog is positioned at the pointer hotspot
- beep
- Emits a beep
- choice
Deprecated - Displays a choice box with up to three choices. Choosing a value returns its index from the arguments
- choice2
- Displays a choice box with up to three choices. Closing the dialog returns None. Choosing a value returns its index from the arguments.
- choice2_
default - Displays a choice box with up to three choices. An empty choice will not be shown. Closing the dialog returns None. Choosing a value returns its index from the arguments. The dialog is positioned at the pointer hotspot
- choice_
default Deprecated - Displays a choice box with up to three choices. The dialog is positioned at the pointer hotspot
- color_
chooser - Spawns a color chooser dialog.
- color_
chooser_ with_ default - Spawns a color chooser dialog.
- dir_
chooser - Shows a directory chooser returning a String
- file_
chooser - Shows a file chooser returning a String.
The pattern field takes the same argument the
FileChooser::set_filter
method. Example: - input
- Displays an input box, which returns the inputted string. Can be used for gui io
- input_
default - Displays an input box, which returns the inputted string. Can be used for gui io. The dialog is positioned at the pointer hotspot
- message
- Displays a message box
- message_
default - Displays a message box, the dialog is positioned at the pointer hotspot
- message_
hotspot - Get whether hotspot is enabled for FLTK’s dialog boxes
- message_
icon - Get the frame holding the icon of FLTK’s dialog boxes
- message_
icon_ label - Set the next dialog’s icon label
- message_
set_ font - Set the font and font size of FLTK’s dialog boxes
- message_
set_ hotspot - Set whether hotspot is enabled for FLTK’s dialog boxes
- message_
title - Set the next dialog’s title
- message_
title_ default - Set the default title for a dialog
- password
- Shows an input box, but with hidden string
- password_
default - Shows an input box, but with hidden string. The dialog is positioned at the pointer hotspot
Type Aliases§
- Native
File Chooser - FLTK’s NativeFileChooser
- Native
File Chooser Action - Alias to
FileDialogAction
- Native
File Chooser Options - Alias to
FileDialogOptions
- Native
File Chooser Type - Alias for
NativeFileChooserType