Enum godot::engine::notify::NodeNotification
#[repr(i32)]pub enum NodeNotification {
Show 47 variants
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 Node
.
Makes it easier to keep an overview all possible notification variants for a given class, including notifications defined in base classes.
Variants§
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 NodeNotification
impl Clone for NodeNotification
§fn clone(&self) -> NodeNotification
fn clone(&self) -> NodeNotification
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 NodeNotification
impl Debug for NodeNotification
§impl From<i32> for NodeNotification
impl From<i32> for NodeNotification
§fn from(enumerator: i32) -> NodeNotification
fn from(enumerator: i32) -> NodeNotification
Always succeeds, mapping unknown integers to the Unknown
variant.
§impl Hash for NodeNotification
impl Hash for NodeNotification
§impl Ord for NodeNotification
impl Ord for NodeNotification
§fn cmp(&self, other: &NodeNotification) -> Ordering
fn cmp(&self, other: &NodeNotification) -> 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 NodeNotification
impl PartialEq for NodeNotification
§fn eq(&self, other: &NodeNotification) -> bool
fn eq(&self, other: &NodeNotification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for NodeNotification
impl PartialOrd for NodeNotification
§fn partial_cmp(&self, other: &NodeNotification) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeNotification) -> 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 NodeNotification
impl Eq for NodeNotification
impl StructuralPartialEq for NodeNotification
Auto Trait Implementations§
impl Freeze for NodeNotification
impl RefUnwindSafe for NodeNotification
impl Send for NodeNotification
impl Sync for NodeNotification
impl Unpin for NodeNotification
impl UnwindSafe for NodeNotification
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