pub struct View(/* private fields */);Expand description
A declarative Reactor subtree.
Positional fragments preserve identity by position. Keyed fragments preserve child identity by
Key as items are inserted, removed, or reordered.
Implementations§
Source§impl View
impl View
Sourcepub fn component<C: Component>(input: C::Input) -> Self
pub fn component<C: Component>(input: C::Input) -> Self
Creates a component view from its input.
Sourcepub fn fragment(children: impl IntoViews) -> Self
pub fn fragment(children: impl IntoViews) -> Self
Creates a statically shaped fragment whose children are identified by position.
Sourcepub fn keyed_fragment<T>(children: impl IntoIterator<Item = T>) -> Self
pub fn keyed_fragment<T>(children: impl IntoIterator<Item = T>) -> Self
Creates a dynamic fragment whose children are reconciled by key.
Trait Implementations§
Source§impl From<AppBarButton> for View
impl From<AppBarButton> for View
Source§fn from(value: AppBarButton) -> Self
fn from(value: AppBarButton) -> Self
Converts to this type from the input type.
Source§impl From<AppBarSeparator> for View
impl From<AppBarSeparator> for View
Source§fn from(value: AppBarSeparator) -> Self
fn from(value: AppBarSeparator) -> Self
Converts to this type from the input type.
Source§impl From<AutoSuggestBox> for View
impl From<AutoSuggestBox> for View
Source§fn from(value: AutoSuggestBox) -> Self
fn from(value: AutoSuggestBox) -> Self
Converts to this type from the input type.
Source§impl From<BitmapIcon> for View
impl From<BitmapIcon> for View
Source§fn from(value: BitmapIcon) -> Self
fn from(value: BitmapIcon) -> Self
Converts to this type from the input type.
Source§impl From<BreadcrumbBar> for View
impl From<BreadcrumbBar> for View
Source§fn from(value: BreadcrumbBar) -> Self
fn from(value: BreadcrumbBar) -> Self
Converts to this type from the input type.
Source§impl From<CalendarDatePicker> for View
impl From<CalendarDatePicker> for View
Source§fn from(value: CalendarDatePicker) -> Self
fn from(value: CalendarDatePicker) -> Self
Converts to this type from the input type.
Source§impl From<CalendarView> for View
impl From<CalendarView> for View
Source§fn from(value: CalendarView) -> Self
fn from(value: CalendarView) -> Self
Converts to this type from the input type.
Source§impl From<ColorPicker> for View
impl From<ColorPicker> for View
Source§fn from(value: ColorPicker) -> Self
fn from(value: ColorPicker) -> Self
Converts to this type from the input type.
Source§impl From<CommandBar> for View
impl From<CommandBar> for View
Source§fn from(value: CommandBar) -> Self
fn from(value: CommandBar) -> Self
Converts to this type from the input type.
Source§impl From<ContentDialog> for View
impl From<ContentDialog> for View
Source§fn from(value: ContentDialog) -> Self
fn from(value: ContentDialog) -> Self
Converts to this type from the input type.
Source§impl From<DatePicker> for View
impl From<DatePicker> for View
Source§fn from(value: DatePicker) -> Self
fn from(value: DatePicker) -> Self
Converts to this type from the input type.
Source§impl From<DropDownButton> for View
impl From<DropDownButton> for View
Source§fn from(value: DropDownButton) -> Self
fn from(value: DropDownButton) -> Self
Converts to this type from the input type.
Source§impl From<GridViewItem> for View
impl From<GridViewItem> for View
Source§fn from(value: GridViewItem) -> Self
fn from(value: GridViewItem) -> Self
Converts to this type from the input type.
Source§impl From<HyperlinkButton> for View
impl From<HyperlinkButton> for View
Source§fn from(value: HyperlinkButton) -> Self
fn from(value: HyperlinkButton) -> Self
Converts to this type from the input type.
Source§impl From<ItemsRepeater> for View
impl From<ItemsRepeater> for View
Source§fn from(value: ItemsRepeater) -> Self
fn from(value: ItemsRepeater) -> Self
Converts to this type from the input type.
Source§impl From<ListBoxItem> for View
impl From<ListBoxItem> for View
Source§fn from(value: ListBoxItem) -> Self
fn from(value: ListBoxItem) -> Self
Converts to this type from the input type.
Source§impl From<ListViewItem> for View
impl From<ListViewItem> for View
Source§fn from(value: ListViewItem) -> Self
fn from(value: ListViewItem) -> Self
Converts to this type from the input type.
Source§impl From<MenuBarItem> for View
impl From<MenuBarItem> for View
Source§fn from(value: MenuBarItem) -> Self
fn from(value: MenuBarItem) -> Self
Converts to this type from the input type.
Source§fn from(value: NavigationView) -> Self
fn from(value: NavigationView) -> Self
Converts to this type from the input type.
Source§fn from(value: NavigationViewItem) -> Self
fn from(value: NavigationViewItem) -> Self
Converts to this type from the input type.
Source§impl From<PasswordBox> for View
impl From<PasswordBox> for View
Source§fn from(value: PasswordBox) -> Self
fn from(value: PasswordBox) -> Self
Converts to this type from the input type.
Source§impl From<PersonPicture> for View
impl From<PersonPicture> for View
Source§fn from(value: PersonPicture) -> Self
fn from(value: PersonPicture) -> Self
Converts to this type from the input type.
Source§impl From<ProgressBar> for View
impl From<ProgressBar> for View
Source§fn from(value: ProgressBar) -> Self
fn from(value: ProgressBar) -> Self
Converts to this type from the input type.
Source§impl From<ProgressRing> for View
impl From<ProgressRing> for View
Source§fn from(value: ProgressRing) -> Self
fn from(value: ProgressRing) -> Self
Converts to this type from the input type.
Source§impl From<RadioButton> for View
impl From<RadioButton> for View
Source§fn from(value: RadioButton) -> Self
fn from(value: RadioButton) -> Self
Converts to this type from the input type.
Source§impl From<RadioButtons> for View
impl From<RadioButtons> for View
Source§fn from(value: RadioButtons) -> Self
fn from(value: RadioButtons) -> Self
Converts to this type from the input type.
Source§impl From<RatingControl> for View
impl From<RatingControl> for View
Source§fn from(value: RatingControl) -> Self
fn from(value: RatingControl) -> Self
Converts to this type from the input type.
Source§impl From<RelativePanel> for View
impl From<RelativePanel> for View
Source§fn from(value: RelativePanel) -> Self
fn from(value: RelativePanel) -> Self
Converts to this type from the input type.
Source§impl From<RepeatButton> for View
impl From<RepeatButton> for View
Source§fn from(value: RepeatButton) -> Self
fn from(value: RepeatButton) -> Self
Converts to this type from the input type.
Source§impl From<RichEditBox> for View
impl From<RichEditBox> for View
Source§fn from(value: RichEditBox) -> Self
fn from(value: RichEditBox) -> Self
Converts to this type from the input type.
Source§impl From<RichTextBlock> for View
impl From<RichTextBlock> for View
Source§fn from(value: RichTextBlock) -> Self
fn from(value: RichTextBlock) -> Self
Converts to this type from the input type.
Source§impl From<ScrollView> for View
impl From<ScrollView> for View
Source§fn from(value: ScrollView) -> Self
fn from(value: ScrollView) -> Self
Converts to this type from the input type.
Source§impl From<ScrollViewer> for View
impl From<ScrollViewer> for View
Source§fn from(value: ScrollViewer) -> Self
fn from(value: ScrollViewer) -> Self
Converts to this type from the input type.
Source§impl From<SelectorBar> for View
impl From<SelectorBar> for View
Source§fn from(value: SelectorBar) -> Self
fn from(value: SelectorBar) -> Self
Converts to this type from the input type.
Source§impl From<SelectorBarItem> for View
impl From<SelectorBarItem> for View
Source§fn from(value: SelectorBarItem) -> Self
fn from(value: SelectorBarItem) -> Self
Converts to this type from the input type.
Source§impl From<SplitButton> for View
impl From<SplitButton> for View
Source§fn from(value: SplitButton) -> Self
fn from(value: SplitButton) -> Self
Converts to this type from the input type.
Source§impl From<StackPanel> for View
impl From<StackPanel> for View
Source§fn from(value: StackPanel) -> Self
fn from(value: StackPanel) -> Self
Converts to this type from the input type.
Source§impl From<SwapChainPanel> for View
impl From<SwapChainPanel> for View
Source§fn from(value: SwapChainPanel) -> Self
fn from(value: SwapChainPanel) -> Self
Converts to this type from the input type.
Source§impl From<SymbolIcon> for View
impl From<SymbolIcon> for View
Source§fn from(value: SymbolIcon) -> Self
fn from(value: SymbolIcon) -> Self
Converts to this type from the input type.
Source§impl From<TabViewItem> for View
impl From<TabViewItem> for View
Source§fn from(value: TabViewItem) -> Self
fn from(value: TabViewItem) -> Self
Converts to this type from the input type.
Source§impl From<TeachingTip> for View
impl From<TeachingTip> for View
Source§fn from(value: TeachingTip) -> Self
fn from(value: TeachingTip) -> Self
Converts to this type from the input type.
Source§impl From<TimePicker> for View
impl From<TimePicker> for View
Source§fn from(value: TimePicker) -> Self
fn from(value: TimePicker) -> Self
Converts to this type from the input type.
Source§impl From<ToggleButton> for View
impl From<ToggleButton> for View
Source§fn from(value: ToggleButton) -> Self
fn from(value: ToggleButton) -> Self
Converts to this type from the input type.
Source§impl From<ToggleSwitch> for View
impl From<ToggleSwitch> for View
Source§fn from(value: ToggleSwitch) -> Self
fn from(value: ToggleSwitch) -> Self
Converts to this type from the input type.
Source§impl From<VariableSizedWrapGrid> for View
impl From<VariableSizedWrapGrid> for View
Source§fn from(value: VariableSizedWrapGrid) -> Self
fn from(value: VariableSizedWrapGrid) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for View
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Send for View
impl !Sync for View
impl !UnwindSafe for View
impl Freeze for View
impl Unpin for View
impl UnsafeUnpin for View
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