Clarify documentation and indicate that rect_clip_content affects only CanvasItem based nodes.

Resolves #37683

(cherry picked from commit 3f19b5e0b3)
This commit is contained in:
Markus Sauermann 2020-04-09 17:42:58 +02:00 committed by Rémi Verschelde
parent 58fcbc2b06
commit 7607fafda1
1 changed files with 1 additions and 1 deletions

View File

@ -846,7 +846,7 @@
Controls whether the control will be able to receive mouse button input events through [method _gui_input] and how these events should be handled. Also controls whether the control can receive the [signal mouse_entered], and [signal mouse_exited] signals. See the constants to learn what each does. Controls whether the control will be able to receive mouse button input events through [method _gui_input] and how these events should be handled. Also controls whether the control can receive the [signal mouse_entered], and [signal mouse_exited] signals. See the constants to learn what each does.
</member> </member>
<member name="rect_clip_content" type="bool" setter="set_clip_contents" getter="is_clipping_contents" default="false"> <member name="rect_clip_content" type="bool" setter="set_clip_contents" getter="is_clipping_contents" default="false">
Enables whether rendering of children should be clipped to this control's rectangle. If [code]true[/code], parts of a child which would be visibly outside of this control's rectangle will not be rendered. Enables whether rendering of [CanvasItem] based children should be clipped to this control's rectangle. If [code]true[/code], parts of a child which would be visibly outside of this control's rectangle will not be rendered.
</member> </member>
<member name="rect_global_position" type="Vector2" setter="_set_global_position" getter="get_global_position"> <member name="rect_global_position" type="Vector2" setter="_set_global_position" getter="get_global_position">
The node's global position, relative to the world (usually to the top-left corner of the window). The node's global position, relative to the world (usually to the top-left corner of the window).