pub enum WidgetKind {
Window,
Container,
Fragment,
Text,
Button,
TextInput,
Checkbox,
Switch,
ScrollView,
Custom(&'static str),
Native,
}Variants§
Window
Container
A layout host: a plain native view that we position children in.
Fragment
Core-only grouping used by control flow (Show, For). Never sent to
backends; its children are spliced into the nearest native ancestor.
Text
Button
TextInput
Checkbox
Switch
ScrollView
A native scroll container. It has exactly one native child, the content, which the core lays out and may be larger than the viewport.
Custom(&'static str)
A custom widget (see CustomWidget), named
after it. Its props travel as Prop::Custom.
Native
A raw native view supplied by app code. Its factory and updates
travel as Prop::Native.
Implementations§
Trait Implementations§
Source§impl Clone for WidgetKind
impl Clone for WidgetKind
impl Copy for WidgetKind
Source§impl Debug for WidgetKind
impl Debug for WidgetKind
impl Eq for WidgetKind
Source§impl Hash for WidgetKind
impl Hash for WidgetKind
Source§impl PartialEq for WidgetKind
impl PartialEq for WidgetKind
impl StructuralPartialEq for WidgetKind
Auto Trait Implementations§
impl Freeze for WidgetKind
impl RefUnwindSafe for WidgetKind
impl Send for WidgetKind
impl Sync for WidgetKind
impl Unpin for WidgetKind
impl UnsafeUnpin for WidgetKind
impl UnwindSafe for WidgetKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more