pub struct BaseDialog<'a> { /* private fields */ }Expand description
Renders the frame and the Ok/Cancel buttons for a dialog window.
After rendering BaseDialogState::widget_area is available to render any content.
Implementations§
Source§impl<'a> BaseDialog<'a>
impl<'a> BaseDialog<'a>
pub fn new() -> Self
pub fn styles(self, styles: BaseDialogStyle) -> Self
Button style.
Sourcepub fn left(self, left: Constraint) -> Self
pub fn left(self, left: Constraint) -> Self
Margin constraint for the left side.
Sourcepub fn top(self, top: Constraint) -> Self
pub fn top(self, top: Constraint) -> Self
Margin constraint for the top side.
Sourcepub fn right(self, right: Constraint) -> Self
pub fn right(self, right: Constraint) -> Self
Margin constraint for the right side.
Sourcepub fn bottom(self, bottom: Constraint) -> Self
pub fn bottom(self, bottom: Constraint) -> Self
Margin constraint for the bottom side.
Sourcepub fn width(self, width: Constraint) -> Self
pub fn width(self, width: Constraint) -> Self
Constraint for the width.
Sourcepub fn height(self, height: Constraint) -> Self
pub fn height(self, height: Constraint) -> Self
Constraint for the height.
Trait Implementations§
Source§impl<'a> Debug for BaseDialog<'a>
impl<'a> Debug for BaseDialog<'a>
Source§impl<'a> Default for BaseDialog<'a>
impl<'a> Default for BaseDialog<'a>
Source§fn default() -> BaseDialog<'a>
fn default() -> BaseDialog<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> StatefulWidget for BaseDialog<'a>
impl<'a> StatefulWidget for BaseDialog<'a>
Auto Trait Implementations§
impl<'a> Freeze for BaseDialog<'a>
impl<'a> RefUnwindSafe for BaseDialog<'a>
impl<'a> Send for BaseDialog<'a>
impl<'a> Sync for BaseDialog<'a>
impl<'a> Unpin for BaseDialog<'a>
impl<'a> UnwindSafe for BaseDialog<'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> 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