Rect2i

gdext.builtin.Rect2i
See theRect2i companion object
final case class Rect2i(position: Vector2i, size: Vector2i)

Godot's Rect2i: an integer position and size (16 bytes).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def abs: Rect2i
def encloses(b: Rect2i): Boolean
def end: Vector2i
def expand(to: Vector2i): Rect2i
def getArea: Long
def grow(amount: Long): Rect2i
def growIndividual(left: Long, top: Long, right: Long, bottom: Long): Rect2i
def growSide(side: Long, amount: Long): Rect2i

side: 0 left, 1 top, 2 right, 3 bottom.

side: 0 left, 1 top, 2 right, 3 bottom.

Attributes

def hasArea: Boolean
def hasPoint(point: Vector2i): Boolean
def intersects(b: Rect2i): Boolean
def merge(b: Rect2i): Rect2i

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product