Rect.this - multiple declarations
Function Rect.this
Constructs a dsdl2
from a vanilla SDL_Rect
from bindbc-sdl
ref this
(
sdl .rect .SDL_Rect sdlRect
) @safe;
Parameters
Name | Description |
---|---|
sdlRect | the SDL_Rect struct |
Function Rect.this
Constructs a dsdl2
by feeding in the x
, y
, width
, and height
of the rectangle
ref this
(
int x,
int y,
int width,
int height
) @safe;
Parameters
Name | Description |
---|---|
x | top-left x coordinate point of the rectangle |
y | top-left y coordinate point of the rectangle |
width | rectangle width |
height | rectangle height |
Function Rect.this
Constructs a dsdl2
by feeding in a dsdl2
as the x
and y
, then width
and height
of the
rectangle
Parameters
Name | Description |
---|---|
point | top-left point of the rectangle |
width | rectangle width |
height | rectangle height |
Function Rect.this
Constructs a dsdl2
from a dsdl2
(from SDL 2.0.10)
Parameters
Name | Description |
---|---|
frect | dsdl2 whose attributes are to be copied |