Enum godot::engine::notify::WindowNotification
#[repr(i32)]pub enum WindowNotification {
Show 49 variants
VisibilityChangedOrNodeRecacheRequested = 30,
ThemeChanged = 32,
EnterTree = 10,
ExitTree = 11,
MovedInParent = 12,
Ready = 13,
Paused = 14,
Unpaused = 15,
PhysicsProcess = 16,
Process = 17,
Parented = 18,
Unparented = 19,
SceneInstantiated = 20,
DragBegin = 21,
DragEnd = 22,
PathRenamed = 23,
ChildOrderChanged = 24,
InternalProcess = 25,
InternalPhysicsProcess = 26,
PostEnterTree = 27,
Disabled = 28,
Enabled = 29,
ResetPhysicsInterpolation = 2_001,
EditorPreSave = 9_001,
EditorPostSave = 9_002,
WmMouseEnter = 1_002,
WmMouseExit = 1_003,
WmWindowFocusIn = 1_004,
WmWindowFocusOut = 1_005,
WmCloseRequest = 1_006,
WmGoBackRequest = 1_007,
WmSizeChanged = 1_008,
WmDpiChange = 1_009,
VpMouseEnter = 1_010,
VpMouseExit = 1_011,
OsMemoryWarning = 2_009,
TranslationChanged = 2_010,
WmAbout = 2_011,
Crash = 2_012,
OsImeUpdate = 2_013,
ApplicationResumed = 2_014,
ApplicationPaused = 2_015,
ApplicationFocusIn = 2_016,
ApplicationFocusOut = 2_017,
TextServerChanged = 2_018,
Postinitialize = 0,
Predelete = 1,
ExtensionReloaded = 2,
Unknown(i32),
}
Expand description
Notification type for class Window
.
Makes it easier to keep an overview all possible notification variants for a given class, including notifications defined in base classes.
Variants§
VisibilityChangedOrNodeRecacheRequested = 30
ThemeChanged = 32
EnterTree = 10
ExitTree = 11
MovedInParent = 12
Ready = 13
Paused = 14
Unpaused = 15
PhysicsProcess = 16
Process = 17
Parented = 18
Unparented = 19
SceneInstantiated = 20
DragBegin = 21
DragEnd = 22
PathRenamed = 23
ChildOrderChanged = 24
InternalProcess = 25
InternalPhysicsProcess = 26
PostEnterTree = 27
Disabled = 28
Enabled = 29
ResetPhysicsInterpolation = 2_001
EditorPreSave = 9_001
EditorPostSave = 9_002
WmMouseEnter = 1_002
WmMouseExit = 1_003
WmWindowFocusIn = 1_004
WmWindowFocusOut = 1_005
WmCloseRequest = 1_006
WmGoBackRequest = 1_007
WmSizeChanged = 1_008
WmDpiChange = 1_009
VpMouseEnter = 1_010
VpMouseExit = 1_011
OsMemoryWarning = 2_009
TranslationChanged = 2_010
WmAbout = 2_011
Crash = 2_012
OsImeUpdate = 2_013
ApplicationResumed = 2_014
ApplicationPaused = 2_015
ApplicationFocusIn = 2_016
ApplicationFocusOut = 2_017
TextServerChanged = 2_018
Postinitialize = 0
Predelete = 1
ExtensionReloaded = 2
Unknown(i32)
Since Godot represents notifications as integers, it’s always possible that a notification outside the known types
is received. For example, the user can manually issue notifications through Object::notify()
.
Trait Implementations§
§impl Clone for WindowNotification
impl Clone for WindowNotification
§fn clone(&self) -> WindowNotification
fn clone(&self) -> WindowNotification
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 more§impl Debug for WindowNotification
impl Debug for WindowNotification
§impl From<i32> for WindowNotification
impl From<i32> for WindowNotification
§fn from(enumerator: i32) -> WindowNotification
fn from(enumerator: i32) -> WindowNotification
Always succeeds, mapping unknown integers to the Unknown
variant.
§impl Hash for WindowNotification
impl Hash for WindowNotification
§impl Ord for WindowNotification
impl Ord for WindowNotification
§fn cmp(&self, other: &WindowNotification) -> Ordering
fn cmp(&self, other: &WindowNotification) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for WindowNotification
impl PartialEq for WindowNotification
§fn eq(&self, other: &WindowNotification) -> bool
fn eq(&self, other: &WindowNotification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for WindowNotification
impl PartialOrd for WindowNotification
§fn partial_cmp(&self, other: &WindowNotification) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowNotification) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for WindowNotification
impl Eq for WindowNotification
impl StructuralPartialEq for WindowNotification
Auto Trait Implementations§
impl Freeze for WindowNotification
impl RefUnwindSafe for WindowNotification
impl Send for WindowNotification
impl Sync for WindowNotification
impl Unpin for WindowNotification
impl UnwindSafe for WindowNotification
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