class Godot::Node2D

Overview

A 2D game object with position, rotation, and scale transform.

Direct Known Subclasses

Defined in:

libgodot/generated/classes/classes_part1.cr
libgodot/object.cr

Constructors

Instance Method Summary

Instance methods inherited from class Godot::CanvasItem

clip_children clip_children, clip_children=(val : Int) clip_children=, draw_animation_slice(animation_length : Float64, slice_begin : Float64, slice_end : Float64, offset : Float64) : Void draw_animation_slice, draw_arc(center : Vector2, radius : Float64, start_angle : Float64, end_angle : Float64, point_count : Int64, color : Color, width : Float64, antialiased : Bool) : Void draw_arc, draw_char(font : Font, pos : Vector2, char : String, font_size : Int64, modulate : Color, oversampling : Float64) : Void draw_char, draw_char_outline(font : Font, pos : Vector2, char : String, font_size : Int64, size : Int64, modulate : Color, oversampling : Float64) : Void draw_char_outline, draw_circle(position : Vector2, radius : Float64, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void draw_circle, draw_colored_polygon(points : Pointer(Void), color : Color, uvs : Pointer(Void), texture : Texture2D) : Void draw_colored_polygon, draw_dashed_line(from : Vector2, to : Vector2, color : Color, width : Float64, dash : Float64, aligned : Bool, antialiased : Bool) : Void draw_dashed_line, draw_ellipse(position : Vector2, major : Float64, minor : Float64, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void draw_ellipse, draw_ellipse_arc(center : Vector2, major : Float64, minor : Float64, start_angle : Float64, end_angle : Float64, point_count : Int64, color : Color, width : Float64, antialiased : Bool) : Void draw_ellipse_arc, draw_end_animation : Void draw_end_animation, draw_lcd_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color) : Void draw_lcd_texture_rect_region, draw_line(from : Vector2, to : Vector2, color : Color, width : Float64, antialiased : Bool) : Void draw_line, draw_mesh(mesh : Mesh, texture : Texture2D, transform : Transform2D, modulate : Color) : Void draw_mesh, draw_msdf_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color, outline : Float64, pixel_range : Float64, scale : Float64) : Void draw_msdf_texture_rect_region, draw_multiline(points : Pointer(Void), color : Color, width : Float64, antialiased : Bool) : Void draw_multiline, draw_multiline_colors(points : Pointer(Void), colors : Pointer(Void), width : Float64, antialiased : Bool) : Void draw_multiline_colors, draw_multiline_string(font : Font, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, max_lines : Int64, modulate : Color, brk_flags : Int64, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void draw_multiline_string, draw_multiline_string_outline(font : Font, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, max_lines : Int64, size : Int64, modulate : Color, brk_flags : Int64, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void draw_multiline_string_outline, draw_multimesh(multimesh : MultiMesh, texture : Texture2D) : Void draw_multimesh, draw_polygon(points : Pointer(Void), colors : Pointer(Void), uvs : Pointer(Void), texture : Texture2D) : Void draw_polygon, draw_polyline(points : Pointer(Void), color : Color, width : Float64, antialiased : Bool) : Void draw_polyline, draw_polyline_colors(points : Pointer(Void), colors : Pointer(Void), width : Float64, antialiased : Bool) : Void draw_polyline_colors, draw_primitive(points : Pointer(Void), colors : Pointer(Void), uvs : Pointer(Void), texture : Texture2D) : Void draw_primitive, draw_rect(rect : Rect2, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void draw_rect, draw_set_transform(position : Vector2, rotation : Float64, scale : Vector2) : Void draw_set_transform, draw_set_transform_matrix(xform : Transform2D) : Void draw_set_transform_matrix, draw_string(font : Font, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, modulate : Color, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void draw_string, draw_string_outline(font : Font, pos : Vector2, text : String, alignment : Int64, width : Float64, font_size : Int64, size : Int64, modulate : Color, justification_flags : Int64, direction : Int64, orientation : Int64, oversampling : Float64) : Void draw_string_outline, draw_style_box(style_box : StyleBox, rect : Rect2) : Void draw_style_box, draw_texture(texture : Texture2D, position : Vector2, modulate : Color) : Void draw_texture, draw_texture_rect(texture : Texture2D, rect : Rect2, tile : Bool, modulate : Color, transpose : Bool) : Void draw_texture_rect, draw_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color, transpose : Bool, clip_uv : Bool) : Void draw_texture_rect_region, force_update_transform : Void force_update_transform, get_canvas : Int64 get_canvas, get_canvas_item : Int64 get_canvas_item, get_canvas_layer_node : CanvasLayer get_canvas_layer_node, get_canvas_transform : Transform2D get_canvas_transform, get_clip_children_mode : Int64 get_clip_children_mode, get_global_mouse_position : Vector2 get_global_mouse_position, get_global_transform : Transform2D get_global_transform, get_global_transform_with_canvas : Transform2D get_global_transform_with_canvas, get_instance_shader_parameter(name : String) : Pointer(Void) get_instance_shader_parameter, get_light_mask : Int64 get_light_mask, get_local_mouse_position : Vector2 get_local_mouse_position, get_material : Material get_material, get_modulate : Color get_modulate, get_oversampling_with_scale : Int64 get_oversampling_with_scale, get_screen_transform : Transform2D get_screen_transform, get_self_modulate : Color get_self_modulate, get_texture_filter : Int64 get_texture_filter, get_texture_repeat : Int64 get_texture_repeat, get_transform : Transform2D get_transform, get_use_parent_material : Bool get_use_parent_material, get_viewport_rect : Rect2 get_viewport_rect, get_viewport_transform : Transform2D get_viewport_transform, get_visibility_layer : Int64 get_visibility_layer, get_visibility_layer_bit(layer : Int64) : Bool get_visibility_layer_bit, get_world_2d : World2D get_world_2d, get_z_index : Int64 get_z_index, hide : Void hide, is_draw_behind_parent_enabled : Bool is_draw_behind_parent_enabled, is_local_transform_notification_enabled : Bool is_local_transform_notification_enabled, is_set_as_top_level : Bool is_set_as_top_level, is_transform_notification_enabled : Bool is_transform_notification_enabled, is_visible : Bool is_visible, is_visible_in_tree : Bool is_visible_in_tree, is_y_sort_enabled : Bool is_y_sort_enabled, is_z_relative : Bool is_z_relative, light_mask light_mask, light_mask=(val : Int) light_mask=, make_canvas_position_local(viewport_point : Vector2) : Vector2 make_canvas_position_local, make_input_local(event : InputEvent) : InputEvent make_input_local, material material, material=(val) material=, modulate modulate, modulate=(val) modulate=, move_to_front : Void move_to_front, oversampling_with_scale oversampling_with_scale, oversampling_with_scale=(val : Int) oversampling_with_scale=, queue_redraw : Void queue_redraw, self_modulate self_modulate, self_modulate=(val) self_modulate=, set_as_top_level(enable : Bool) : Void set_as_top_level, set_clip_children_mode(mode : Int64) : Void set_clip_children_mode, set_draw_behind_parent(enable : Bool) : Void set_draw_behind_parent, set_instance_shader_parameter(name : String, value : Pointer(Void)) : Void set_instance_shader_parameter, set_light_mask(light_mask : Int64) : Void set_light_mask, set_material(material : Material) : Void set_material, set_modulate(modulate : Color) : Void set_modulate, set_notify_local_transform(enable : Bool) : Void set_notify_local_transform, set_notify_transform(enable : Bool) : Void set_notify_transform, set_oversampling_with_scale(enabled : Int64) : Void set_oversampling_with_scale, set_self_modulate(self_modulate : Color) : Void set_self_modulate, set_texture_filter(mode : Int64) : Void set_texture_filter, set_texture_repeat(mode : Int64) : Void set_texture_repeat, set_use_parent_material(enable : Bool) : Void set_use_parent_material, set_visibility_layer(layer : Int64) : Void set_visibility_layer, set_visibility_layer_bit(layer : Int64, enabled : Bool) : Void set_visibility_layer_bit, set_visible(visible : Bool) : Void set_visible, set_y_sort_enabled(enabled : Bool) : Void set_y_sort_enabled, set_z_as_relative(enable : Bool) : Void set_z_as_relative, set_z_index(z_index : Int64) : Void set_z_index, show : Void show, show_behind_parent show_behind_parent, show_behind_parent=(val) show_behind_parent=, show_behind_parent? show_behind_parent?, texture_filter texture_filter, texture_filter=(val : Int) texture_filter=, texture_repeat texture_repeat, texture_repeat=(val : Int) texture_repeat=, top_level top_level, top_level=(val) top_level=, top_level? top_level?, use_parent_material use_parent_material, use_parent_material=(val) use_parent_material=, use_parent_material? use_parent_material?, visibility_layer visibility_layer, visibility_layer=(val : Int) visibility_layer=, visible visible, visible=(val) visible=, visible? visible?, y_sort_enabled y_sort_enabled, y_sort_enabled=(val) y_sort_enabled=, y_sort_enabled? y_sort_enabled?, z_as_relative z_as_relative, z_as_relative=(val) z_as_relative=, z_as_relative? z_as_relative?, z_index z_index, z_index=(val : Int) z_index=

Constructor methods inherited from class Godot::CanvasItem

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

Instance methods inherited from class Godot::Node

[](path : String) : Node [], []?(path : String) : Node | Nil []?, _physics_process(delta : Float64) : Void _physics_process, _process(delta : Float64) : Void _process, _ready : Void _ready, add_child(node : Node, force_readable_name : Bool = false, internal : Int64 = 0_i64) : Void add_child, add_sibling(sibling : Node, force_readable_name : Bool) : Void add_sibling, add_to_group(group : String, persistent : Bool) : Void
add_to_group(group : String) : Void
add_to_group
, atr(message : String, context : String) : String atr, atr_n(message : String, plural_message : String, n : Int64, context : String) : String atr_n, auto_translate_mode auto_translate_mode, auto_translate_mode=(val : Int) auto_translate_mode=, can_auto_translate : Bool can_auto_translate, can_process : Bool can_process, create_tween : Tween create_tween, duplicate(flags : Int64) : Node duplicate, each_child(include_internal : Bool = false, &block : Node -> Void) : Void each_child, editor_description editor_description, editor_description=(val) editor_description=, find_child(pattern : String, recursive : Bool = true, owned : Bool = false) : Node | Nil find_child, find_child_as(type : T.class, pattern : String, recursive : Bool = true, owned : Bool = false) : T | Nil forall T find_child_as, find_children(pattern : String, get_type : String, recursive : Bool, owned : Bool) : Godot::Array find_children, find_parent(pattern : String) : Node find_parent, get_accessibility_element : Int64 get_accessibility_element, get_auto_translate_mode : Int64 get_auto_translate_mode, get_child(idx : Int64, include_internal : Bool) : Node
get_child(idx : Int, include_internal : Bool = false) : Node
get_child
, get_child?(idx : Int, include_internal : Bool = false) : Node | Nil get_child?, get_child_as(type : T.class, idx : Int, include_internal : Bool = false) : T | Nil forall T get_child_as, get_child_count(include_internal : Bool = false) : Int64 get_child_count, get_children(include_internal : Bool = false) : Array(Node) get_children, get_children_as(type : T.class, include_internal : Bool = false) : Array(T) forall T get_children_as, get_editor_description : String get_editor_description, get_groups : Godot::Array get_groups, get_index(include_internal : Bool) : Int64 get_index, get_last_exclusive_window : Window get_last_exclusive_window, get_multiplayer : MultiplayerAPI get_multiplayer, get_multiplayer_authority : Int64 get_multiplayer_authority, get_name : String get_name, get_node(path : String) : Node
get_node(path : NodePath) : Node
get_node
, get_node?(path : String) : Node | Nil get_node?, get_node_and_resource(path : NodePath) : Godot::Array get_node_and_resource, get_node_as(type : T.class, path : String) : T forall T get_node_as, get_node_as?(type : T.class, path : String) : T | Nil forall T get_node_as?, get_node_or_null(path : String) : Node | Nil
get_node_or_null(path : NodePath) : Node
get_node_or_null
, get_node_rpc_config : Pointer(Void) get_node_rpc_config, get_orphan_node_ids : Godot::Array get_orphan_node_ids, get_owner : Node get_owner, get_parent : Node get_parent, get_parent? : Node | Nil get_parent?, get_parent_as(type : T.class) : T | Nil forall T get_parent_as, get_path : NodePath get_path, get_path_to(node : Node, use_unique_path : Bool) : NodePath get_path_to, get_physics_interpolation_mode : Int64 get_physics_interpolation_mode, get_physics_process_delta_time : Float64 get_physics_process_delta_time, get_physics_process_priority : Int64 get_physics_process_priority, get_process_delta_time : Float64 get_process_delta_time, get_process_mode : Int64 get_process_mode, get_process_priority : Int64 get_process_priority, get_process_thread_group : Int64 get_process_thread_group, get_process_thread_group_order : Int64 get_process_thread_group_order, get_process_thread_messages : Int64 get_process_thread_messages, get_scene_file_path : String get_scene_file_path, get_scene_instance_load_placeholder : Bool get_scene_instance_load_placeholder, get_tree : SceneTree get_tree, get_tree_string : String get_tree_string, get_tree_string_pretty : String get_tree_string_pretty, get_unique_node_as(type : T.class, unique_name : String) : T | Nil forall T get_unique_node_as, get_viewport : Viewport get_viewport, get_window : Window get_window, has_node(path : NodePath) : Bool has_node, has_node_and_resource(path : NodePath) : Bool has_node_and_resource, in_group?(group_name : String) : Bool in_group?, inside_tree? : Bool inside_tree?, is_ancestor_of(node : Node) : Bool is_ancestor_of, is_displayed_folded : Bool is_displayed_folded, is_editable_instance(node : Node) : Bool is_editable_instance, is_greater_than(node : Node) : Bool is_greater_than, is_in_group(group : String) : Bool is_in_group, is_inside_tree : Bool is_inside_tree, is_multiplayer_authority : Bool is_multiplayer_authority, is_node_ready : Bool is_node_ready, is_part_of_edited_scene : Bool is_part_of_edited_scene, is_physics_interpolated : Bool is_physics_interpolated, is_physics_interpolated_and_enabled : Bool is_physics_interpolated_and_enabled, is_physics_processing : Bool is_physics_processing, is_physics_processing_internal : Bool is_physics_processing_internal, is_processing : Bool is_processing, is_processing_input : Bool is_processing_input, is_processing_internal : Bool is_processing_internal, is_processing_shortcut_input : Bool is_processing_shortcut_input, is_processing_unhandled_input : Bool is_processing_unhandled_input, is_processing_unhandled_key_input : Bool is_processing_unhandled_key_input, is_queued_for_deletion : Bool is_queued_for_deletion, is_unique_name_in_owner : Bool is_unique_name_in_owner, local_groups : Set(String) local_groups, move_child(child_node : Node, to_index : Int64) : Void move_child, multiplayer multiplayer, name : String name, name=(val : String) name=, node_as(type : T.class, path : String) : T forall T node_as, node_as?(type : T.class, path : String) : T | Nil forall T node_as?, notify_deferred_thread_group(what : Int64) : Void notify_deferred_thread_group, notify_thread_safe(what : Int64) : Void notify_thread_safe, owner : Node | Nil owner, owner=(o : Node | Nil) owner=, physics_interpolation_mode physics_interpolation_mode, physics_interpolation_mode=(val : Int) physics_interpolation_mode=, print_orphan_nodes : Void print_orphan_nodes, print_tree : Void print_tree, print_tree_pretty : Void print_tree_pretty, process_mode process_mode, process_mode=(val : Int) process_mode=, process_physics_priority process_physics_priority, process_physics_priority=(val : Int) process_physics_priority=, process_priority process_priority, process_priority=(val : Int) process_priority=, process_thread_group process_thread_group, process_thread_group=(val : Int) process_thread_group=, process_thread_group_order process_thread_group_order, process_thread_group_order=(val : Int) process_thread_group_order=, process_thread_messages process_thread_messages, process_thread_messages=(val : Int) process_thread_messages=, propagate_call(method : String, args : Godot::Array, parent_first : Bool) : Void propagate_call, propagate_notification(what : Int64) : Void propagate_notification, queue_accessibility_update : Void queue_accessibility_update, queue_free : Void queue_free, remove_child(node : Node) : Void remove_child, remove_from_group(group : String) : Void remove_from_group, reparent(new_parent : Node, keep_global_transform : Bool = true) : Void reparent, replace_by(node : Node, keep_groups : Bool) : Void replace_by, request_ready : Void request_ready, reset_physics_interpolation : Void reset_physics_interpolation, rpc_config(method : String, config : Pointer(Void)) : Void rpc_config, scene_file_path scene_file_path, scene_file_path=(val) scene_file_path=, set_auto_translate_mode(mode : Int64) : Void set_auto_translate_mode, set_deferred_thread_group(property : String, value : Pointer(Void)) : Void set_deferred_thread_group, set_display_folded(fold : Bool) : Void set_display_folded, set_editable_instance(node : Node, is_editable : Bool) : Void set_editable_instance, set_editor_description(editor_description : String) : Void set_editor_description, set_multiplayer_authority(id : Int64, recursive : Bool) : Void set_multiplayer_authority, set_name(name : String) : Void set_name, set_owner(owner : Node) : Void set_owner, set_physics_interpolation_mode(mode : Int64) : Void set_physics_interpolation_mode, set_physics_process(enable : Bool) : Void set_physics_process, set_physics_process_internal(enable : Bool) : Void set_physics_process_internal, set_physics_process_priority(priority : Int64) : Void set_physics_process_priority, set_process(enable : Bool) : Void set_process, set_process_input(enable : Bool) : Void set_process_input, set_process_internal(enable : Bool) : Void set_process_internal, set_process_mode(mode : Int64) : Void set_process_mode, set_process_priority(priority : Int64) : Void set_process_priority, set_process_shortcut_input(enable : Bool) : Void set_process_shortcut_input, set_process_thread_group(mode : Int64) : Void set_process_thread_group, set_process_thread_group_order(order : Int64) : Void set_process_thread_group_order, set_process_thread_messages(flags : Int64) : Void set_process_thread_messages, set_process_unhandled_input(enable : Bool) : Void set_process_unhandled_input, set_process_unhandled_key_input(enable : Bool) : Void set_process_unhandled_key_input, set_scene_file_path(scene_file_path : String) : Void set_scene_file_path, set_scene_instance_load_placeholder(load_placeholder : Bool) : Void set_scene_instance_load_placeholder, set_thread_safe(property : String, value : Pointer(Void)) : Void set_thread_safe, set_translation_domain_inherited : Void set_translation_domain_inherited, set_unique_name_in_owner(enable : Bool) : Void set_unique_name_in_owner, unique_name_in_owner unique_name_in_owner, unique_name_in_owner=(val) unique_name_in_owner=, unique_name_in_owner? unique_name_in_owner?, update_configuration_warnings : Void update_configuration_warnings

Constructor methods inherited from class Godot::Node

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

Instance methods inherited from class Godot::Object

==(other : Godot::Object) : Bool
==(other : Nil) : Bool
==
, _godot_call_tool_button(button_name : String) : Void _godot_call_tool_button, _godot_call_virtual(method_name : String, delta : Float64) : Void _godot_call_virtual, _godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void _godot_call_virtual_with_data, _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void _godot_get_property, _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void _godot_set_property, add_user_signal(signal : String, arguments : Godot::Array) : Void add_user_signal, alive? : Bool alive?, await_signal(signal_name : String, timeout_sec : Float64 | Nil = nil) : Array(Variant) await_signal, call(method : String, *args) : Pointer(Void) call, call_bool(method : String, *args) : Bool call_bool, call_deferred(method : String, *args) : Pointer(Void) call_deferred, call_f64(method : String, *args) : Float64 call_f64, call_i64(method : String, *args) : Int64 call_i64, call_obj(method : String, *args) : Node | Nil call_obj, call_obj_as(type : T.class, method : String, *args) : T | Nil forall T call_obj_as, call_str(method : String, *args) : String call_str, callv(method : String, arg_array : Godot::Array) : Pointer(Void) callv, can_translate_messages : Bool can_translate_messages, cancel_free : Void cancel_free, check_alive! : Void check_alive!, connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil) : SignalSubscription
connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(signal_name : String, listener_target : Godot::Object, method_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None) : SignalSubscription
connect(signal : String, callable : Pointer(Void), flags : Int64) : Int64
connect
, connect_one_shot(signal_name : String, &block : Array(Variant) -> Void) : SignalSubscription connect_one_shot, destroy : Void destroy, destroyed? : Bool destroyed?, disconnect(signal : String, callable : Pointer(Void)) : Void
disconnect(signal_name : String) : Void
disconnect
, editor_hint? : Bool editor_hint?, emit_signal(name : String) : Void
emit_signal(name : String, *args) : Void
emit_signal
, free : Void free, get(property : String) : Pointer(Void) get, get_class : String get_class, get_incoming_connections : Godot::Array get_incoming_connections, get_indexed(property_path : NodePath) : Pointer(Void) get_indexed, get_instance_id : Int64 get_instance_id, get_meta(name : String, default : Pointer(Void)) : Pointer(Void) get_meta, get_meta_list : Godot::Array get_meta_list, get_method_argument_count(method : String) : Int64 get_method_argument_count, get_method_list : Godot::Array get_method_list, get_property_list : Godot::Array get_property_list, get_script : Pointer(Void) get_script, get_signal_connection_list(signal : String) : Godot::Array get_signal_connection_list, get_signal_list : Godot::Array get_signal_list, get_translation_domain : String get_translation_domain, has_connections(signal : String) : Bool has_connections, has_meta(name : String) : Bool has_meta, has_method(method : String) : Bool has_method, has_signal(signal : String) : Bool has_signal, has_signal?(signal_name : String) : Bool has_signal?, has_user_signal(signal : String) : Bool has_user_signal, hash(hasher) hash, if_alive : self | Nil if_alive, instance_id : UInt64 instance_id, is_blocking_signals : Bool is_blocking_signals, is_class(godot_class : String) : Bool is_class, is_connected(signal : String, callable : Pointer(Void)) : Bool is_connected, is_queued_for_deletion : Bool is_queued_for_deletion, is_valid? : Bool is_valid?, link_class_script : Void link_class_script, notification(what : Int64, reversed : Bool) : Void notification, notify_property_list_changed : Void notify_property_list_changed, pointer : Pointer(Void) pointer, pointer=(val : Pointer(Void)) pointer=, print(*args) print, printerr(*args) printerr, property_can_revert(property : String) : Bool property_can_revert, property_get_revert(property : String) : Pointer(Void) property_get_revert, puts(*args) puts, remove_meta(name : String) : Void remove_meta, remove_user_signal(signal : String) : Void remove_user_signal, set(property : String, value : Pointer(Void)) : Void set, set_block_signals(enable : Bool) : Void set_block_signals, set_deferred(property : String, value : Pointer(Void)) : Void set_deferred, set_indexed(property_path : NodePath, value : Pointer(Void)) : Void set_indexed, set_message_translation(enable : Bool) : Void set_message_translation, set_meta(name : String, value : Pointer(Void)) : Void set_meta, set_script(script : Pointer(Void)) : Void set_script, set_translation_domain(domain : String) : Void set_translation_domain, signal(name : String) : Godot::BoundSignal signal, signal_connection_count(signal_name : String) : Int32 signal_connection_count, signal_target_id : UInt64 signal_target_id, to_s(io : IO) : Void to_s, to_string : String to_string, to_unsafe : Pointer(Void) to_unsafe, tr(message : String, context : String) : String tr, tr_n(message : String, plural_message : String, n : Int64, context : String) : String tr_n

Constructor methods inherited from class Godot::Object

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

Class methods inherited from class Godot::Object

_godot_has_virtual_method(method_name : String) : Bool _godot_has_virtual_method, is_instance_id_valid(id : Int | UInt64) : Bool is_instance_id_valid

Constructor Detail

def self.new(pointer : Pointer(Void) = Pointer(Void).null) #

[View source]

Instance Method Detail

def apply_scale(ratio : Vector2) : Void #

[View source]
def get_angle_to(point : Vector2) : Float64 #

[View source]
def get_global_position : Vector2 #

[View source]
def get_global_rotation : Float64 #

[View source]
def get_global_rotation_degrees : Float64 #

[View source]
def get_global_scale : Vector2 #

[View source]
def get_global_skew : Float64 #

[View source]
def get_position : Vector2 #

[View source]
def get_relative_transform_to_parent(parent : Node) : Transform2D #

[View source]
def get_rotation : Float64 #

[View source]
def get_rotation_degrees : Float64 #

[View source]
def get_scale : Vector2 #

[View source]
def get_skew : Float64 #

[View source]
def global_position : Vector2 #

[View source]
def global_position=(v : Vector2) #

[View source]
def global_rotation : Float32 #

[View source]
def global_rotation=(v : Float32) #

[View source]
def global_rotation_degrees : Float32 #

[View source]
def global_rotation_degrees=(v : Float32) #

[View source]
def global_scale : Vector2 #

[View source]
def global_scale=(v : Vector2) #

[View source]
def global_skew : Float32 #

[View source]
def global_skew=(v : Float32) #

[View source]
def global_transform : Transform2D #

[View source]
def global_transform=(v : Transform2D) #

[View source]
def global_translate(offset : Vector2) : Void #

[View source]
def look_at(point : Vector2) : Void #

[View source]
def move_local_x(delta : Float64, scaled : Bool) : Void #

[View source]
def move_local_y(delta : Float64, scaled : Bool) : Void #

[View source]
def position : Vector2 #

[View source]
def position=(v : Vector2) #

[View source]
def rotate(radians : Float64) : Void #

[View source]
def rotation : Float32 #

[View source]
def rotation=(v : Float32) #

[View source]
def rotation_degrees : Float32 #

[View source]
def rotation_degrees=(v : Float32) #

[View source]
def scale : Vector2 #

[View source]
def scale=(v : Vector2) #

[View source]
def set_global_position(position : Vector2) : Void #

[View source]
def set_global_rotation(radians : Float64) : Void #

[View source]
def set_global_rotation_degrees(degrees : Float64) : Void #

[View source]
def set_global_scale(scale : Vector2) : Void #

[View source]
def set_global_skew(radians : Float64) : Void #

[View source]
def set_global_transform(xform : Transform2D) : Void #

[View source]
def set_position(position : Vector2) : Void #

[View source]
def set_rotation(radians : Float64) : Void #

[View source]
def set_rotation_degrees(degrees : Float64) : Void #

[View source]
def set_scale(scale : Vector2) : Void #

[View source]
def set_skew(radians : Float64) : Void #

[View source]
def set_transform(xform : Transform2D) : Void #

[View source]
def skew : Float32 #

[View source]
def skew=(v : Float32) #

[View source]
def to_global(local_point : Vector2) : Vector2 #

[View source]
def to_local(global_point : Vector2) : Vector2 #

[View source]
def transform : Transform2D #

[View source]
def transform=(v : Transform2D) #

[View source]
def translate(offset : Vector2) : Void #

[View source]
def visible : Bool #
Description copied from class Godot::CanvasItem

Property #visible getter


[View source]
def visible=(v : Bool) #

[View source]
def visible? : Bool #

[View source]