pub struct SinglePager<'a> { /* private fields */ }Expand description
Prepare the page-layout for your widgets.
This widget page-breaks the areas for your widgets and allows to render them in a single column.
Implementations§
Source§impl<'a> SinglePager<'a>
impl<'a> SinglePager<'a>
Sourcepub fn layout(self, page_layout: PagerLayout) -> Self
pub fn layout(self, page_layout: PagerLayout) -> Self
Page layout.
Sourcepub fn struct_layout(self, page_layout: StructuredLayout) -> Self
pub fn struct_layout(self, page_layout: StructuredLayout) -> Self
Set page layout from StructLayout
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_width(&self, area: Rect) -> u16
pub fn layout_width(&self, area: Rect) -> u16
Calculate the layout width.
Sourcepub fn into_buffer<'b>(
self,
area: Rect,
buf: &'b mut Buffer,
state: &mut SinglePagerState,
) -> SinglePagerBuffer<'b>
pub fn into_buffer<'b>( self, area: Rect, buf: &'b mut Buffer, state: &mut SinglePagerState, ) -> SinglePagerBuffer<'b>
Run the layout and create the second stage.
Trait Implementations§
Source§impl<'a> Clone for SinglePager<'a>
impl<'a> Clone for SinglePager<'a>
Source§fn clone(&self) -> SinglePager<'a>
fn clone(&self) -> SinglePager<'a>
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> Debug for SinglePager<'a>
impl<'a> Debug for SinglePager<'a>
Source§impl<'a> Default for SinglePager<'a>
impl<'a> Default for SinglePager<'a>
Source§fn default() -> SinglePager<'a>
fn default() -> SinglePager<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SinglePager<'a>
impl<'a> !RefUnwindSafe for SinglePager<'a>
impl<'a> !Send for SinglePager<'a>
impl<'a> !Sync for SinglePager<'a>
impl<'a> Unpin for SinglePager<'a>
impl<'a> !UnwindSafe for SinglePager<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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