pub struct SinglePager<'a, W>{ /* private fields */ }👎Deprecated since 1.2.0: merged into form::Form
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 layout(self, layout: GenericLayout<W>) -> Self
👎Deprecated since 1.2.0: merged into form::Form
pub fn layout(self, layout: GenericLayout<W>) -> Self
Set the layout. If no layout is set here the layout is taken from the state.
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.
Sourcepub fn auto_label(self, auto: bool) -> Self
👎Deprecated since 1.2.0: merged into form::Form
pub fn auto_label(self, auto: bool) -> Self
Render the label automatically when rendering the widget.
Default: true
Sourcepub fn label_style(self, style: Style) -> Self
👎Deprecated since 1.2.0: merged into form::Form
pub fn label_style(self, style: Style) -> Self
Style for text labels.
Sourcepub fn label_alignment(self, alignment: Alignment) -> Self
👎Deprecated since 1.2.0: merged into form::Form
pub fn label_alignment(self, alignment: Alignment) -> Self
Alignment for text labels.
👎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 page size.
pub fn inner(&self, area: Rect) -> Rect
👎Deprecated since 1.2.0: merged into form::Form
Sourcepub fn into_buffer(
self,
area: Rect,
buf: &'a mut Buffer,
state: &'a mut SinglePagerState<W>,
) -> SinglePagerBuffer<'a, W>
👎Deprecated since 1.2.0: merged into form::Form
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 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 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§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>where
W: Unpin,
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