NOTIFICATION_RESIZED:null = 40
Sent when the node changes size. Use
size to get the new size.
NOTIFICATION_MOUSE_ENTER:null = 41
Sent when the mouse cursor enters the control's (or any child control's) visible area, that is not occluded behind other Controls or Windows, provided its
mouse_filter lets the event reach it and regardless if it's currently focused or not.
Note: [member CanvasItem.z_index] doesn't affect which Control receives the notification.
See also
NOTIFICATION_MOUSE_ENTER_SELF.
NOTIFICATION_MOUSE_EXIT:null = 42
Sent when the mouse cursor leaves the control's (and all child control's) visible area, that is not occluded behind other Controls or Windows, provided its
mouse_filter lets the event reach it and regardless if it's currently focused or not.
Note: [member CanvasItem.z_index] doesn't affect which Control receives the notification.
See also
NOTIFICATION_MOUSE_EXIT_SELF.
NOTIFICATION_MOUSE_ENTER_SELF:null = 60
Sent when the mouse cursor enters the control's visible area, that is not occluded behind other Controls or Windows, provided its
mouse_filter lets the event reach it and regardless if it's currently focused or not.
Note: [member CanvasItem.z_index] doesn't affect which Control receives the notification.
See also
NOTIFICATION_MOUSE_ENTER.
NOTIFICATION_MOUSE_EXIT_SELF:null = 61
Sent when the mouse cursor leaves the control's visible area, that is not occluded behind other Controls or Windows, provided its
mouse_filter lets the event reach it and regardless if it's currently focused or not.
Note: [member CanvasItem.z_index] doesn't affect which Control receives the notification.
See also
NOTIFICATION_MOUSE_EXIT.
NOTIFICATION_FOCUS_ENTER:null = 43
Sent when the node grabs focus.
NOTIFICATION_FOCUS_EXIT:null = 44
Sent when the node loses focus.
NOTIFICATION_THEME_CHANGED:null = 45
Sent when the node needs to refresh its theme items. This happens in one of the following cases:
- The
theme property is changed on this node or any of its ancestors.
- The
theme_type_variation property is changed on this node.
- One of the node's theme property overrides is changed.
- The node enters the scene tree.
Note: As an optimization, this notification won't be sent from changes that occur while this node is outside of the scene tree. Instead, all of the theme item updates can be applied at once when the node enters the scene tree.
Note: This notification is received alongside [constant Node.NOTIFICATION_ENTER_TREE], so if you are instantiating a scene, the child nodes will not be initialized yet. You can use it to setup theming for this node, child nodes created from script, or if you want to access child nodes added in the editor, make sure the node is ready using [method Node.is_node_ready].
func _notification(what):
if what == NOTIFICATION_THEME_CHANGED:
if not is_node_ready():
await ready # Wait until ready signal.
$Label.add_theme_color_override("font_color", Color.YELLOW)
NOTIFICATION_SCROLL_BEGIN:null = 47
Sent when this node is inside a
ScrollContainer which has begun being scrolled when dragging the scrollable area
with a touch event. This notification is
not sent when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events.
Note: This signal is only emitted on Android or iOS, or on desktop/web platforms when [member ProjectSettings.input_devices/pointing/emulate_touch_from_mouse] is enabled.
NOTIFICATION_SCROLL_END:null = 48
Sent when this node is inside a
ScrollContainer which has stopped being scrolled when dragging the scrollable area
with a touch event. This notification is
not sent when scrolling by dragging the scrollbar, scrolling with the mouse wheel or scrolling with keyboard/gamepad events.
Note: This signal is only emitted on Android or iOS, or on desktop/web platforms when [member ProjectSettings.input_devices/pointing/emulate_touch_from_mouse] is enabled.
NOTIFICATION_LAYOUT_DIRECTION_CHANGED:null = 49
Sent when the control layout direction is changed from LTR or RTL or vice versa. This notification is propagated to child Control nodes as result of a change to
layout_direction.