pub struct PageNavigation<'a> { /* private fields */ }๐Deprecated since 1.2.0: merged into form::Form
Expand description
Render the navigation for one or more Pager widgets.
Implementationsยง
pub fn new() -> Self
๐Deprecated since 1.2.0: merged into form::Form
Sourcepub fn pages(self, pages: u8) -> Self
๐Deprecated since 1.2.0: merged into form::Form
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.
Sourcepub fn style(self, style: Style) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn style(self, style: Style) -> Self
Base style.
๐Deprecated since 1.2.0: merged into form::Form
Style for navigation.
Sourcepub fn title_style(self, title_style: Style) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn title_style(self, title_style: Style) -> Self
Style for the title.
Sourcepub fn block(self, block: Block<'a>) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn block(self, block: Block<'a>) -> Self
Block for border
pub fn next_page_mark(self, txt: &'a str) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn prev_page_mark(self, txt: &'a str) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn first_page_mark(self, txt: &'a str) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn last_page_mark(self, txt: &'a str) -> Self
๐Deprecated since 1.2.0: merged into form::Form
Sourcepub fn styles(self, styles: PagerStyle) -> Self
๐Deprecated since 1.2.0: merged into form::Form
pub fn styles(self, styles: PagerStyle) -> Self
Set all styles.
Sourcepub fn layout_size(&self, area: Rect) -> Size
๐Deprecated since 1.2.0: merged into form::Form
pub fn layout_size(&self, area: Rect) -> Size
Calculate the layout size for one column.
pub fn inner(&self, area: Rect) -> Rect
๐Deprecated since 1.2.0: merged into form::Form
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 moreSourceยงtype State = PageNavigationState
type State = PageNavigationState
State associated with the stateful widget. Read more
Auto 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