#[non_exhaustive]pub struct Page {
pub title: VarEq<Txt>,
pub info: VarEq<Txt>,
pub header: WidgetFn<PageArgs>,
pub side: WidgetFn<PageArgs>,
pub content: WidgetFn<PageArgs>,
pub footer: WidgetFn<PageArgs>,
pub skip: VarEq<bool>,
pub can_back: VarEq<bool>,
pub can_next: VarEq<bool>,
}Expand description
Represents a page builder for Wizard!.
The widgets defined here must represent only the content that is unique for each page,
the wizard widget has properties that define the wizard parts, for example, if the side
has an image that is the same for all pages it is defined in Wizard::side_fn.
The builders care called in the parent Wizard! widget context.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: VarEq<Txt>Page title.
The default header presents this for the selected page.
info: VarEq<Txt>Page info.
This is a short explanation about the page. Supports basic markdown span formatting.
The default header presents this for the selected page.
header: WidgetFn<PageArgs>Page header content.
Presents the title, info and any other custom header detail
when the page is selected.
The header of each page is wrapped by Wizard::header_fn to form the full header.
If this builds UiNode::nil the header panel is collapsed for this page.
Is default_page_header by default.
side: WidgetFn<PageArgs>Page side panel content.
The side content of each page is wrapped by Wizard::side_fn to form the full side panel.
If this is a list node the wizard side builder will generate a layout panel for the items.
If this builds UiNode::nil the side panel is collapsed for this page. An empty list node
signals the side builder that it should be visible without page content.
Is default_page_side by default.
content: WidgetFn<PageArgs>Page main content.
The main content of each page is wrapped by Wizard::content_fn to form the full content panel.
Page footer content.
The footer of each page is wrapped by Wizard::footer_fn to form the full footer panel.
If this is a list node the wizard footer builder will generate a layout panel for the items.
Is default_page_footer by default.
skip: VarEq<bool>When true the page is skipped over.
Is false by default.
can_back: VarEq<bool>When is not the first page controls the wizard BACK_CMD handle.
Is true by default.
can_next: VarEq<bool>When is not the last page controls the wizard NEXT_CMD handle.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl !Freeze for Page
impl !RefUnwindSafe for Page
impl !Unpin for Page
impl !UnwindSafe for Page
impl Send for Page
impl Sync for Page
impl UnsafeUnpin for Page
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
other if both are of the same type.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more