struct
Godot::Rect2i
- Godot::Rect2i
- Struct
- Value
- Object
Overview
2D axis-aligned bounding box using integer coordinates.
Defined in:
libgodot/types/rect2.crConstructors
- .new(x : Number, y : Number, width : Number, height : Number)
- .new(position : Vector2i = Vector2i.new, size : Vector2i = Vector2i.new)
- .new(pointer : Pointer(Void))
Instance Method Summary
- #!=(other : Rect2i) : Bool
- #==(other : Rect2i) : Bool
- #abs : Rect2i
- #area : Int32
- #encloses(b : Rect2i) : Bool
- #encloses?(b : Rect2i) : Bool
- #end : Vector2i
- #end=(value : Vector2i)
- #expand(to : Vector2i) : Rect2i
- #grow(by : Int) : Rect2i
- #has_area? : Bool
- #has_point(point : Vector2i) : Bool
- #has_point?(point : Vector2i) : Bool
- #intersection(b : Rect2i) : Rect2i
- #intersects(b : Rect2i) : Bool
- #intersects?(b : Rect2i) : Bool
- #merge(b : Rect2i) : Rect2i
- #position : Vector2i
- #position=(position : Vector2i)
- #size : Vector2i
- #size=(size : Vector2i)
- #to_r2 : Rect2
-
#to_s(io : IO) : Void
Same as
#inspect(io).