AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

Rect2i

Struct

Description

Defines a rectangular area. This structure is similar to Unity.Rect but it uses integers rather than floats for its coordinates.

Variables

height Height
width Width
x X coordinate of top left corner
y Y coordinate of top left corner
zero Zero sized rectangle

Properties

center Gets the center point of the rectangle
max Gets the position of the maximum corner of the rectangle
min Gets the position of the minimum corner of the rectangle
this[int index] Indexed getter/setter

Methods

Contains Return true if the given point is contained within the rectangle, or on its boundary.
Equals Rect2i equality
Equals Object equality
Expand (2 overloads) Expand the rectangular area vertically and horizontally by the given amount.
GetHashCode Get hash code
Intersect Get a rect representing the intersection area with another rectangle
IntersectionDepth Calculates how far another rectangle intersects into this rectangle.
Intersects Checks if there is an intersections with another rectangle
Offset Get a copy of the rect offset by given position.
Rect2i (6 overloads) Constructor
ToRect Convert to Rect
ToString (2 overloads) Convert to string

Operators

operator Rect2i Implicit operator
operator!= Inequality operator
operator== Equality operator