pub struct PageNavigation<'a> { /* private fields */ }
Expand description
Render the navigation for one or more Pager widgets.
Implementations§
pub fn new() -> Self
Sourcepub fn pages(self, pages: u8) -> Self
pub fn pages(self, pages: u8) -> Self
Number of pages displayed.
Splits the inner area into n equally sized areas. Any rounding areas are not given to any of these areas but area added as padding on the right side.
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 size for one column.
pub fn inner(&self, area: Rect) -> Rect
Trait Implementations§
Source§fn clone(&self) -> PageNavigation<'a>
fn clone(&self) -> PageNavigation<'a>
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 moreAuto Trait Implementations§
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