pub struct DualPager<'a, W>{ /* private fields */ }Expand description
This widget renders twp pages of a GenericLayout.
Implementations§
Source§impl<'a, W> DualPager<'a, W>
impl<'a, W> DualPager<'a, W>
Sourcepub fn label_style(self, style: Style) -> Self
pub fn label_style(self, style: Style) -> Self
Style for text labels.
Sourcepub fn label_alignment(self, alignment: Alignment) -> Self
pub fn label_alignment(self, alignment: Alignment) -> Self
Alignment for text labels.
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.
Sourcepub fn styles(self, styles: PagerStyle) -> Self
pub fn styles(self, styles: PagerStyle) -> Self
Set all styles.
Sourcepub fn layout_size(&self, area: Rect) -> Size
pub fn layout_size(&self, area: Rect) -> Size
Calculate the layout page size.
Sourcepub fn into_buffer(
self,
area: Rect,
buf: &'a mut Buffer,
state: &mut DualPagerState<W>,
) -> DualPagerBuffer<'a, W>
pub fn into_buffer( self, area: Rect, buf: &'a mut Buffer, state: &mut DualPagerState<W>, ) -> DualPagerBuffer<'a, W>
Run the layout and create the second stage.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for DualPager<'a, W>
impl<'a, W> RefUnwindSafe for DualPager<'a, W>where
W: RefUnwindSafe,
impl<'a, W> !Send for DualPager<'a, W>
impl<'a, W> !Sync for DualPager<'a, W>
impl<'a, W> Unpin for DualPager<'a, W>
impl<'a, W> UnwindSafe for DualPager<'a, W>where
W: RefUnwindSafe,
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