struct

Godot::Rect2

Inherits Struct < Value < Object

2D axis-aligned bounding box defined by a position and size.

Constructors

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

Instance methods

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

Same as #inspect(io).

Source