pub enum WindowMessage {
Open {
center: bool,
},
OpenModal {
center: bool,
},
Close,
Minimize(bool),
CanMinimize(bool),
CanClose(bool),
CanResize(bool),
MoveStart,
Move(Vector2<f32>),
MoveEnd,
Title(WindowTitle),
}Variants§
Open
Opens a window.
OpenModal
Opens window in modal mode. Modal mode does not blocks current thread, instead it just restricts mouse and keyboard events only to window so other content is not clickable/type-able. Closing a window removes that restriction.
Close
Closes a window.
Minimize(bool)
Minimizes a window - it differs from classic minimization in window managers, instead of putting window in system tray, it just collapses internal content panel.
CanMinimize(bool)
Whether or not window can be minimized by _ mark. false hides _ mark.
CanClose(bool)
Whether or not window can be closed by X mark. false hides X mark.
CanResize(bool)
Whether or not window can be resized by resize grips.
MoveStart
Indicates that move has been started. You should never send this message by hand.
Move(Vector2<f32>)
Moves window to a new position in local coordinates.
MoveEnd
Indicated that move has ended. You should never send this message by hand.
Title(WindowTitle)
Sets new window title.
Implementations§
Source§impl WindowMessage
impl WindowMessage
pub fn open( destination: Handle<UiNode>, direction: MessageDirection, center: bool, ) -> UiMessage
pub fn open_modal( destination: Handle<UiNode>, direction: MessageDirection, center: bool, ) -> UiMessage
pub fn close( destination: Handle<UiNode>, direction: MessageDirection, ) -> UiMessage
pub fn minimize( destination: Handle<UiNode>, direction: MessageDirection, value: bool, ) -> UiMessage
pub fn can_minimize( destination: Handle<UiNode>, direction: MessageDirection, value: bool, ) -> UiMessage
pub fn can_close( destination: Handle<UiNode>, direction: MessageDirection, value: bool, ) -> UiMessage
pub fn can_resize( destination: Handle<UiNode>, direction: MessageDirection, value: bool, ) -> UiMessage
pub fn move_start( destination: Handle<UiNode>, direction: MessageDirection, ) -> UiMessage
pub fn move_to( destination: Handle<UiNode>, direction: MessageDirection, value: Vector2<f32>, ) -> UiMessage
pub fn move_end( destination: Handle<UiNode>, direction: MessageDirection, ) -> UiMessage
pub fn title( destination: Handle<UiNode>, direction: MessageDirection, value: WindowTitle, ) -> UiMessage
Trait Implementations§
Source§impl Clone for WindowMessage
impl Clone for WindowMessage
Source§fn clone(&self) -> WindowMessage
fn clone(&self) -> WindowMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WindowMessage
impl Debug for WindowMessage
Source§impl PartialEq for WindowMessage
impl PartialEq for WindowMessage
impl StructuralPartialEq for WindowMessage
Auto Trait Implementations§
impl Freeze for WindowMessage
impl !RefUnwindSafe for WindowMessage
impl Send for WindowMessage
impl Sync for WindowMessage
impl Unpin for WindowMessage
impl !UnwindSafe for WindowMessage
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
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>
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>
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 moreSource§impl<T> MessageData for T
impl<T> MessageData for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PropertyValue for Twhere
T: Debug + 'static,
impl<T> PropertyValue for Twhere
T: Debug + 'static,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.