#[non_exhaustive]pub enum WidgetKind {
Show 34 variants
Window,
Container,
Label,
Button,
RadioButton,
Slider,
SpinBox,
Separator,
GroupBox,
Tabs,
Image,
DatePicker,
LinkLabel,
ListView,
TreeView,
SplitPane,
FileChooserDialog,
AlertDialog,
TextInput,
TextArea,
VulkanCanvas,
MetalCanvas,
Checkbox,
ComboBox,
ProgressBar,
DataList,
DataGrid,
Canvas,
ColorDialog,
FontDialog,
Toolbar,
Calendar,
RichText,
MultiSelect,
}Expand description
Cross-platform widget kinds supported by the abstraction layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Window
Container
Label
Button
RadioButton
Slider
SpinBox
Separator
GroupBox
Tabs
Image
DatePicker
LinkLabel
ListView
TreeView
SplitPane
FileChooserDialog
AlertDialog
TextInput
TextArea
VulkanCanvas
MetalCanvas
Native Apple Metal rendering surface backed by CAMetalLayer on macOS.
Checkbox
ComboBox
ProgressBar
DataList
DataGrid
Canvas
ColorDialog
Portable colour picker; the native dialog mappings land in a later step, so lanes without them report the typed unsupported error.
FontDialog
Portable font picker; the native dialog mappings land in a later step, so lanes without them report the typed unsupported error.
Toolbar
Portable toolbar: stable tool ids, separators, checkable and radio tools, and dropdown requests. The native compositions land in a later step, so lanes without them report the typed unsupported error.
Calendar
Portable calendar month grid.
RichText
Editable text widget with styled runs.
MultiSelect
Multiple selection choice list or dropdown.
Implementations§
Source§impl WidgetKind
impl WidgetKind
Sourcepub fn requires_property(self, property: WidgetProperty) -> bool
pub fn requires_property(self, property: WidgetProperty) -> bool
Checks whether this widget kind supports the specified property.
Sourcepub fn is_window_like(self) -> bool
pub fn is_window_like(self) -> bool
Checks whether this widget kind represents a top-level window or dialog surface.