Godot::CanvasItem
Inherits Godot::Node < Godot::Object < Reference < Object
Base class for all 2D canvas items, UI elements, and 2D nodes.
Constructors
new(pointer : Pointer(Void) = Pointer(Void).null)
SourceInstance methods
draw_animation_slice(animation_length : Float64, slice_begin : Float64, slice_end : Float64, offset : Float64) : Void
Sourcedraw_arc(center : Vector2, radius : Float64, start_angle : Float64, end_angle : Float64, point_count : Int64, color : Color, width : Float64, antialiased : Bool) : Void
Sourcedraw_char(font : Font, pos : Vector2, char : String, font_size : Int64, modulate : Color, oversampling : Float64) : Void
Sourcedraw_char_outline(font : Font, pos : Vector2, char : String, font_size : Int64, size : Int64, modulate : Color, oversampling : Float64) : Void
Sourcedraw_circle(position : Vector2, radius : Float64, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void
Sourcedraw_colored_polygon(points : Pointer(Void), color : Color, uvs : Pointer(Void), texture : Texture2D) : Void
Sourcedraw_dashed_line(from : Vector2, to : Vector2, color : Color, width : Float64, dash : Float64, aligned : Bool, antialiased : Bool) : Void
Sourcedraw_ellipse(position : Vector2, major : Float64, minor : Float64, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void
Sourcedraw_ellipse_arc(center : Vector2, major : Float64, minor : Float64, start_angle : Float64, end_angle : Float64, point_count : Int64, color : Color, width : Float64, antialiased : Bool) : Void
Sourcedraw_end_animation
Sourcedraw_lcd_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color) : Void
Sourcedraw_msdf_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color, outline : Float64, pixel_range : Float64, scale : Float64) : Void
Sourcedraw_multiline_colors(points : Pointer(Void), colors : Pointer(Void), width : Float64, antialiased : Bool) : Void
Sourcedraw_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
Sourcedraw_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
Sourcedraw_multimesh(multimesh : MultiMesh, texture : Texture2D) : Void
Sourcedraw_polygon(points : Pointer(Void), colors : Pointer(Void), uvs : Pointer(Void), texture : Texture2D) : Void
Sourcedraw_polyline_colors(points : Pointer(Void), colors : Pointer(Void), width : Float64, antialiased : Bool) : Void
Sourcedraw_primitive(points : Pointer(Void), colors : Pointer(Void), uvs : Pointer(Void), texture : Texture2D) : Void
Sourcedraw_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
Sourcedraw_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
Sourcedraw_texture_rect(texture : Texture2D, rect : Rect2, tile : Bool, modulate : Color, transpose : Bool) : Void
Sourcedraw_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color, transpose : Bool, clip_uv : Bool) : Void
Sourceforce_update_transform
Sourceget_canvas
Sourceget_canvas_item
Sourceget_canvas_layer_node
Sourceget_canvas_transform
Sourceget_clip_children_mode
Sourceget_global_mouse_position
Sourceget_global_transform
Sourceget_global_transform_with_canvas
Sourceget_instance_shader_parameter(name : String) : Pointer(Void)
Sourceget_light_mask
Sourceget_local_mouse_position
Sourceget_material
Sourceget_modulate
Sourceget_oversampling_with_scale
Sourceget_screen_transform
Sourceget_self_modulate
Sourceget_texture_filter
Sourceget_texture_repeat
Sourceget_transform
Sourceget_use_parent_material
Sourceget_viewport_rect
Sourceget_viewport_transform
Sourceget_visibility_layer
Sourceget_visibility_layer_bit(layer : Int64) : Bool
Sourceget_world_2d
Sourceget_z_index
Sourcehide
Sourceis_draw_behind_parent_enabled
Sourceis_local_transform_notification_enabled
Sourceis_set_as_top_level
Sourceis_transform_notification_enabled
Sourceis_visible
Sourceis_visible_in_tree
Sourceis_y_sort_enabled
Sourceis_z_relative
Sourcemake_input_local(event : InputEvent) : InputEvent
Sourcemove_to_front
Sourcequeue_redraw
Sourceset_as_top_level(enable : Bool) : Void
Sourceset_clip_children_mode(mode : Int64) : Void
Sourceset_draw_behind_parent(enable : Bool) : Void
Sourceset_instance_shader_parameter(name : String, value : Pointer(Void)) : Void
Sourceset_light_mask(light_mask : Int64) : Void
Sourceset_material(material : Material) : Void
Sourceset_notify_local_transform(enable : Bool) : Void
Sourceset_notify_transform(enable : Bool) : Void
Sourceset_oversampling_with_scale(enabled : Int64) : Void
Sourceset_texture_filter(mode : Int64) : Void
Sourceset_texture_repeat(mode : Int64) : Void
Sourceset_use_parent_material(enable : Bool) : Void
Sourceset_visibility_layer(layer : Int64) : Void
Sourceset_visibility_layer_bit(layer : Int64, enabled : Bool) : Void
Sourceset_visible(visible : Bool) : Void
Sourceset_y_sort_enabled(enabled : Bool) : Void
Sourceset_z_as_relative(enable : Bool) : Void
Sourceset_z_index(z_index : Int64) : Void
Sourceshow
Sourceshow_behind_parent?
Sourcetop_level?
Sourceuse_parent_material?
Sourcevisible?
Sourcey_sort_enabled?
Sourcez_as_relative?
Source