pub struct SinglePager<'a> { /* private fields */ }Expand description
Widget that displays one page of the PageLayout.
This only renders the navigation, you must render each widget yourself. Call relocate(area) to get the actual screen-area for your widget. If this call returns None, your widget shall not be displayed.
Implementations§
source§impl<'a> SinglePager<'a>
impl<'a> SinglePager<'a>
pub fn new() -> Self
sourcepub fn layout(self, page_layout: PageLayout) -> Self
pub fn layout(self, page_layout: PageLayout) -> Self
Page layout.
sourcepub fn styles(self, styles: PagerStyle) -> Self
pub fn styles(self, styles: PagerStyle) -> Self
Set all styles.
Style for navigation.
sourcepub fn title_style(self, title_style: Style) -> Self
pub fn title_style(self, title_style: Style) -> Self
Style for the title.
Trait Implementations§
source§impl<'a> Clone for SinglePager<'a>
impl<'a> Clone for SinglePager<'a>
source§fn clone(&self) -> SinglePager<'a>
fn clone(&self) -> SinglePager<'a>
Returns a copy 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<'a> Debug for SinglePager<'a>
impl<'a> Debug for SinglePager<'a>
source§impl<'a> Default for SinglePager<'a>
impl<'a> Default for SinglePager<'a>
source§fn default() -> SinglePager<'a>
fn default() -> SinglePager<'a>
Returns the “default value” for a type. Read more
source§impl<'a> StatefulWidget for SinglePager<'a>
impl<'a> StatefulWidget for SinglePager<'a>
Auto Trait Implementations§
impl<'a> Freeze for SinglePager<'a>
impl<'a> !RefUnwindSafe for SinglePager<'a>
impl<'a> !Send for SinglePager<'a>
impl<'a> !Sync for SinglePager<'a>
impl<'a> Unpin for SinglePager<'a>
impl<'a> !UnwindSafe for SinglePager<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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