Rect.this - multiple declarations

Function Rect.this

Constructs a dsdl2.Rect from a vanilla SDL_Rect from bindbc-sdl

ref this (
  sdl.rect.SDL_Rect sdlRect
) @safe;

Parameters

NameDescription
sdlRect the SDL_Rect struct

Function Rect.this

Constructs a dsdl2.Rect by feeding in the x, y, width, and height of the rectangle

ref this (
  int x,
  int y,
  int width,
  int height
) @safe;

Parameters

NameDescription
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.Rect by feeding in a dsdl2.Point as the x and y, then width and height of the rectangle

ref this (
  Point point,
  int width,
  int height
) @safe;

Parameters

NameDescription
point top-left point of the rectangle
width rectangle width
height rectangle height

Function Rect.this

Constructs a dsdl2.Rect from a dsdl2.FRect (from SDL 2.0.10)

ref this (
  FRect frect
) @safe;

Parameters

NameDescription
frect dsdl2.FRect whose attributes are to be copied