pub struct Form<'a, W>{ /* private fields */ }๐Deprecated since 1.2.0: merged into form::Form
Expand description
A widget that helps with rendering a Form. Uses a GenericLayout for its layout information. Does no scrolling/paging whatsoever and any widgets out of view are simply not rendered.
Implementationsยง
Sourceยงimpl<'a, W> Form<'a, W>
impl<'a, W> Form<'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 auto-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 auto-labels.
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
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 FormState<W>,
) -> FormBuffer<'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 FormState<W>, ) -> FormBuffer<'a, W>
Render the page navigation and create the FormBuffer that will do the actual rendering.
Trait Implementationsยง
Auto Trait Implementationsยง
impl<'a, W> Freeze for Form<'a, W>
impl<'a, W> !RefUnwindSafe for Form<'a, W>
impl<'a, W> !Send for Form<'a, W>
impl<'a, W> !Sync for Form<'a, W>
impl<'a, W> Unpin for Form<'a, W>where
W: Unpin,
impl<'a, W> !UnwindSafe for Form<'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