pub struct DualPagerState<W>{
pub layout: Rc<RefCell<GenericLayout<W>>>,
pub nav: PageNavigationState,
pub non_exhaustive: NonExhaustive,
}๐Deprecated since 1.2.0: merged into form::Form
Expand description
Widget state.
Fieldsยง
ยงlayout: Rc<RefCell<GenericLayout<W>>>๐Deprecated since 1.2.0: merged into form::Form
Page layout read+write might be overwritten from widget.
๐Deprecated since 1.2.0: merged into form::Form
PageNavigationState holds most of our state. read+write
non_exhaustive: NonExhaustive๐Deprecated since 1.2.0: merged into form::Form
Only construct with ..Default::default().
Implementationsยง
Sourceยงimpl<W> DualPagerState<W>
impl<W> DualPagerState<W>
pub fn new() -> Self
๐Deprecated since 1.2.0: merged into form::Form
Sourcepub fn clear(&mut self)
๐Deprecated since 1.2.0: merged into form::Form
pub fn clear(&mut self)
Clear the layout data and reset the page/page-count.
Sourcepub fn valid_layout(&self, size: Size) -> bool
๐Deprecated since 1.2.0: merged into form::Form
pub fn valid_layout(&self, size: Size) -> bool
Layout needs to change?
Sourcepub fn set_layout(&mut self, layout: GenericLayout<W>)
๐Deprecated since 1.2.0: merged into form::Form
pub fn set_layout(&mut self, layout: GenericLayout<W>)
Set the layout.
Sourcepub fn layout(&self) -> Ref<'_, GenericLayout<W>>
๐Deprecated since 1.2.0: merged into form::Form
pub fn layout(&self) -> Ref<'_, GenericLayout<W>>
Layout.
Sourcepub fn show(&mut self, widget: W)
๐Deprecated since 1.2.0: merged into form::Form
pub fn show(&mut self, widget: W)
Show the page for this widget. If there is no widget for the given identifier, this will set the page to 0.
Sourcepub fn first(&self, page: usize) -> Option<W>
๐Deprecated since 1.2.0: merged into form::Form
pub fn first(&self, page: usize) -> Option<W>
Returns the first widget for the given page.
Sourcepub fn page_of(&self, widget: W) -> Option<usize>
๐Deprecated since 1.2.0: merged into form::Form
pub fn page_of(&self, widget: W) -> Option<usize>
Calculates the page of the widget.
Sourcepub fn set_page(&mut self, page: usize) -> bool
๐Deprecated since 1.2.0: merged into form::Form
pub fn set_page(&mut self, page: usize) -> bool
Set the visible page.
Trait Implementationsยง
Sourceยงimpl<W> Clone for DualPagerState<W>
impl<W> Clone for DualPagerState<W>
Sourceยงfn clone(&self) -> DualPagerState<W>
fn clone(&self) -> DualPagerState<W>
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl<W> Debug for DualPagerState<W>
impl<W> Debug for DualPagerState<W>
Sourceยงimpl<W> Default for DualPagerState<W>
impl<W> Default for DualPagerState<W>
Sourceยงimpl<W> HandleEvent<Event, MouseOnly, PagerOutcome> for DualPagerState<W>
impl<W> HandleEvent<Event, MouseOnly, PagerOutcome> for DualPagerState<W>
Sourceยงimpl<W> HandleEvent<Event, Regular, PagerOutcome> for DualPagerState<W>
impl<W> HandleEvent<Event, Regular, PagerOutcome> for DualPagerState<W>
Auto Trait Implementationsยง
impl<W> !Freeze for DualPagerState<W>
impl<W> !RefUnwindSafe for DualPagerState<W>
impl<W> !Send for DualPagerState<W>
impl<W> !Sync for DualPagerState<W>
impl<W> Unpin for DualPagerState<W>
impl<W> !UnwindSafe for DualPagerState<W>
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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