class

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)
Source

Instance methods

clip_children

Property clip_children getter

Source
clip_children=(val : Int)

Property clip_children setter

Source
draw_animation_slice(animation_length : Float64, slice_begin : Float64, slice_end : Float64, offset : Float64) : Void
Source
draw_arc(center : Vector2, radius : Float64, start_angle : Float64, end_angle : Float64, point_count : Int64, color : Color, width : Float64, antialiased : Bool) : Void
Source
draw_char(font : Font, pos : Vector2, char : String, font_size : Int64, modulate : Color, oversampling : Float64) : Void
Source
draw_char_outline(font : Font, pos : Vector2, char : String, font_size : Int64, size : Int64, modulate : Color, oversampling : Float64) : Void
Source
draw_circle(position : Vector2, radius : Float64, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void
Source
draw_colored_polygon(points : Pointer(Void), color : Color, uvs : Pointer(Void), texture : Texture2D) : Void
Source
draw_dashed_line(from : Vector2, to : Vector2, color : Color, width : Float64, dash : Float64, aligned : Bool, antialiased : Bool) : Void
Source
draw_ellipse(position : Vector2, major : Float64, minor : Float64, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void
Source
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
Source
draw_end_animation
Source
draw_lcd_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color) : Void
Source
draw_line(from : Vector2, to : Vector2, color : Color, width : Float64, antialiased : Bool) : Void
Source
draw_mesh(mesh : Mesh, texture : Texture2D, transform : Transform2D, modulate : Color) : Void
Source
draw_msdf_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color, outline : Float64, pixel_range : Float64, scale : Float64) : Void
Source
draw_multiline(points : Pointer(Void), color : Color, width : Float64, antialiased : Bool) : Void
Source
draw_multiline_colors(points : Pointer(Void), colors : Pointer(Void), width : Float64, antialiased : Bool) : Void
Source
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
Source
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
Source
draw_multimesh(multimesh : MultiMesh, texture : Texture2D) : Void
Source
draw_polygon(points : Pointer(Void), colors : Pointer(Void), uvs : Pointer(Void), texture : Texture2D) : Void
Source
draw_polyline(points : Pointer(Void), color : Color, width : Float64, antialiased : Bool) : Void
Source
draw_polyline_colors(points : Pointer(Void), colors : Pointer(Void), width : Float64, antialiased : Bool) : Void
Source
draw_primitive(points : Pointer(Void), colors : Pointer(Void), uvs : Pointer(Void), texture : Texture2D) : Void
Source
draw_rect(rect : Rect2, color : Color, filled : Bool, width : Float64, antialiased : Bool) : Void
Source
draw_set_transform(position : Vector2, rotation : Float64, scale : Vector2) : Void
Source
draw_set_transform_matrix(xform : Transform2D) : Void
Source
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
Source
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
Source
draw_style_box(style_box : StyleBox, rect : Rect2) : Void
Source
draw_texture(texture : Texture2D, position : Vector2, modulate : Color) : Void
Source
draw_texture_rect(texture : Texture2D, rect : Rect2, tile : Bool, modulate : Color, transpose : Bool) : Void
Source
draw_texture_rect_region(texture : Texture2D, rect : Rect2, src_rect : Rect2, modulate : Color, transpose : Bool, clip_uv : Bool) : Void
Source
force_update_transform
Source
get_canvas
Source
get_canvas_item
Source
get_canvas_layer_node
Source
get_canvas_transform
Source
get_clip_children_mode
Source
get_global_mouse_position
Source
get_global_transform
Source
get_global_transform_with_canvas
Source
get_instance_shader_parameter(name : String) : Pointer(Void)
Source
get_light_mask
Source
get_local_mouse_position
Source
get_material
Source
get_modulate
Source
get_oversampling_with_scale
Source
get_screen_transform
Source
get_self_modulate
Source
get_texture_filter
Source
get_texture_repeat
Source
get_transform
Source
get_use_parent_material
Source
get_viewport_rect
Source
get_viewport_transform
Source
get_visibility_layer
Source
get_visibility_layer_bit(layer : Int64) : Bool
Source
get_world_2d
Source
get_z_index
Source
hide
Source
is_draw_behind_parent_enabled
Source
is_local_transform_notification_enabled
Source
is_set_as_top_level
Source
is_transform_notification_enabled
Source
is_visible
Source
is_visible_in_tree
Source
is_y_sort_enabled
Source
is_z_relative
Source
light_mask

Property light_mask getter

Source
light_mask=(val : Int)

Property light_mask setter

Source
make_canvas_position_local(viewport_point : Vector2) : Vector2
Source
make_input_local(event : InputEvent) : InputEvent
Source
material

Property material getter

Source
material=(val)

Property material setter

Source
modulate

Property modulate getter

Source
modulate=(val)

Property modulate setter

Source
move_to_front
Source
oversampling_with_scale

Property oversampling_with_scale getter

Source
oversampling_with_scale=(val : Int)

Property oversampling_with_scale setter

Source
queue_redraw
Source
self_modulate

Property self_modulate getter

Source
self_modulate=(val)

Property self_modulate setter

Source
set_as_top_level(enable : Bool) : Void
Source
set_clip_children_mode(mode : Int64) : Void
Source
set_draw_behind_parent(enable : Bool) : Void
Source
set_instance_shader_parameter(name : String, value : Pointer(Void)) : Void
Source
set_light_mask(light_mask : Int64) : Void
Source
set_material(material : Material) : Void
Source
set_modulate(modulate : Color) : Void
Source
set_notify_local_transform(enable : Bool) : Void
Source
set_notify_transform(enable : Bool) : Void
Source
set_oversampling_with_scale(enabled : Int64) : Void
Source
set_self_modulate(self_modulate : Color) : Void
Source
set_texture_filter(mode : Int64) : Void
Source
set_texture_repeat(mode : Int64) : Void
Source
set_use_parent_material(enable : Bool) : Void
Source
set_visibility_layer(layer : Int64) : Void
Source
set_visibility_layer_bit(layer : Int64, enabled : Bool) : Void
Source
set_visible(visible : Bool) : Void
Source
set_y_sort_enabled(enabled : Bool) : Void
Source
set_z_as_relative(enable : Bool) : Void
Source
set_z_index(z_index : Int64) : Void
Source
show
Source
show_behind_parent

Property show_behind_parent getter

Source
show_behind_parent=(val)

Property show_behind_parent setter

Source
show_behind_parent?
Source
texture_filter

Property texture_filter getter

Source
texture_filter=(val : Int)

Property texture_filter setter

Source
texture_repeat

Property texture_repeat getter

Source
texture_repeat=(val : Int)

Property texture_repeat setter

Source
top_level

Property top_level getter

Source
top_level=(val)

Property top_level setter

Source
top_level?
Source
use_parent_material

Property use_parent_material getter

Source
use_parent_material=(val)

Property use_parent_material setter

Source
use_parent_material?
Source
visibility_layer

Property visibility_layer getter

Source
visibility_layer=(val : Int)

Property visibility_layer setter

Source
visible

Property visible getter

Source
visible=(val)

Property visible setter

Source
visible?
Source
y_sort_enabled

Property y_sort_enabled getter

Source
y_sort_enabled=(val)

Property y_sort_enabled setter

Source
y_sort_enabled?
Source
z_as_relative

Property z_as_relative getter

Source
z_as_relative=(val)

Property z_as_relative setter

Source
z_as_relative?
Source
z_index

Property z_index getter

Source
z_index=(val : Int)

Property z_index setter

Source

Nested types