struct

Godot::Rect2i

Inherits Struct < Value < Object

2D axis-aligned bounding box using integer coordinates.

Constructors

new(x : Number, y : Number, width : Number, height : Number)
Source
new(position : Vector2i = Vector2i.new, size : Vector2i = Vector2i.new)
Source
new(pointer : Pointer(Void))
Source

Instance methods

position
Source
position=(position : Vector2i)
Source
size
Source
size=(size : Vector2i)
Source
to_s(io : IO) : Void

Same as #inspect(io).

Source