pub struct BaseDialogState {
pub area: Rect,
pub widget_area: Rect,
pub ok: ButtonState,
pub cancel: ButtonState,
}Fields§
§area: RectArea for the dialog. read only set with each render.
widget_area: RectArea for the dialog-content. read only set with each render.
ok: ButtonStateok-button
cancel: ButtonStatecancel-button
Implementations§
Trait Implementations§
Source§impl Clone for BaseDialogState
impl Clone for BaseDialogState
Source§fn clone(&self) -> BaseDialogState
fn clone(&self) -> BaseDialogState
Returns a duplicate 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 Debug for BaseDialogState
impl Debug for BaseDialogState
Source§impl Default for BaseDialogState
impl Default for BaseDialogState
Source§fn default() -> BaseDialogState
fn default() -> BaseDialogState
Returns the “default value” for a type. Read more
Source§impl HandleEvent<Event, Dialog, DialogOutcome> for BaseDialogState
impl HandleEvent<Event, Dialog, DialogOutcome> for BaseDialogState
Source§impl HasFocus for BaseDialogState
impl HasFocus for BaseDialogState
Source§fn build(&self, builder: &mut FocusBuilder)
fn build(&self, builder: &mut FocusBuilder)
Build the focus-structure for the container/widget.
Build the focus-structure for the container/widget.
This is called when the default navigation will be
overridden by the builder. Read more
Declares how the widget interacts with focus. Read more
Source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Focused?
Source§fn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
Just lost focus.
Source§fn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
Just gained focus.
Auto Trait Implementations§
impl !Freeze for BaseDialogState
impl !RefUnwindSafe for BaseDialogState
impl !Send for BaseDialogState
impl !Sync for BaseDialogState
impl Unpin for BaseDialogState
impl !UnwindSafe for BaseDialogState
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