class

Godot::Control

Inherits Godot::CanvasItem < Godot::Node < Godot::Object < Reference < Object

Base class for all GUI and user interface controls.

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

accept_event
Source
accessibility_controls_nodes

Property accessibility_controls_nodes getter

Source
accessibility_controls_nodes=(val)

Property accessibility_controls_nodes setter

Source
accessibility_described_by_nodes

Property accessibility_described_by_nodes getter

Source
accessibility_described_by_nodes=(val)

Property accessibility_described_by_nodes setter

Source
accessibility_description

Property accessibility_description getter

Source
accessibility_description=(val)

Property accessibility_description setter

Source
accessibility_drag
Source
accessibility_drop
Source
accessibility_flow_to_nodes

Property accessibility_flow_to_nodes getter

Source
accessibility_flow_to_nodes=(val)

Property accessibility_flow_to_nodes setter

Source
accessibility_labeled_by_nodes

Property accessibility_labeled_by_nodes getter

Source
accessibility_labeled_by_nodes=(val)

Property accessibility_labeled_by_nodes setter

Source
accessibility_live

Property accessibility_live getter

Source
accessibility_live=(val : Int)

Property accessibility_live setter

Source
accessibility_name

Property accessibility_name getter

Source
accessibility_name=(val)

Property accessibility_name setter

Source
add_theme_color_override(name : String, color : Color) : Void
Source
add_theme_constant_override(name : String, constant : Int64) : Void
Source
add_theme_font_override(name : String, font : Font) : Void
Source
add_theme_font_size_override(name : String, font_size : Int64) : Void
Source
add_theme_icon_override(name : String, texture : Texture2D) : Void
Source
add_theme_stylebox_override(name : String, stylebox : StyleBox) : Void
Source
anchor_bottom

Property anchor_bottom getter

Source
anchor_bottom=(val : Number)

Property anchor_bottom setter

Source
anchor_left

Property anchor_left getter

Source
anchor_left=(val : Number)

Property anchor_left setter

Source
anchor_right

Property anchor_right getter

Source
anchor_right=(val : Number)

Property anchor_right setter

Source
anchor_top

Property anchor_top getter

Source
anchor_top=(val : Number)

Property anchor_top setter

Source
auto_translate

Property auto_translate getter

Source
auto_translate=(val)

Property auto_translate setter

Source
auto_translate?
Source
begin_bulk_theme_override
Source
clip_contents

Property clip_contents getter

Source
clip_contents=(val)

Property clip_contents setter

Source
clip_contents?
Source
custom_maximum_size

Property custom_maximum_size getter

Source
custom_maximum_size=(val)

Property custom_maximum_size setter

Source
custom_minimum_size

Property custom_minimum_size getter

Source
custom_minimum_size=(val)

Property custom_minimum_size setter

Source
end_bulk_theme_override
Source
find_next_valid_focus
Source
find_prev_valid_focus
Source
find_valid_focus_neighbor(side : Int64) : Control
Source
focus_behavior_recursive

Property focus_behavior_recursive getter

Source
focus_behavior_recursive=(val : Int)

Property focus_behavior_recursive setter

Source
focus_mode

Property focus_mode getter

Source
focus_mode=(val : Int)

Property focus_mode setter

Source
focus_neighbor_bottom

Property focus_neighbor_bottom getter

Source
focus_neighbor_bottom=(val)

Property focus_neighbor_bottom setter

Source
focus_neighbor_left

Property focus_neighbor_left getter

Source
focus_neighbor_left=(val)

Property focus_neighbor_left setter

Source
focus_neighbor_right

Property focus_neighbor_right getter

Source
focus_neighbor_right=(val)

Property focus_neighbor_right setter

Source
focus_neighbor_top

Property focus_neighbor_top getter

Source
focus_neighbor_top=(val)

Property focus_neighbor_top setter

Source
focus_next

Property focus_next getter

Source
focus_next=(val)

Property focus_next setter

Source
focus_previous

Property focus_previous getter

Source
focus_previous=(val)

Property focus_previous setter

