Rect.this - multiple declarations
Function Rect.this
Constructs a dsdl 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 dsdl 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 dsdl by feeding in a dsdl 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 dsdl from a dsdl (from SDL 2.0.10)
Parameters
| Name | Description |
|---|---|
| frect | dsdl whose attributes are to be copied |