pub struct DualPager<'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 two-column arrangement.
Implementations§
Source§impl<'a> DualPager<'a>
impl<'a> DualPager<'a>
Sourcepub fn layout(self, page_layout: PagerLayout) -> Self
pub fn layout(self, page_layout: PagerLayout) -> Self
Set 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 divider_style(self, divider_style: Style) -> Self
pub fn divider_style(self, divider_style: Style) -> Self
Style for the divider.
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 inner_left(&self, area: Rect) -> Rect
pub fn inner_left(&self, area: Rect) -> Rect
Calculate the left view area.
Sourcepub fn inner_right(&self, area: Rect) -> Rect
pub fn inner_right(&self, area: Rect) -> Rect
Calculate the right view area.
Sourcepub fn into_buffer<'b>(
self,
area: Rect,
buf: &'b mut Buffer,
state: &mut DualPagerState,
) -> DualPagerBuffer<'b>
pub fn into_buffer<'b>( self, area: Rect, buf: &'b mut Buffer, state: &mut DualPagerState, ) -> DualPagerBuffer<'b>
Run the layout and create the second stage.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DualPager<'a>
impl<'a> !RefUnwindSafe for DualPager<'a>
impl<'a> !Send for DualPager<'a>
impl<'a> !Sync for DualPager<'a>
impl<'a> Unpin for DualPager<'a>
impl<'a> !UnwindSafe for DualPager<'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