FRect.this - multiple declarations

Function FRect.this

Constructs a dsdl2.FRect from a vanilla SDL_FRect from bindbc-sdl

ref this (
  sdl.rect.SDL_FRect sdlFRect
) @safe;

Parameters

NameDescription
sdlFRect the SDL_FRect struct

Function FRect.this

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

ref this (
  float x,
  float y,
  float width,
  float 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 FRect.this

Constructs a dsdl2.FRect by feeding in a dsdl2.FPoint as the xy, then width and height of the rectangle

ref this (
  FPoint point,
  float width,
  float height
) @safe;

Parameters

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

Function FRect.this

Constructs a dsdl2.FRect from a dsdl2.Rect

ref this (
  Rect rect
) @safe;

Parameters

NameDescription
rect dsdl2.Rect whose attributes are to be copied