Constructs a dsdl2.Rect from a vanilla SDL_Rect from bindbc-sdl
Constructs a dsdl2.Rect by feeding in the x, y, width, and height of the rectangle
Constructs a dsdl2.Rect by feeding in a dsdl2.Point as the x and y, then width and height of the rectangle
Constructs a dsdl2.Rect from a dsdl2.FRect (from SDL 2.0.10)
Wraps SDL_RectEmpty which checks if the dsdl2.Rect is an empty rectangle
Wraps SDL_HasIntersection which sees whether two dsdl2.Rects intersect each other
Wraps SDL_IntersectRectAndLine which sees whether a line intersects with the dsdl2.Rect
Proxy to the height of the dsdl2.Rect
Wraps SDL_IntersectRectAndLine which attempts to clip a line segment in the boundaries of the dsdl2.Rect
Wraps SDL_IntersectRect which attempts to get the rectangle of intersection between two dsdl2.Rects
Binary operation overload template to move rectangle's position by an offset as a dsdl2.Point
Operator assignment overload template to move rectangle's position in-place by an offset as a dsdl2.Point
Proxy to the dsdl2.Point containing the x and y value of the dsdl2.Rect
Wraps SDL_PointInRect which sees whether the coordinate of a dsdl2.Point is inside the dsdl2.Rect
Proxy to the size array containing the width and height of the dsdl2.Rect
Formats the dsdl2.Rect into its construction representation: "dsdl2.Rect(<x>, <y>, <w>, <h>)"
Wraps SDL_UnionRect which creates a dsdl2.Rect of the minimum size to enclose two given dsdl2.Rects
Proxy to the width of the dsdl2.Rect
Proxy to the X value of the dsdl2.Rect
Proxy to the Y value of the dsdl2.Rect
Internal SDL_Rect struct
D struct that wraps SDL_Rect representing a rectangle of integer 2D coordinate and dimension
dsdl2.Rect stores signed integer x and y coordinate points, as well as width and height which specifies the rectangle's dimension. x and y symbolize the top-left coordinate of the rectangle, and the width and height extend to the positive plane of both axes.