|
@@ -21,258 +21,258 @@ All User Interface nodes inherit from Control. Features anchors and margins to a
|
|
|
Member Functions
|
|
|
----------------
|
|
|
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`_get_minimum_size<class_Control__get_minimum_size>` **(** **)** virtual |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`_gui_input<class_Control__gui_input>` **(** :ref:`InputEvent<class_inputevent>` event **)** virtual |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`accept_event<class_Control_accept_event>` **(** **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`add_color_override<class_Control_add_color_override>` **(** :ref:`String<class_string>` name, :ref:`Color<class_color>` color **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`add_constant_override<class_Control_add_constant_override>` **(** :ref:`String<class_string>` name, :ref:`int<class_int>` constant **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`add_font_override<class_Control_add_font_override>` **(** :ref:`String<class_string>` name, :ref:`Font<class_font>` font **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`add_icon_override<class_Control_add_icon_override>` **(** :ref:`String<class_string>` name, :ref:`Texture<class_texture>` texture **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`add_shader_override<class_Control_add_shader_override>` **(** :ref:`String<class_string>` name, :ref:`Shader<class_shader>` shader **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`add_style_override<class_Control_add_style_override>` **(** :ref:`String<class_string>` name, :ref:`StyleBox<class_stylebox>` stylebox **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`can_drop_data<class_Control_can_drop_data>` **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`drop_data<class_Control_drop_data>` **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`force_drag<class_Control_force_drag>` **(** :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` preview **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_anchor<class_Control_get_anchor>` **(** :ref:`int<class_int>` margin **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_begin<class_Control_get_begin>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Color<class_color>` | :ref:`get_color<class_Control_get_color>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_combined_minimum_size<class_Control_get_combined_minimum_size>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_constant<class_Control_get_constant>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_cursor_shape<class_Control_get_cursor_shape>` **(** :ref:`Vector2<class_vector2>` position=Vector2( 0, 0 ) **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_custom_minimum_size<class_Control_get_custom_minimum_size>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_default_cursor_shape<class_Control_get_default_cursor_shape>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Object<class_object>` | :ref:`get_drag_data<class_Control_get_drag_data>` **(** :ref:`Vector2<class_vector2>` position **)** virtual |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_end<class_Control_get_end>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_focus_mode<class_Control_get_focus_mode>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`NodePath<class_nodepath>` | :ref:`get_focus_neighbour<class_Control_get_focus_neighbour>` **(** :ref:`int<class_int>` margin **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Control<class_control>` | :ref:`get_focus_owner<class_Control_get_focus_owner>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Font<class_font>` | :ref:`get_font<class_Control_get_font>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_global_position<class_Control_get_global_position>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Rect2<class_rect2>` | :ref:`get_global_rect<class_Control_get_global_rect>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_h_grow_direction<class_Control_get_h_grow_direction>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_h_size_flags<class_Control_get_h_size_flags>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Texture<class_texture>` | :ref:`get_icon<class_Control_get_icon>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_margin<class_Control_get_margin>` **(** :ref:`int<class_int>` margin **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_minimum_size<class_Control_get_minimum_size>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_mouse_filter<class_Control_get_mouse_filter>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_parent_area_size<class_Control_get_parent_area_size>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Control<class_control>` | :ref:`get_parent_control<class_Control_get_parent_control>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_pivot_offset<class_Control_get_pivot_offset>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_position<class_Control_get_position>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Rect2<class_rect2>` | :ref:`get_rect<class_Control_get_rect>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_rotation<class_Control_get_rotation>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_rotation_deg<class_Control_get_rotation_deg>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_scale<class_Control_get_scale>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Vector2<class_vector2>` | :ref:`get_size<class_Control_get_size>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`get_stretch_ratio<class_Control_get_stretch_ratio>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`StyleBox<class_stylebox>` | :ref:`get_stylebox<class_Control_get_stylebox>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`Theme<class_theme>` | :ref:`get_theme<class_Control_get_theme>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`String<class_string>` | :ref:`get_tooltip<class_Control_get_tooltip>` **(** :ref:`Vector2<class_vector2>` at_position=Vector2( 0, 0 ) **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_v_grow_direction<class_Control_get_v_grow_direction>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`get_v_size_flags<class_Control_get_v_size_flags>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`grab_click_focus<class_Control_grab_click_focus>` **(** **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`grab_focus<class_Control_grab_focus>` **(** **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_color<class_Control_has_color>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_color_override<class_Control_has_color_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_constant<class_Control_has_constant>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_constant_override<class_Control_has_constant_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_focus<class_Control_has_focus>` **(** **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_font<class_Control_has_font>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_font_override<class_Control_has_font_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_icon<class_Control_has_icon>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_icon_override<class_Control_has_icon_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_point<class_Control_has_point>` **(** :ref:`Vector2<class_vector2>` point **)** virtual |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_stylebox<class_Control_has_stylebox>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`has_stylebox_override<class_Control_has_stylebox_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_clipping_contents<class_Control_is_clipping_contents>` **(** **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`minimum_size_changed<class_Control_minimum_size_changed>` **(** **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`release_focus<class_Control_release_focus>` **(** **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_anchor<class_Control_set_anchor>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`bool<class_bool>` keep_margin=false, :ref:`bool<class_bool>` push_opposite_anchor=true **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_anchor_and_margin<class_Control_set_anchor_and_margin>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`float<class_float>` offset, :ref:`bool<class_bool>` push_opposite_anchor=false **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_anchors_and_margins_preset<class_Control_set_anchors_and_margins_preset>` **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_anchors_preset<class_Control_set_anchors_preset>` **(** :ref:`int<class_int>` preset, :ref:`bool<class_bool>` keep_margin=false **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_begin<class_Control_set_begin>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_clip_contents<class_Control_set_clip_contents>` **(** :ref:`bool<class_bool>` enable **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_custom_minimum_size<class_Control_set_custom_minimum_size>` **(** :ref:`Vector2<class_vector2>` size **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_default_cursor_shape<class_Control_set_default_cursor_shape>` **(** :ref:`int<class_int>` shape **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_drag_forwarding<class_Control_set_drag_forwarding>` **(** :ref:`Control<class_control>` target **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_drag_preview<class_Control_set_drag_preview>` **(** :ref:`Control<class_control>` control **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_end<class_Control_set_end>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_focus_mode<class_Control_set_focus_mode>` **(** :ref:`int<class_int>` mode **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_focus_neighbour<class_Control_set_focus_neighbour>` **(** :ref:`int<class_int>` margin, :ref:`NodePath<class_nodepath>` neighbour **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_global_position<class_Control_set_global_position>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_h_grow_direction<class_Control_set_h_grow_direction>` **(** :ref:`int<class_int>` direction **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_h_size_flags<class_Control_set_h_size_flags>` **(** :ref:`int<class_int>` flags **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_margin<class_Control_set_margin>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` offset **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_margins_preset<class_Control_set_margins_preset>` **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_mouse_filter<class_Control_set_mouse_filter>` **(** :ref:`int<class_int>` filter **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_pivot_offset<class_Control_set_pivot_offset>` **(** :ref:`Vector2<class_vector2>` pivot_offset **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_position<class_Control_set_position>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_rotation<class_Control_set_rotation>` **(** :ref:`float<class_float>` radians **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_rotation_deg<class_Control_set_rotation_deg>` **(** :ref:`float<class_float>` degrees **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_scale<class_Control_set_scale>` **(** :ref:`Vector2<class_vector2>` scale **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_size<class_Control_set_size>` **(** :ref:`Vector2<class_vector2>` size **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_stretch_ratio<class_Control_set_stretch_ratio>` **(** :ref:`float<class_float>` ratio **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_theme<class_Control_set_theme>` **(** :ref:`Theme<class_theme>` theme **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_tooltip<class_Control_set_tooltip>` **(** :ref:`String<class_string>` tooltip **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_v_grow_direction<class_Control_set_v_grow_direction>` **(** :ref:`int<class_int>` direction **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`set_v_size_flags<class_Control_set_v_size_flags>` **(** :ref:`int<class_int>` flags **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`show_modal<class_Control_show_modal>` **(** :ref:`bool<class_bool>` exclusive=false **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
-| void | :ref:`warp_mouse<class_Control_warp_mouse>` **(** :ref:`Vector2<class_vector2>` to_position **)** |
|
|
|
-+----------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`_get_minimum_size<class_Control__get_minimum_size>` **(** **)** virtual |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`_gui_input<class_Control__gui_input>` **(** :ref:`InputEvent<class_inputevent>` event **)** virtual |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`accept_event<class_Control_accept_event>` **(** **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`add_color_override<class_Control_add_color_override>` **(** :ref:`String<class_string>` name, :ref:`Color<class_color>` color **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`add_constant_override<class_Control_add_constant_override>` **(** :ref:`String<class_string>` name, :ref:`int<class_int>` constant **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`add_font_override<class_Control_add_font_override>` **(** :ref:`String<class_string>` name, :ref:`Font<class_font>` font **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`add_icon_override<class_Control_add_icon_override>` **(** :ref:`String<class_string>` name, :ref:`Texture<class_texture>` texture **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`add_shader_override<class_Control_add_shader_override>` **(** :ref:`String<class_string>` name, :ref:`Shader<class_shader>` shader **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`add_style_override<class_Control_add_style_override>` **(** :ref:`String<class_string>` name, :ref:`StyleBox<class_stylebox>` stylebox **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`can_drop_data<class_Control_can_drop_data>` **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`drop_data<class_Control_drop_data>` **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`force_drag<class_Control_force_drag>` **(** :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` preview **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_anchor<class_Control_get_anchor>` **(** :ref:`int<class_int>` margin **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_begin<class_Control_get_begin>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Color<class_color>` | :ref:`get_color<class_Control_get_color>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_combined_minimum_size<class_Control_get_combined_minimum_size>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_constant<class_Control_get_constant>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_cursor_shape<class_Control_get_cursor_shape>` **(** :ref:`Vector2<class_vector2>` position=Vector2( 0, 0 ) **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_custom_minimum_size<class_Control_get_custom_minimum_size>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_default_cursor_shape<class_Control_get_default_cursor_shape>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Object<class_object>` | :ref:`get_drag_data<class_Control_get_drag_data>` **(** :ref:`Vector2<class_vector2>` position **)** virtual |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_end<class_Control_get_end>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_focus_mode<class_Control_get_focus_mode>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`NodePath<class_nodepath>` | :ref:`get_focus_neighbour<class_Control_get_focus_neighbour>` **(** :ref:`int<class_int>` margin **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Control<class_control>` | :ref:`get_focus_owner<class_Control_get_focus_owner>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Font<class_font>` | :ref:`get_font<class_Control_get_font>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_global_position<class_Control_get_global_position>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Rect2<class_rect2>` | :ref:`get_global_rect<class_Control_get_global_rect>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_h_grow_direction<class_Control_get_h_grow_direction>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_h_size_flags<class_Control_get_h_size_flags>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Texture<class_texture>` | :ref:`get_icon<class_Control_get_icon>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_margin<class_Control_get_margin>` **(** :ref:`int<class_int>` margin **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_minimum_size<class_Control_get_minimum_size>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_mouse_filter<class_Control_get_mouse_filter>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_parent_area_size<class_Control_get_parent_area_size>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Control<class_control>` | :ref:`get_parent_control<class_Control_get_parent_control>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_pivot_offset<class_Control_get_pivot_offset>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_position<class_Control_get_position>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Rect2<class_rect2>` | :ref:`get_rect<class_Control_get_rect>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_rotation<class_Control_get_rotation>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_rotation_deg<class_Control_get_rotation_deg>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_scale<class_Control_get_scale>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Vector2<class_vector2>` | :ref:`get_size<class_Control_get_size>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`get_stretch_ratio<class_Control_get_stretch_ratio>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`StyleBox<class_stylebox>` | :ref:`get_stylebox<class_Control_get_stylebox>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`Theme<class_theme>` | :ref:`get_theme<class_Control_get_theme>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`String<class_string>` | :ref:`get_tooltip<class_Control_get_tooltip>` **(** :ref:`Vector2<class_vector2>` at_position=Vector2( 0, 0 ) **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_v_grow_direction<class_Control_get_v_grow_direction>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`get_v_size_flags<class_Control_get_v_size_flags>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`grab_click_focus<class_Control_grab_click_focus>` **(** **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`grab_focus<class_Control_grab_focus>` **(** **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_color<class_Control_has_color>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_color_override<class_Control_has_color_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_constant<class_Control_has_constant>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_constant_override<class_Control_has_constant_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_focus<class_Control_has_focus>` **(** **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_font<class_Control_has_font>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_font_override<class_Control_has_font_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_icon<class_Control_has_icon>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_icon_override<class_Control_has_icon_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_point<class_Control_has_point>` **(** :ref:`Vector2<class_vector2>` point **)** virtual |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_stylebox<class_Control_has_stylebox>` **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`has_stylebox_override<class_Control_has_stylebox_override>` **(** :ref:`String<class_string>` name **)** const |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_clipping_contents<class_Control_is_clipping_contents>` **(** **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`minimum_size_changed<class_Control_minimum_size_changed>` **(** **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`release_focus<class_Control_release_focus>` **(** **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_anchor<class_Control_set_anchor>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`bool<class_bool>` keep_margin=false, :ref:`bool<class_bool>` push_opposite_anchor=true **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_anchor_and_margin<class_Control_set_anchor_and_margin>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`float<class_float>` offset, :ref:`bool<class_bool>` push_opposite_anchor=false **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_anchors_and_margins_preset<class_Control_set_anchors_and_margins_preset>` **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_anchors_preset<class_Control_set_anchors_preset>` **(** :ref:`int<class_int>` preset, :ref:`bool<class_bool>` keep_margin=false **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_begin<class_Control_set_begin>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_clip_contents<class_Control_set_clip_contents>` **(** :ref:`bool<class_bool>` enable **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_custom_minimum_size<class_Control_set_custom_minimum_size>` **(** :ref:`Vector2<class_vector2>` size **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_default_cursor_shape<class_Control_set_default_cursor_shape>` **(** :ref:`int<class_int>` shape **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_drag_forwarding<class_Control_set_drag_forwarding>` **(** :ref:`Control<class_control>` target **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_drag_preview<class_Control_set_drag_preview>` **(** :ref:`Control<class_control>` control **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_end<class_Control_set_end>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_focus_mode<class_Control_set_focus_mode>` **(** :ref:`int<class_int>` mode **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_focus_neighbour<class_Control_set_focus_neighbour>` **(** :ref:`int<class_int>` margin, :ref:`NodePath<class_nodepath>` neighbour **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_global_position<class_Control_set_global_position>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_h_grow_direction<class_Control_set_h_grow_direction>` **(** :ref:`int<class_int>` direction **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_h_size_flags<class_Control_set_h_size_flags>` **(** :ref:`int<class_int>` flags **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_margin<class_Control_set_margin>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` offset **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_margins_preset<class_Control_set_margins_preset>` **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_mouse_filter<class_Control_set_mouse_filter>` **(** :ref:`int<class_int>` filter **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_pivot_offset<class_Control_set_pivot_offset>` **(** :ref:`Vector2<class_vector2>` pivot_offset **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_position<class_Control_set_position>` **(** :ref:`Vector2<class_vector2>` position **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_rotation<class_Control_set_rotation>` **(** :ref:`float<class_float>` radians **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_rotation_deg<class_Control_set_rotation_deg>` **(** :ref:`float<class_float>` degrees **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_scale<class_Control_set_scale>` **(** :ref:`Vector2<class_vector2>` scale **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_size<class_Control_set_size>` **(** :ref:`Vector2<class_vector2>` size **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_stretch_ratio<class_Control_set_stretch_ratio>` **(** :ref:`float<class_float>` ratio **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_theme<class_Control_set_theme>` **(** :ref:`Theme<class_theme>` theme **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_tooltip<class_Control_set_tooltip>` **(** :ref:`String<class_string>` tooltip **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_v_grow_direction<class_Control_set_v_grow_direction>` **(** :ref:`int<class_int>` direction **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`set_v_size_flags<class_Control_set_v_size_flags>` **(** :ref:`int<class_int>` flags **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`show_modal<class_Control_show_modal>` **(** :ref:`bool<class_bool>` exclusive=false **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
+| void | :ref:`warp_mouse<class_Control_warp_mouse>` **(** :ref:`Vector2<class_vector2>` to_position **)** |
|
|
|
++----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
Signals
|
|
|
-------
|
|
|
|
|
|
.. _class_Control_focus_entered:
|
|
|
|
|
|
-- **focus_entered** **(** **)**
|
|
|
+- **focus_entered** **(** **)**
|
|
|
|
|
|
Emitted when the node gains keyboard focus.
|
|
|
|
|
|
.. _class_Control_focus_exited:
|
|
|
|
|
|
-- **focus_exited** **(** **)**
|
|
|
+- **focus_exited** **(** **)**
|
|
|
|
|
|
Emitted when the node loses keyboard focus.
|
|
|
|
|
|
.. _class_Control_gui_input:
|
|
|
|
|
|
-- **gui_input** **(** :ref:`Object<class_object>` ev **)**
|
|
|
+- **gui_input** **(** :ref:`Object<class_object>` ev **)**
|
|
|
|
|
|
Emitted when the node receives an :ref:`InputEvent<class_inputevent>`.
|
|
|
|
|
|
.. _class_Control_minimum_size_changed:
|
|
|
|
|
|
-- **minimum_size_changed** **(** **)**
|
|
|
+- **minimum_size_changed** **(** **)**
|
|
|
|
|
|
Emitted when the node's minimum size changes.
|
|
|
|
|
|
.. _class_Control_modal_closed:
|
|
|
|
|
|
-- **modal_closed** **(** **)**
|
|
|
+- **modal_closed** **(** **)**
|
|
|
|
|
|
Emitted when a modal ``Control`` is closed. See :ref:`show_modal<class_Control_show_modal>`.
|
|
|
|
|
|
.. _class_Control_mouse_entered:
|
|
|
|
|
|
-- **mouse_entered** **(** **)**
|
|
|
+- **mouse_entered** **(** **)**
|
|
|
|
|
|
Emitted when the mouse enters the control's ``Rect`` area.
|
|
|
|
|
|
.. _class_Control_mouse_exited:
|
|
|
|
|
|
-- **mouse_exited** **(** **)**
|
|
|
+- **mouse_exited** **(** **)**
|
|
|
|
|
|
Emitted when the mouse leaves the control's ``Rect`` area.
|
|
|
|
|
|
.. _class_Control_resized:
|
|
|
|
|
|
-- **resized** **(** **)**
|
|
|
+- **resized** **(** **)**
|
|
|
|
|
|
Emitted when the control changes size.
|
|
|
|
|
|
.. _class_Control_size_flags_changed:
|
|
|
|
|
|
-- **size_flags_changed** **(** **)**
|
|
|
+- **size_flags_changed** **(** **)**
|
|
|
|
|
|
Emitted when one of the size flags changes. See :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
|
|
|
|
@@ -478,13 +478,13 @@ Member Function Description
|
|
|
|
|
|
.. _class_Control__get_minimum_size:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **_get_minimum_size** **(** **)** virtual
|
|
|
+- :ref:`Vector2<class_vector2>` **_get_minimum_size** **(** **)** virtual
|
|
|
|
|
|
Returns the minimum size this Control can shrink to. The node can never be smaller than this minimum size.
|
|
|
|
|
|
.. _class_Control__gui_input:
|
|
|
|
|
|
-- void **_gui_input** **(** :ref:`InputEvent<class_inputevent>` event **)** virtual
|
|
|
+- void **_gui_input** **(** :ref:`InputEvent<class_inputevent>` event **)** virtual
|
|
|
|
|
|
The node's parent forwards input events to this method. Use it to process and accept inputs on UI elements. See :ref:`accept_event<class_Control_accept_event>`.
|
|
|
|
|
@@ -492,486 +492,486 @@ Replaces Godot 2's ``_input_event``.
|
|
|
|
|
|
.. _class_Control_accept_event:
|
|
|
|
|
|
-- void **accept_event** **(** **)**
|
|
|
+- void **accept_event** **(** **)**
|
|
|
|
|
|
Marks an input event as handled. Once you accept an input event, it stops propagating, even to nodes listening to :ref:`Node._unhandled_input<class_Node__unhandled_input>` or :ref:`Node._unhandled_key_input<class_Node__unhandled_key_input>`.
|
|
|
|
|
|
.. _class_Control_add_color_override:
|
|
|
|
|
|
-- void **add_color_override** **(** :ref:`String<class_string>` name, :ref:`Color<class_color>` color **)**
|
|
|
+- void **add_color_override** **(** :ref:`String<class_string>` name, :ref:`Color<class_color>` color **)**
|
|
|
|
|
|
Overrides the color in the theme resource the node uses.
|
|
|
|
|
|
.. _class_Control_add_constant_override:
|
|
|
|
|
|
-- void **add_constant_override** **(** :ref:`String<class_string>` name, :ref:`int<class_int>` constant **)**
|
|
|
+- void **add_constant_override** **(** :ref:`String<class_string>` name, :ref:`int<class_int>` constant **)**
|
|
|
|
|
|
Overrides an integer constant in the theme resource the node uses. If the ``constant[code] is invalid, Godot clears the override. See [member Theme.INVALID_CONSTANT] for more information.
|
|
|
|
|
|
.. _class_Control_add_font_override:
|
|
|
|
|
|
-- void **add_font_override** **(** :ref:`String<class_string>` name, :ref:`Font<class_font>` font **)**
|
|
|
+- void **add_font_override** **(** :ref:`String<class_string>` name, :ref:`Font<class_font>` font **)**
|
|
|
|
|
|
Overrides the ``name`` font in the theme resource the node uses. If ``font`` is empty, Godot clears the override.
|
|
|
|
|
|
.. _class_Control_add_icon_override:
|
|
|
|
|
|
-- void **add_icon_override** **(** :ref:`String<class_string>` name, :ref:`Texture<class_texture>` texture **)**
|
|
|
+- void **add_icon_override** **(** :ref:`String<class_string>` name, :ref:`Texture<class_texture>` texture **)**
|
|
|
|
|
|
Overrides the ``name`` icon in the theme resource the node uses. If ``icon`` is empty, Godot clears the override.
|
|
|
|
|
|
.. _class_Control_add_shader_override:
|
|
|
|
|
|
-- void **add_shader_override** **(** :ref:`String<class_string>` name, :ref:`Shader<class_shader>` shader **)**
|
|
|
+- void **add_shader_override** **(** :ref:`String<class_string>` name, :ref:`Shader<class_shader>` shader **)**
|
|
|
|
|
|
Overrides the ``name`` shader in the theme resource the node uses. If ``shader`` is empty, Godot clears the override.
|
|
|
|
|
|
.. _class_Control_add_style_override:
|
|
|
|
|
|
-- void **add_style_override** **(** :ref:`String<class_string>` name, :ref:`StyleBox<class_stylebox>` stylebox **)**
|
|
|
+- void **add_style_override** **(** :ref:`String<class_string>` name, :ref:`StyleBox<class_stylebox>` stylebox **)**
|
|
|
|
|
|
Overrides the ``name`` Stylebox in the theme resource the node uses. If ``stylebox`` is empty, Godot clears the override.
|
|
|
|
|
|
.. _class_Control_can_drop_data:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **can_drop_data** **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual
|
|
|
+- :ref:`bool<class_bool>` **can_drop_data** **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual
|
|
|
|
|
|
.. _class_Control_drop_data:
|
|
|
|
|
|
-- void **drop_data** **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual
|
|
|
+- void **drop_data** **(** :ref:`Vector2<class_vector2>` position, :ref:`Variant<class_variant>` data **)** virtual
|
|
|
|
|
|
.. _class_Control_force_drag:
|
|
|
|
|
|
-- void **force_drag** **(** :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` preview **)**
|
|
|
+- void **force_drag** **(** :ref:`Variant<class_variant>` data, :ref:`Control<class_control>` preview **)**
|
|
|
|
|
|
.. _class_Control_get_anchor:
|
|
|
|
|
|
-- :ref:`float<class_float>` **get_anchor** **(** :ref:`int<class_int>` margin **)** const
|
|
|
+- :ref:`float<class_float>` **get_anchor** **(** :ref:`int<class_int>` margin **)** const
|
|
|
|
|
|
Return the anchor type (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).
|
|
|
|
|
|
.. _class_Control_get_begin:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_begin** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_begin** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_color:
|
|
|
|
|
|
-- :ref:`Color<class_color>` **get_color** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`Color<class_color>` **get_color** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_get_combined_minimum_size:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_combined_minimum_size** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_combined_minimum_size** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_constant:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_constant** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`int<class_int>` **get_constant** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_get_cursor_shape:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_cursor_shape** **(** :ref:`Vector2<class_vector2>` position=Vector2( 0, 0 ) **)** const
|
|
|
+- :ref:`int<class_int>` **get_cursor_shape** **(** :ref:`Vector2<class_vector2>` position=Vector2( 0, 0 ) **)** const
|
|
|
|
|
|
Returns the mouse cursor shape the control displays on mouse hover, one of the ``CURSOR\_\*`` constants.
|
|
|
|
|
|
.. _class_Control_get_custom_minimum_size:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_custom_minimum_size** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_custom_minimum_size** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_default_cursor_shape:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_default_cursor_shape** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_default_cursor_shape** **(** **)** const
|
|
|
|
|
|
Returns the default cursor shape for this control. See enum ``CURSOR\_\*`` for the list of shapes.
|
|
|
|
|
|
.. _class_Control_get_drag_data:
|
|
|
|
|
|
-- :ref:`Object<class_object>` **get_drag_data** **(** :ref:`Vector2<class_vector2>` position **)** virtual
|
|
|
+- :ref:`Object<class_object>` **get_drag_data** **(** :ref:`Vector2<class_vector2>` position **)** virtual
|
|
|
|
|
|
.. _class_Control_get_end:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_end** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_end** **(** **)** const
|
|
|
|
|
|
Returns MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see :ref:`set_margin<class_Control_set_margin>`).
|
|
|
|
|
|
.. _class_Control_get_focus_mode:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_focus_mode** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_focus_mode** **(** **)** const
|
|
|
|
|
|
Returns the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL) (see :ref:`set_focus_mode<class_Control_set_focus_mode>`).
|
|
|
|
|
|
.. _class_Control_get_focus_neighbour:
|
|
|
|
|
|
-- :ref:`NodePath<class_nodepath>` **get_focus_neighbour** **(** :ref:`int<class_int>` margin **)** const
|
|
|
+- :ref:`NodePath<class_nodepath>` **get_focus_neighbour** **(** :ref:`int<class_int>` margin **)** const
|
|
|
|
|
|
Return the forced neighbour for moving the input focus to. When pressing TAB or directional/joypad directions focus is moved to the next control in that direction. However, the neighbour to move to can be forced with this function.
|
|
|
|
|
|
.. _class_Control_get_focus_owner:
|
|
|
|
|
|
-- :ref:`Control<class_control>` **get_focus_owner** **(** **)** const
|
|
|
+- :ref:`Control<class_control>` **get_focus_owner** **(** **)** const
|
|
|
|
|
|
Return which control is owning the keyboard focus, or null if no one.
|
|
|
|
|
|
.. _class_Control_get_font:
|
|
|
|
|
|
-- :ref:`Font<class_font>` **get_font** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`Font<class_font>` **get_font** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_get_global_position:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_global_position** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_global_position** **(** **)** const
|
|
|
|
|
|
Returns the Control position, relative to the top-left corner of the parent Control and independent of the anchor mode.
|
|
|
|
|
|
.. _class_Control_get_global_rect:
|
|
|
|
|
|
-- :ref:`Rect2<class_rect2>` **get_global_rect** **(** **)** const
|
|
|
+- :ref:`Rect2<class_rect2>` **get_global_rect** **(** **)** const
|
|
|
|
|
|
Return position and size of the Control, relative to the top-left corner of the *window* Control. This is a helper (see :ref:`get_global_position<class_Control_get_global_position>`, :ref:`get_size<class_Control_get_size>`).
|
|
|
|
|
|
.. _class_Control_get_h_grow_direction:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_h_grow_direction** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_h_grow_direction** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_h_size_flags:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_h_size_flags** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_h_size_flags** **(** **)** const
|
|
|
|
|
|
Hint for containers, return horizontal positioning flags.
|
|
|
|
|
|
.. _class_Control_get_icon:
|
|
|
|
|
|
-- :ref:`Texture<class_texture>` **get_icon** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`Texture<class_texture>` **get_icon** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_get_margin:
|
|
|
|
|
|
-- :ref:`float<class_float>` **get_margin** **(** :ref:`int<class_int>` margin **)** const
|
|
|
+- :ref:`float<class_float>` **get_margin** **(** :ref:`int<class_int>` margin **)** const
|
|
|
|
|
|
Return a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being returned depends on the anchor mode.
|
|
|
|
|
|
.. _class_Control_get_minimum_size:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_minimum_size** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_minimum_size** **(** **)** const
|
|
|
|
|
|
Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size.
|
|
|
|
|
|
.. _class_Control_get_mouse_filter:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_mouse_filter** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_mouse_filter** **(** **)** const
|
|
|
|
|
|
Return when the control is ignoring mouse events (even touchpad events send mouse events).
|
|
|
|
|
|
.. _class_Control_get_parent_area_size:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_parent_area_size** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_parent_area_size** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_parent_control:
|
|
|
|
|
|
-- :ref:`Control<class_control>` **get_parent_control** **(** **)** const
|
|
|
+- :ref:`Control<class_control>` **get_parent_control** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_pivot_offset:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_pivot_offset** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_pivot_offset** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_position:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_position** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_position** **(** **)** const
|
|
|
|
|
|
Returns the Control position, relative to the top-left corner of the parent Control and independent of the anchor mode.
|
|
|
|
|
|
.. _class_Control_get_rect:
|
|
|
|
|
|
-- :ref:`Rect2<class_rect2>` **get_rect** **(** **)** const
|
|
|
+- :ref:`Rect2<class_rect2>` **get_rect** **(** **)** const
|
|
|
|
|
|
Return position and size of the Control, relative to the top-left corner of the parent Control. This is a helper (see :ref:`get_position<class_Control_get_position>`, :ref:`get_size<class_Control_get_size>`).
|
|
|
|
|
|
.. _class_Control_get_rotation:
|
|
|
|
|
|
-- :ref:`float<class_float>` **get_rotation** **(** **)** const
|
|
|
+- :ref:`float<class_float>` **get_rotation** **(** **)** const
|
|
|
|
|
|
Return the rotation (in radians)
|
|
|
|
|
|
.. _class_Control_get_rotation_deg:
|
|
|
|
|
|
-- :ref:`float<class_float>` **get_rotation_deg** **(** **)** const
|
|
|
+- :ref:`float<class_float>` **get_rotation_deg** **(** **)** const
|
|
|
|
|
|
Return the rotation (in degrees)
|
|
|
|
|
|
.. _class_Control_get_scale:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_scale** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_scale** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_size:
|
|
|
|
|
|
-- :ref:`Vector2<class_vector2>` **get_size** **(** **)** const
|
|
|
+- :ref:`Vector2<class_vector2>` **get_size** **(** **)** const
|
|
|
|
|
|
Returns the size of the Control, computed from all margins, however the size returned will **never be smaller than the minimum size reported by** :ref:`get_minimum_size<class_Control_get_minimum_size>`. This means that even if end position of the Control rectangle is smaller than the begin position, the Control will still display and interact correctly. (see description, :ref:`get_minimum_size<class_Control_get_minimum_size>`, :ref:`set_margin<class_Control_set_margin>`, :ref:`set_anchor<class_Control_set_anchor>`).
|
|
|
|
|
|
.. _class_Control_get_stretch_ratio:
|
|
|
|
|
|
-- :ref:`float<class_float>` **get_stretch_ratio** **(** **)** const
|
|
|
+- :ref:`float<class_float>` **get_stretch_ratio** **(** **)** const
|
|
|
|
|
|
Hint for containers, return the stretch ratio. This value is relative to other stretch ratio, so if this control has 2 and another has 1, this one will be twice as big.
|
|
|
|
|
|
.. _class_Control_get_stylebox:
|
|
|
|
|
|
-- :ref:`StyleBox<class_stylebox>` **get_stylebox** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`StyleBox<class_stylebox>` **get_stylebox** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_get_theme:
|
|
|
|
|
|
-- :ref:`Theme<class_theme>` **get_theme** **(** **)** const
|
|
|
+- :ref:`Theme<class_theme>` **get_theme** **(** **)** const
|
|
|
|
|
|
Return a :ref:`Theme<class_theme>` override, if one exists (see :ref:`set_theme<class_Control_set_theme>`).
|
|
|
|
|
|
.. _class_Control_get_tooltip:
|
|
|
|
|
|
-- :ref:`String<class_string>` **get_tooltip** **(** :ref:`Vector2<class_vector2>` at_position=Vector2( 0, 0 ) **)** const
|
|
|
+- :ref:`String<class_string>` **get_tooltip** **(** :ref:`Vector2<class_vector2>` at_position=Vector2( 0, 0 ) **)** const
|
|
|
|
|
|
Return the tooltip, which will appear when the cursor is resting over this control.
|
|
|
|
|
|
.. _class_Control_get_v_grow_direction:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_v_grow_direction** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_v_grow_direction** **(** **)** const
|
|
|
|
|
|
.. _class_Control_get_v_size_flags:
|
|
|
|
|
|
-- :ref:`int<class_int>` **get_v_size_flags** **(** **)** const
|
|
|
+- :ref:`int<class_int>` **get_v_size_flags** **(** **)** const
|
|
|
|
|
|
Hint for containers, return vertical positioning flags.
|
|
|
|
|
|
.. _class_Control_grab_click_focus:
|
|
|
|
|
|
-- void **grab_click_focus** **(** **)**
|
|
|
+- void **grab_click_focus** **(** **)**
|
|
|
|
|
|
.. _class_Control_grab_focus:
|
|
|
|
|
|
-- void **grab_focus** **(** **)**
|
|
|
+- void **grab_focus** **(** **)**
|
|
|
|
|
|
Steal the focus from another control and become the focused control (see :ref:`set_focus_mode<class_Control_set_focus_mode>`).
|
|
|
|
|
|
.. _class_Control_has_color:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_color** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_color** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_has_color_override:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_color_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_color_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
|
|
|
.. _class_Control_has_constant:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_constant** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_constant** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_has_constant_override:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_constant_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_constant_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
|
|
|
.. _class_Control_has_focus:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_focus** **(** **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_focus** **(** **)** const
|
|
|
|
|
|
Return whether the Control is the current focused control (see :ref:`set_focus_mode<class_Control_set_focus_mode>`).
|
|
|
|
|
|
.. _class_Control_has_font:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_font** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_font** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_has_font_override:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_font_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_font_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
|
|
|
.. _class_Control_has_icon:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_icon** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_icon** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_has_icon_override:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_icon_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_icon_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
|
|
|
.. _class_Control_has_point:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_point** **(** :ref:`Vector2<class_vector2>` point **)** virtual
|
|
|
+- :ref:`bool<class_bool>` **has_point** **(** :ref:`Vector2<class_vector2>` point **)** virtual
|
|
|
|
|
|
.. _class_Control_has_stylebox:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_stylebox** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_stylebox** **(** :ref:`String<class_string>` name, :ref:`String<class_string>` type="" **)** const
|
|
|
|
|
|
.. _class_Control_has_stylebox_override:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **has_stylebox_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
+- :ref:`bool<class_bool>` **has_stylebox_override** **(** :ref:`String<class_string>` name **)** const
|
|
|
|
|
|
.. _class_Control_is_clipping_contents:
|
|
|
|
|
|
-- :ref:`bool<class_bool>` **is_clipping_contents** **(** **)**
|
|
|
+- :ref:`bool<class_bool>` **is_clipping_contents** **(** **)**
|
|
|
|
|
|
.. _class_Control_minimum_size_changed:
|
|
|
|
|
|
-- void **minimum_size_changed** **(** **)**
|
|
|
+- void **minimum_size_changed** **(** **)**
|
|
|
|
|
|
.. _class_Control_release_focus:
|
|
|
|
|
|
-- void **release_focus** **(** **)**
|
|
|
+- void **release_focus** **(** **)**
|
|
|
|
|
|
Give up the focus, no other control will be able to receive keyboard input.
|
|
|
|
|
|
.. _class_Control_set_anchor:
|
|
|
|
|
|
-- void **set_anchor** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`bool<class_bool>` keep_margin=false, :ref:`bool<class_bool>` push_opposite_anchor=true **)**
|
|
|
+- void **set_anchor** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`bool<class_bool>` keep_margin=false, :ref:`bool<class_bool>` push_opposite_anchor=true **)**
|
|
|
|
|
|
.. _class_Control_set_anchor_and_margin:
|
|
|
|
|
|
-- void **set_anchor_and_margin** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`float<class_float>` offset, :ref:`bool<class_bool>` push_opposite_anchor=false **)**
|
|
|
+- void **set_anchor_and_margin** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` anchor, :ref:`float<class_float>` offset, :ref:`bool<class_bool>` push_opposite_anchor=false **)**
|
|
|
|
|
|
.. _class_Control_set_anchors_and_margins_preset:
|
|
|
|
|
|
-- void **set_anchors_and_margins_preset** **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)**
|
|
|
+- void **set_anchors_and_margins_preset** **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)**
|
|
|
|
|
|
.. _class_Control_set_anchors_preset:
|
|
|
|
|
|
-- void **set_anchors_preset** **(** :ref:`int<class_int>` preset, :ref:`bool<class_bool>` keep_margin=false **)**
|
|
|
+- void **set_anchors_preset** **(** :ref:`int<class_int>` preset, :ref:`bool<class_bool>` keep_margin=false **)**
|
|
|
|
|
|
.. _class_Control_set_begin:
|
|
|
|
|
|
-- void **set_begin** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
+- void **set_begin** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
|
|
|
Sets MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see :ref:`set_margin<class_Control_set_margin>`).
|
|
|
|
|
|
.. _class_Control_set_clip_contents:
|
|
|
|
|
|
-- void **set_clip_contents** **(** :ref:`bool<class_bool>` enable **)**
|
|
|
+- void **set_clip_contents** **(** :ref:`bool<class_bool>` enable **)**
|
|
|
|
|
|
.. _class_Control_set_custom_minimum_size:
|
|
|
|
|
|
-- void **set_custom_minimum_size** **(** :ref:`Vector2<class_vector2>` size **)**
|
|
|
+- void **set_custom_minimum_size** **(** :ref:`Vector2<class_vector2>` size **)**
|
|
|
|
|
|
.. _class_Control_set_default_cursor_shape:
|
|
|
|
|
|
-- void **set_default_cursor_shape** **(** :ref:`int<class_int>` shape **)**
|
|
|
+- void **set_default_cursor_shape** **(** :ref:`int<class_int>` shape **)**
|
|
|
|
|
|
Sets the default cursor shape for this control. See ``CURSOR\_\*`` for the list of available cursor shapes. Useful for Godot plugins and applications or games that use the system's mouse cursors.
|
|
|
|
|
|
.. _class_Control_set_drag_forwarding:
|
|
|
|
|
|
-- void **set_drag_forwarding** **(** :ref:`Control<class_control>` target **)**
|
|
|
+- void **set_drag_forwarding** **(** :ref:`Control<class_control>` target **)**
|
|
|
|
|
|
.. _class_Control_set_drag_preview:
|
|
|
|
|
|
-- void **set_drag_preview** **(** :ref:`Control<class_control>` control **)**
|
|
|
+- void **set_drag_preview** **(** :ref:`Control<class_control>` control **)**
|
|
|
|
|
|
.. _class_Control_set_end:
|
|
|
|
|
|
-- void **set_end** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
+- void **set_end** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
|
|
|
Sets MARGIN_RIGHT and MARGIN_BOTTOM at the same time. This is a helper (see :ref:`set_margin<class_Control_set_margin>`).
|
|
|
|
|
|
.. _class_Control_set_focus_mode:
|
|
|
|
|
|
-- void **set_focus_mode** **(** :ref:`int<class_int>` mode **)**
|
|
|
+- void **set_focus_mode** **(** :ref:`int<class_int>` mode **)**
|
|
|
|
|
|
Set the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL). Only one Control can be focused at the same time, and it will receive keyboard signals.
|
|
|
|
|
|
.. _class_Control_set_focus_neighbour:
|
|
|
|
|
|
-- void **set_focus_neighbour** **(** :ref:`int<class_int>` margin, :ref:`NodePath<class_nodepath>` neighbour **)**
|
|
|
+- void **set_focus_neighbour** **(** :ref:`int<class_int>` margin, :ref:`NodePath<class_nodepath>` neighbour **)**
|
|
|
|
|
|
Force a neighbour for moving the input focus to. When pressing TAB or directional/joypad directions focus is moved to the next control in that direction. However, the neighbour to move to can be forced with this function.
|
|
|
|
|
|
.. _class_Control_set_global_position:
|
|
|
|
|
|
-- void **set_global_position** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
+- void **set_global_position** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
|
|
|
Move the Control to a new position, relative to the top-left corner of the *window* Control, and without changing current anchor mode. (see :ref:`set_margin<class_Control_set_margin>`).
|
|
|
|
|
|
.. _class_Control_set_h_grow_direction:
|
|
|
|
|
|
-- void **set_h_grow_direction** **(** :ref:`int<class_int>` direction **)**
|
|
|
+- void **set_h_grow_direction** **(** :ref:`int<class_int>` direction **)**
|
|
|
|
|
|
.. _class_Control_set_h_size_flags:
|
|
|
|
|
|
-- void **set_h_size_flags** **(** :ref:`int<class_int>` flags **)**
|
|
|
+- void **set_h_size_flags** **(** :ref:`int<class_int>` flags **)**
|
|
|
|
|
|
Hint for containers, set horizontal positioning flags.
|
|
|
|
|
|
.. _class_Control_set_margin:
|
|
|
|
|
|
-- void **set_margin** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` offset **)**
|
|
|
+- void **set_margin** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` offset **)**
|
|
|
|
|
|
Set a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being set depends on the anchor mode.
|
|
|
|
|
|
.. _class_Control_set_margins_preset:
|
|
|
|
|
|
-- void **set_margins_preset** **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)**
|
|
|
+- void **set_margins_preset** **(** :ref:`int<class_int>` preset, :ref:`int<class_int>` resize_mode=0, :ref:`int<class_int>` margin=0 **)**
|
|
|
|
|
|
.. _class_Control_set_mouse_filter:
|
|
|
|
|
|
-- void **set_mouse_filter** **(** :ref:`int<class_int>` filter **)**
|
|
|
+- void **set_mouse_filter** **(** :ref:`int<class_int>` filter **)**
|
|
|
|
|
|
Set when the control is ignoring mouse events (even touchpad events send mouse events). (see the MOUSE_FILTER\_\* constants)
|
|
|
|
|
|
.. _class_Control_set_pivot_offset:
|
|
|
|
|
|
-- void **set_pivot_offset** **(** :ref:`Vector2<class_vector2>` pivot_offset **)**
|
|
|
+- void **set_pivot_offset** **(** :ref:`Vector2<class_vector2>` pivot_offset **)**
|
|
|
|
|
|
.. _class_Control_set_position:
|
|
|
|
|
|
-- void **set_position** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
+- void **set_position** **(** :ref:`Vector2<class_vector2>` position **)**
|
|
|
|
|
|
Move the Control to a new position, relative to the top-left corner of the parent Control, changing all margins if needed and without changing current anchor mode. This is a helper (see :ref:`set_margin<class_Control_set_margin>`).
|
|
|
|
|
|
.. _class_Control_set_rotation:
|
|
|
|
|
|
-- void **set_rotation** **(** :ref:`float<class_float>` radians **)**
|
|
|
+- void **set_rotation** **(** :ref:`float<class_float>` radians **)**
|
|
|
|
|
|
Set the rotation (in radians).
|
|
|
|
|
|
.. _class_Control_set_rotation_deg:
|
|
|
|
|
|
-- void **set_rotation_deg** **(** :ref:`float<class_float>` degrees **)**
|
|
|
+- void **set_rotation_deg** **(** :ref:`float<class_float>` degrees **)**
|
|
|
|
|
|
Set the rotation (in degrees).
|
|
|
|
|
|
.. _class_Control_set_scale:
|
|
|
|
|
|
-- void **set_scale** **(** :ref:`Vector2<class_vector2>` scale **)**
|
|
|
+- void **set_scale** **(** :ref:`Vector2<class_vector2>` scale **)**
|
|
|
|
|
|
.. _class_Control_set_size:
|
|
|
|
|
|
-- void **set_size** **(** :ref:`Vector2<class_vector2>` size **)**
|
|
|
+- void **set_size** **(** :ref:`Vector2<class_vector2>` size **)**
|
|
|
|
|
|
Changes MARGIN_RIGHT and MARGIN_BOTTOM to fit a given size. This is a helper (see :ref:`set_margin<class_Control_set_margin>`).
|
|
|
|
|
|
.. _class_Control_set_stretch_ratio:
|
|
|
|
|
|
-- void **set_stretch_ratio** **(** :ref:`float<class_float>` ratio **)**
|
|
|
+- void **set_stretch_ratio** **(** :ref:`float<class_float>` ratio **)**
|
|
|
|
|
|
Hint for containers, set the stretch ratio. This value is relative to other stretch ratio, so if this control has 2 and another has 1, this one will be twice as big.
|
|
|
|
|
|
.. _class_Control_set_theme:
|
|
|
|
|
|
-- void **set_theme** **(** :ref:`Theme<class_theme>` theme **)**
|
|
|
+- void **set_theme** **(** :ref:`Theme<class_theme>` theme **)**
|
|
|
|
|
|
Overrides the whole :ref:`Theme<class_theme>` for this node and all its ``Control`` children.
|
|
|
|
|
|
.. _class_Control_set_tooltip:
|
|
|
|
|
|
-- void **set_tooltip** **(** :ref:`String<class_string>` tooltip **)**
|
|
|
+- void **set_tooltip** **(** :ref:`String<class_string>` tooltip **)**
|
|
|
|
|
|
Changes the tooltip text. The tooltip appears when the user's mouse cursor stays idle over this control for a few moments.
|
|
|
|
|
|
.. _class_Control_set_v_grow_direction:
|
|
|
|
|
|
-- void **set_v_grow_direction** **(** :ref:`int<class_int>` direction **)**
|
|
|
+- void **set_v_grow_direction** **(** :ref:`int<class_int>` direction **)**
|
|
|
|
|
|
.. _class_Control_set_v_size_flags:
|
|
|
|
|
|
-- void **set_v_size_flags** **(** :ref:`int<class_int>` flags **)**
|
|
|
+- void **set_v_size_flags** **(** :ref:`int<class_int>` flags **)**
|
|
|
|
|
|
Hint for containers, set vertical positioning flags.
|
|
|
|
|
|
.. _class_Control_show_modal:
|
|
|
|
|
|
-- void **show_modal** **(** :ref:`bool<class_bool>` exclusive=false **)**
|
|
|
+- void **show_modal** **(** :ref:`bool<class_bool>` exclusive=false **)**
|
|
|
|
|
|
Display a Control as modal. Control must be a subwindow. Modal controls capture the input signals until closed or the area outside them is accessed. When a modal control loses focus, or the ESC key is pressed, they automatically hide. Modal controls are used extensively for popup dialogs and menus.
|
|
|
|
|
|
.. _class_Control_warp_mouse:
|
|
|
|
|
|
-- void **warp_mouse** **(** :ref:`Vector2<class_vector2>` to_position **)**
|
|
|
+- void **warp_mouse** **(** :ref:`Vector2<class_vector2>` to_position **)**
|
|
|
|
|
|
|