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