pub struct MsgDialogState {
pub area: Rect,
pub inner: Rect,
pub active: Cell<bool>,
pub message_title: RefCell<String>,
pub message: RefCell<String>,
/* private fields */
}Expand description
State & event handling.
Fields§
§area: RectFull area. readonly. renewed for each render.
inner: RectArea inside the borders. readonly. renewed for each render.
active: Cell<bool>Dialog is active. read+write
message_title: RefCell<String>Dialog title read+write
message: RefCell<String>Dialog text. read+write
Implementations§
Source§impl MsgDialogState
impl MsgDialogState
Trait Implementations§
Source§impl Clone for MsgDialogState
impl Clone for MsgDialogState
Source§fn clone(&self) -> MsgDialogState
fn clone(&self) -> MsgDialogState
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 MsgDialogState
impl Debug for MsgDialogState
Source§impl Default for MsgDialogState
impl Default for MsgDialogState
Auto Trait Implementations§
impl !Freeze for MsgDialogState
impl !RefUnwindSafe for MsgDialogState
impl !Send for MsgDialogState
impl !Sync for MsgDialogState
impl Unpin for MsgDialogState
impl !UnwindSafe for MsgDialogState
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