Source
force_drag(data : Pointer(Void), preview : Control) : Void
Source
get_accessibility_controls_nodes
Source
get_accessibility_described_by_nodes
Source
get_accessibility_description
Source
get_accessibility_flow_to_nodes
Source
get_accessibility_labeled_by_nodes
Source
get_accessibility_live
Source
get_accessibility_name
Source
get_anchor(side : Int64) : Float64
Source
get_begin
Source
get_bound_minimum_size
Source
get_combined_maximum_size
Source
get_combined_minimum_size
Source
get_combined_pivot_offset
Source
get_cursor_shape(at_position : Vector2) : Int64
Source
get_custom_maximum_size
Source
get_custom_minimum_size
Source
get_default_cursor_shape
Source
get_end
Source
get_focus_behavior_recursive
Source
get_focus_mode
Source
get_focus_mode_with_override
Source
get_focus_neighbor(side : Int64) : NodePath
Source
get_focus_next
Source
get_focus_previous
Source
get_global_position
Source
get_global_rect
Source
get_h_grow_direction
Source
get_h_size_flags
Source
get_layout_direction
Source
get_maximum_size
Source
get_minimum_size
Source
get_mouse_behavior_recursive
Source
get_mouse_filter
Source
get_mouse_filter_with_override
Source
get_offset(offset : Int64) : Float64
Source
get_offset_transform_pivot
Source
get_offset_transform_pivot_ratio
Source
get_offset_transform_position
Source
get_offset_transform_position_ratio
Source
get_offset_transform_rotation
Source
get_offset_transform_scale
Source
get_parent_area_size
Source
get_parent_control
Source
get_pivot_offset
Source
get_pivot_offset_ratio
Source
get_position
Source
get_rect
Source
get_rotation
Source
get_rotation_degrees
Source
get_scale
Source
get_screen_position
Source
get_shortcut_context
Source
get_size
Source
get_stretch_ratio
Source
get_theme
Source
get_theme_color(name : String, theme_type : String) : Color
Source
get_theme_constant(name : String, theme_type : String) : Int64
Source
get_theme_default_base_scale
Source
get_theme_default_font
Source
get_theme_default_font_size
Source
get_theme_font(name : String, theme_type : String) : Font
Source
get_theme_font_size(name : String, theme_type : String) : Int64
Source
get_theme_icon(name : String, theme_type : String) : Texture2D
Source
get_theme_stylebox(name : String, theme_type : String) : StyleBox
Source
get_theme_type_variation
Source
get_tooltip(at_position : Vector2) : String
Source
get_tooltip_auto_translate_mode
Source
get_tooltip_text
Source
get_translation_context
Source
get_v_grow_direction
Source
get_v_size_flags
Source
global_position
Source
global_position=(v : Vector2)
Source
grab_click_focus
Source
grab_focus(hide_focus : Bool) : Void
Source
grow_horizontal

Property grow_horizontal getter

Source
grow_horizontal=(val : Int)

Property grow_horizontal setter

Source
grow_vertical

Property grow_vertical getter

Source
grow_vertical=(val : Int)

Property grow_vertical setter

Source
has_focus(ignore_hidden_focus : Bool) : Bool
Source
has_theme_color(name : String, theme_type : String) : Bool
Source
has_theme_color_override(name : String) : Bool
Source
has_theme_constant(name : String, theme_type : String) : Bool
Source
has_theme_constant_override(name : String) : Bool
Source
has_theme_font(name : String, theme_type : String) : Bool
Source
has_theme_font_override(name : String) : Bool
Source
has_theme_font_size(name : String, theme_type : String) : Bool
Source
has_theme_font_size_override(name : String) : Bool
Source
has_theme_icon(name : String, theme_type : String) : Bool
Source
has_theme_icon_override(name : String) : Bool
Source
has_theme_stylebox(name : String, theme_type : String) : Bool
Source
has_theme_stylebox_override(name : String) : Bool
Source
is_auto_translating
Source
is_clipping_contents
Source
is_drag_successful
Source
is_force_pass_scroll_events
Source
is_layout_rtl
Source
is_localizing_numeral_system
Source
is_offset_transform_enabled
Source
is_offset_transform_visual_only
Source
is_propagating_maximum_size
Source
layout_direction

Property layout_direction getter

Source
layout_direction=(val : Int)

Property layout_direction setter

Source
localize_numeral_system

Property localize_numeral_system getter

Source
localize_numeral_system=(val)

Property localize_numeral_system setter

Source
localize_numeral_system?
Source
mouse_behavior_recursive

Property mouse_behavior_recursive getter

Source
mouse_behavior_recursive=(val : Int)

Property mouse_behavior_recursive setter

Source
mouse_default_cursor_shape

Property mouse_default_cursor_shape getter

Source
mouse_default_cursor_shape=(val : Int)

Property mouse_default_cursor_shape setter

Source
mouse_filter

Property mouse_filter getter

