mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (4714e95)
This commit is contained in:
@@ -385,9 +385,9 @@ Emitted when the node's minimum size changes.
|
||||
|
||||
**mouse_entered** **(** **)**
|
||||
|
||||
Emitted when the mouse enters the control's ``Rect`` area, provided its :ref:`mouse_filter<class_Control_property_mouse_filter>` lets the event reach it.
|
||||
Emitted when the mouse cursor enters the control's visible area, that is not occluded behind other Controls or Windows, provided its :ref:`mouse_filter<class_Control_property_mouse_filter>` lets the event reach it and regardless if it's currently focused or not.
|
||||
|
||||
\ **Note:** :ref:`mouse_entered<class_Control_signal_mouse_entered>` will not be emitted if the mouse enters a child **Control** node before entering the parent's ``Rect`` area, at least until the mouse is moved to reach the parent's ``Rect`` area.
|
||||
\ **Note:** :ref:`CanvasItem.z_index<class_CanvasItem_property_z_index>` doesn't affect, which Control receives the signal.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -399,11 +399,11 @@ Emitted when the mouse enters the control's ``Rect`` area, provided its :ref:`mo
|
||||
|
||||
**mouse_exited** **(** **)**
|
||||
|
||||
Emitted when the mouse leaves the control's ``Rect`` area, provided its :ref:`mouse_filter<class_Control_property_mouse_filter>` lets the event reach it.
|
||||
Emitted when the mouse cursor leaves the control's visible area, that is not occluded behind other Controls or Windows, provided its :ref:`mouse_filter<class_Control_property_mouse_filter>` lets the event reach it and regardless if it's currently focused or not.
|
||||
|
||||
\ **Note:** :ref:`mouse_exited<class_Control_signal_mouse_exited>` will be emitted if the mouse enters a child **Control** node, even if the mouse cursor is still inside the parent's ``Rect`` area.
|
||||
\ **Note:** :ref:`CanvasItem.z_index<class_CanvasItem_property_z_index>` doesn't affect, which Control receives the signal.
|
||||
|
||||
If you want to check whether the mouse truly left the area, ignoring any top nodes, you can use code like this:
|
||||
\ **Note:** If you want to check whether the mouse truly left the area, ignoring any top nodes, you can use code like this:
|
||||
|
||||
::
|
||||
|
||||
@@ -1073,7 +1073,9 @@ Sent when the node changes size. Use :ref:`size<class_Control_property_size>` to
|
||||
|
||||
**NOTIFICATION_MOUSE_ENTER** = ``41``
|
||||
|
||||
Sent when the mouse pointer enters the node.
|
||||
Sent when the mouse cursor enters the control's visible area, that is not occluded behind other Controls or Windows, provided its :ref:`mouse_filter<class_Control_property_mouse_filter>` lets the event reach it and regardless if it's currently focused or not.
|
||||
|
||||
\ **Note:** :ref:`CanvasItem.z_index<class_CanvasItem_property_z_index>` doesn't affect, which Control receives the notification.
|
||||
|
||||
.. _class_Control_constant_NOTIFICATION_MOUSE_EXIT:
|
||||
|
||||
@@ -1081,7 +1083,9 @@ Sent when the mouse pointer enters the node.
|
||||
|
||||
**NOTIFICATION_MOUSE_EXIT** = ``42``
|
||||
|
||||
Sent when the mouse pointer exits the node.
|
||||
Sent when the mouse cursor leaves the control's visible area, that is not occluded behind other Controls or Windows, provided its :ref:`mouse_filter<class_Control_property_mouse_filter>` lets the event reach it and regardless if it's currently focused or not.
|
||||
|
||||
\ **Note:** :ref:`CanvasItem.z_index<class_CanvasItem_property_z_index>` doesn't affect, which Control receives the notification.
|
||||
|
||||
.. _class_Control_constant_NOTIFICATION_FOCUS_ENTER:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user