Struct rat_widget::msgdialog::MsgDialogState
source · pub struct MsgDialogState {
pub area: Rect,
pub inner: Rect,
pub active: Cell<bool>,
pub message_title: RefCell<String>,
pub message: RefCell<String>,
pub button: RefCell<ButtonState>,
pub paragraph: RefCell<ParagraphState>,
pub non_exhaustive: NonExhaustive,
}Expand description
State & event handling.
Fields§
§area: RectFull area.
inner: RectArea inside the borders.
active: Cell<bool>Dialog is active.
message_title: RefCell<String>Dialog title
message: RefCell<String>Dialog text.
Ok button
paragraph: RefCell<ParagraphState>message-text
non_exhaustive: NonExhaustiveImplementations§
source§impl MsgDialogState
impl MsgDialogState
sourcepub fn set_active(&self, active: bool)
pub fn set_active(&self, active: bool)
Show the dialog.
Trait Implementations§
source§impl Clone for MsgDialogState
impl Clone for MsgDialogState
source§fn clone(&self) -> MsgDialogState
fn clone(&self) -> MsgDialogState
Returns a copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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