Source
mouse_filter=(val : Int)

Property mouse_filter setter

Source
mouse_force_pass_scroll_events

Property mouse_force_pass_scroll_events getter

Source
mouse_force_pass_scroll_events=(val)

Property mouse_force_pass_scroll_events setter

Source
mouse_force_pass_scroll_events?
Source
offset_bottom

Property offset_bottom getter

Source
offset_bottom=(val : Number)

Property offset_bottom setter

Source
offset_left

Property offset_left getter

Source
offset_left=(val : Number)

Property offset_left setter

Source
offset_right

Property offset_right getter

Source
offset_right=(val : Number)

Property offset_right setter

Source
offset_top

Property offset_top getter

Source
offset_top=(val : Number)

Property offset_top setter

Source
offset_transform_enabled

Property offset_transform_enabled getter

Source
offset_transform_enabled=(val)

Property offset_transform_enabled setter

Source
offset_transform_enabled?
Source
offset_transform_pivot

Property offset_transform_pivot getter

Source
offset_transform_pivot=(val)

Property offset_transform_pivot setter

Source
offset_transform_pivot_ratio

Property offset_transform_pivot_ratio getter

Source
offset_transform_pivot_ratio=(val)

Property offset_transform_pivot_ratio setter

Source
offset_transform_position

Property offset_transform_position getter

Source
offset_transform_position=(val)

Property offset_transform_position setter

Source
offset_transform_position_ratio

Property offset_transform_position_ratio getter

Source
offset_transform_position_ratio=(val)

Property offset_transform_position_ratio setter

Source
offset_transform_rotation

Property offset_transform_rotation getter

Source
offset_transform_rotation=(val : Number)

Property offset_transform_rotation setter

Source
offset_transform_scale

Property offset_transform_scale getter

Source
offset_transform_scale=(val)

Property offset_transform_scale setter

Source
offset_transform_visual_only

Property offset_transform_visual_only getter

Source
offset_transform_visual_only=(val)

Property offset_transform_visual_only setter

Source
offset_transform_visual_only?
Source
pivot_offset

Property pivot_offset getter

Source
pivot_offset=(val)

Property pivot_offset setter

Source
pivot_offset_ratio

Property pivot_offset_ratio getter

Source
pivot_offset_ratio=(val)

Property pivot_offset_ratio setter

Source
position
Source
position=(v : Vector2)
Source
propagate_maximum_size

Property propagate_maximum_size getter

Source
propagate_maximum_size=(val)

Property propagate_maximum_size setter

Source
propagate_maximum_size?
Source
release_focus
Source
remove_theme_color_override(name : String) : Void
Source
remove_theme_constant_override(name : String) : Void
Source
remove_theme_font_override(name : String) : Void
Source
remove_theme_font_size_override(name : String) : Void
Source
remove_theme_icon_override(name : String) : Void
Source
remove_theme_stylebox_override(name : String) : Void
Source
reset_size
Source
rotation
Source
rotation=(v : Float32)
Source
rotation_degrees

Property rotation_degrees getter

Source
rotation_degrees=(val : Number)

Property rotation_degrees setter

