Enum fyrox_ui::messagebox::MessageBoxMessage
source · pub enum MessageBoxMessage {
Open {
title: Option<String>,
text: Option<String>,
},
Close(MessageBoxResult),
}Expand description
A set of messages that can be used to communicate with message boxes.
Variants§
Open
Fields
A message that can be used to open message box, and optionally change its title and/or text.
Close(MessageBoxResult)
A message that can be used to close a message box with some result. It can also be read to get the changes
from the UI. See MessageBox docs for examples.
Implementations§
source§impl MessageBoxMessage
impl MessageBoxMessage
sourcepub fn open(
destination: Handle<UiNode>,
direction: MessageDirection,
title: Option<String>,
text: Option<String>
) -> UiMessage
pub fn open( destination: Handle<UiNode>, direction: MessageDirection, title: Option<String>, text: Option<String> ) -> UiMessage
Creates MessageBoxMessage::Open message.
sourcepub fn close(
destination: Handle<UiNode>,
direction: MessageDirection,
value: MessageBoxResult
) -> UiMessage
pub fn close( destination: Handle<UiNode>, direction: MessageDirection, value: MessageBoxResult ) -> UiMessage
Creates MessageBoxMessage::Close message.
Trait Implementations§
source§impl Clone for MessageBoxMessage
impl Clone for MessageBoxMessage
source§fn clone(&self) -> MessageBoxMessage
fn clone(&self) -> MessageBoxMessage
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 MessageBoxMessage
impl Debug for MessageBoxMessage
source§impl PartialEq<MessageBoxMessage> for MessageBoxMessage
impl PartialEq<MessageBoxMessage> for MessageBoxMessage
source§fn eq(&self, other: &MessageBoxMessage) -> bool
fn eq(&self, other: &MessageBoxMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MessageBoxMessage
impl StructuralEq for MessageBoxMessage
impl StructuralPartialEq for MessageBoxMessage
Auto Trait Implementations§
impl RefUnwindSafe for MessageBoxMessage
impl Send for MessageBoxMessage
impl Sync for MessageBoxMessage
impl Unpin for MessageBoxMessage
impl UnwindSafe for MessageBoxMessage
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.