pub struct SinglePager<'a, W>{ /* private fields */ }Expand description
This widget renders a single page of a GenericLayout.
Implementations§
Source§impl<'a, W> SinglePager<'a, W>
impl<'a, W> SinglePager<'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.
pub fn next_page_mark(self, txt: &'a str) -> Self
pub fn prev_page_mark(self, txt: &'a str) -> Self
pub fn first_page_mark(self, txt: &'a str) -> Self
pub fn last_page_mark(self, txt: &'a str) -> Self
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.
pub fn inner(&self, area: Rect) -> Rect
Sourcepub fn into_buffer(
self,
area: Rect,
buf: &'a mut Buffer,
state: &'a mut SinglePagerState<W>,
) -> SinglePagerBuffer<'a, W>
pub fn into_buffer( self, area: Rect, buf: &'a mut Buffer, state: &'a mut SinglePagerState<W>, ) -> SinglePagerBuffer<'a, W>
Render the page navigation and create the SinglePagerBuffer that will do the actual widget rendering.
Trait Implementations§
Source§impl<'a, W> Clone for SinglePager<'a, W>
impl<'a, W> Clone for SinglePager<'a, W>
Source§fn clone(&self) -> SinglePager<'a, W>
fn clone(&self) -> SinglePager<'a, W>
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, W> Debug for SinglePager<'a, W>
impl<'a, W> Debug for SinglePager<'a, W>
Auto Trait Implementations§
impl<'a, W> Freeze for SinglePager<'a, W>
impl<'a, W> !RefUnwindSafe for SinglePager<'a, W>
impl<'a, W> !Send for SinglePager<'a, W>
impl<'a, W> !Sync for SinglePager<'a, W>
impl<'a, W> Unpin for SinglePager<'a, W>
impl<'a, W> !UnwindSafe for SinglePager<'a, 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