Source
scale
Source
scale=(v : Vector2)
Source
set_accessibility_controls_nodes(node_path : Godot::Array) : Void
Source
set_accessibility_described_by_nodes(node_path : Godot::Array) : Void
Source
set_accessibility_description(description : String) : Void
Source
set_accessibility_flow_to_nodes(node_path : Godot::Array) : Void
Source
set_accessibility_labeled_by_nodes(node_path : Godot::Array) : Void
Source
set_accessibility_live(mode : Int64) : Void
Source
set_accessibility_name(name : String) : Void
Source
set_anchor(side : Int64, anchor : Float64, keep_offset : Bool, push_opposite_anchor : Bool) : Void
Source
set_anchor_and_offset(side : Int64, anchor : Float64, offset : Float64, push_opposite_anchor : Bool) : Void
Source
set_anchors_and_offsets_preset(preset : Int64, resize_mode : Int64, margin : Int64) : Void
Source
set_anchors_preset(preset : Int64, keep_offsets : Bool) : Void
Source
set_auto_translate(enable : Bool) : Void
Source
set_begin(position : Vector2) : Void
Source
set_clip_contents(enable : Bool) : Void
Source
set_custom_maximum_size(size : Vector2) : Void
Source
set_custom_minimum_size(size : Vector2) : Void
Source
set_default_cursor_shape(shape : Int64) : Void
Source
set_drag_forwarding(drag_func : Pointer(Void), can_drop_func : Pointer(Void), drop_func : Pointer(Void)) : Void
Source
set_drag_preview(control : Control) : Void
Source
set_end(position : Vector2) : Void
Source
set_focus_behavior_recursive(focus_behavior_recursive : Int64) : Void
Source
set_focus_mode(mode : Int64) : Void
Source
set_focus_neighbor(side : Int64, neighbor : NodePath) : Void
Source
set_focus_next(next_val : NodePath) : Void
Source
set_focus_previous(previous : NodePath) : Void
Source
set_force_pass_scroll_events(force_pass_scroll_events : Bool) : Void
Source
set_global_position(position : Vector2, keep_offsets : Bool) : Void
Source
set_global_position(position : Vector2) : Void
Source
set_h_grow_direction(direction : Int64) : Void
Source
set_h_size_flags(flags : Int64) : Void
Source
set_layout_direction(direction : Int64) : Void
Source
set_localize_numeral_system(enable : Bool) : Void
Source
set_mouse_behavior_recursive(mouse_behavior_recursive : Int64) : Void
Source
set_mouse_filter(filter : Int64) : Void
Source
set_offset(side : Int64, offset : Float64) : Void
Source
set_offset_transform_enabled(enabled : Bool) : Void
Source
set_offset_transform_pivot(pivot : Vector2) : Void
Source
set_offset_transform_pivot_ratio(pivot : Vector2) : Void
Source
set_offset_transform_position(offset : Vector2) : Void
Source
set_offset_transform_position_ratio(offset : Vector2) : Void
Source
set_offset_transform_rotation(rotation : Float64) : Void
Source
set_offset_transform_scale(scale : Vector2) : Void
Source
set_offset_transform_visual_only(enabled : Bool) : Void
Source
set_offsets_preset(preset : Int64, resize_mode : Int64, margin : Int64) : Void
Source
set_pivot_offset(pivot_offset : Vector2) : Void
Source
set_pivot_offset_ratio(ratio : Vector2) : Void
Source
set_position(position : Vector2, keep_offsets : Bool) : Void
Source
set_position(position : Vector2) : Void
Source
set_propagate_maximum_size(enable : Bool) : Void
Source
set_rotation(radians : Float64) : Void
Source
set_rotation_degrees(degrees : Float64) : Void
Source
set_scale(scale : Vector2) : Void
Source
set_shortcut_context(node : Node) : Void
Source
set_size(size : Vector2, keep_offsets : Bool) : Void
Source
set_size(size : Vector2) : Void
Source
set_stretch_ratio(ratio : Float64) : Void
Source
set_theme(theme : Theme) : Void
Source
set_theme_type_variation(theme_type : String) : Void
Source
set_tooltip_auto_translate_mode(mode : Int64) : Void
Source
set_tooltip_text(hint : String) : Void
Source
set_translation_context(context : String) : Void
Source
set_v_grow_direction(direction : Int64) : Void
Source
set_v_size_flags(flags : Int64) : Void
Source
shortcut_context

Property shortcut_context getter

Source
shortcut_context=(val)

Property shortcut_context setter

Source
size
Source
size=(v : Vector2)
Source
size_flags_horizontal

Property size_flags_horizontal getter

Source
size_flags_horizontal=(val : Int)

Property size_flags_horizontal setter

Source
size_flags_stretch_ratio

Property size_flags_stretch_ratio getter

Source
size_flags_stretch_ratio=(val : Number)

Property size_flags_stretch_ratio setter

Source
size_flags_vertical

Property size_flags_vertical getter

Source
size_flags_vertical=(val : Int)

Property size_flags_vertical setter

Source
theme

Property theme getter

Source
theme=(val)

Property theme setter

Source
theme_type_variation

Property theme_type_variation getter

Source
theme_type_variation=(val)

Property theme_type_variation setter

Source
tooltip_auto_translate_mode

Property tooltip_auto_translate_mode getter

Source
tooltip_auto_translate_mode=(val : Int)

Property tooltip_auto_translate_mode setter

Source
tooltip_text

Property tooltip_text getter

Source
tooltip_text=(val)

Property tooltip_text setter

Source
translation_context

Property translation_context getter

Source
translation_context=(val)

Property translation_context setter

Source
update_maximum_size
Source
update_minimum_size
Source
visible

Property visible getter

Source
visible=(v : Bool)
Source
visible?
Source
warp_mouse(position : Vector2) : Void
Source

Nested types