pub struct Pager<W>{ /* private fields */ }
Expand description
Renders widgets for one page of a GenericLayout.
Implementations§
Source§impl<W> Pager<W>
impl<W> Pager<W>
pub fn new() -> Self
Sourcepub fn layout(self, layout: Rc<RefCell<GenericLayout<W>>>) -> Self
pub fn layout(self, layout: Rc<RefCell<GenericLayout<W>>>) -> Self
Layout
Sourcepub fn label_style(self, style: Style) -> Self
pub fn label_style(self, style: Style) -> Self
Style for auto-labels.
Sourcepub fn label_alignment(self, alignment: Alignment) -> Self
pub fn label_alignment(self, alignment: Alignment) -> Self
Alignment for auto-labels.
Sourcepub fn caption_style(self, style: CaptionStyle) -> Self
pub fn caption_style(self, style: CaptionStyle) -> Self
Style for auto-captions
Sourcepub fn styles(self, styles: PagerStyle) -> Self
pub fn styles(self, styles: PagerStyle) -> Self
Set all styles.
Sourcepub fn into_buffer<'b>(
self,
area: Rect,
buf: Rc<RefCell<&'b mut Buffer>>,
) -> PagerBuffer<'b, W>
pub fn into_buffer<'b>( self, area: Rect, buf: Rc<RefCell<&'b mut Buffer>>, ) -> PagerBuffer<'b, W>
Create the second stage.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Pager<W>
impl<W> !RefUnwindSafe for Pager<W>
impl<W> !Send for Pager<W>
impl<W> !Sync for Pager<W>
impl<W> Unpin for Pager<W>
impl<W> !UnwindSafe for Pager<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