Enum godot::engine::notify::ControlNotification
#[repr(i32)]pub enum ControlNotification {
Show 65 variants
Resized = 40,
MouseEnter = 41,
MouseExit = 42,
MouseEnterSelf = 60,
MouseExitSelf = 61,
FocusEnter = 43,
FocusExit = 44,
ThemeChanged = 45,
ScrollBegin = 47,
ScrollEnd = 48,
LayoutDirectionChanged = 49,
TransformChanged = 2_000,
LocalTransformChanged = 35,
DrawOrNodeRecacheRequested = 30,
VisibilityChangedOrNodeRecacheRequested = 31,
EnterCanvas = 32,
ExitCanvas = 33,
World2dChanged = 36,
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 Control
.
Makes it easier to keep an overview all possible notification variants for a given class, including notifications defined in base classes.
Variants§
Resized = 40
MouseEnter = 41
MouseExit = 42
MouseEnterSelf = 60
MouseExitSelf = 61
FocusEnter = 43
FocusExit = 44
ThemeChanged = 45
ScrollBegin = 47
ScrollEnd = 48
LayoutDirectionChanged = 49
TransformChanged = 2_000
LocalTransformChanged = 35
DrawOrNodeRecacheRequested = 30
VisibilityChangedOrNodeRecacheRequested = 31
EnterCanvas = 32
ExitCanvas = 33
World2dChanged = 36
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 ControlNotification
impl Clone for ControlNotification
§fn clone(&self) -> ControlNotification
fn clone(&self) -> ControlNotification
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 ControlNotification
impl Debug for ControlNotification
§impl From<i32> for ControlNotification
impl From<i32> for ControlNotification
§fn from(enumerator: i32) -> ControlNotification
fn from(enumerator: i32) -> ControlNotification
Always succeeds, mapping unknown integers to the Unknown
variant.
§impl Hash for ControlNotification
impl Hash for ControlNotification
§impl Ord for ControlNotification
impl Ord for ControlNotification
§fn cmp(&self, other: &ControlNotification) -> Ordering
fn cmp(&self, other: &ControlNotification) -> 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 ControlNotification
impl PartialEq for ControlNotification
§fn eq(&self, other: &ControlNotification) -> bool
fn eq(&self, other: &ControlNotification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ControlNotification
impl PartialOrd for ControlNotification
§fn partial_cmp(&self, other: &ControlNotification) -> Option<Ordering>
fn partial_cmp(&self, other: &ControlNotification) -> 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 ControlNotification
impl Eq for ControlNotification
impl StructuralPartialEq for ControlNotification
Auto Trait Implementations§
impl Freeze for ControlNotification
impl RefUnwindSafe for ControlNotification
impl Send for ControlNotification
impl Sync for ControlNotification
impl Unpin for ControlNotification
impl UnwindSafe for ControlNotification
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