Point.this - multiple declarations

Function Point.this

Constructs a dsdl2.Point from a vanilla SDL_Point from bindbc-sdl

ref this (
  sdl.rect.SDL_Point sdlPoint
) @safe;

Parameters

NameDescription
sdlPoint the dsdl2.Point struct

Function Point.this

Constructs a dsdl2.Point by feeding in an x and y pair

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

Parameters

NameDescription
x x coordinate point
y y coordinate point

Function Point.this

Constructs a dsdl2.Point by feeding in an array of x and y

ref this (
  int[2] xy
) @safe;

Parameters

NameDescription
xy x and y coordinate point array

Function Point.this

Constructs a dsdl2.Point from a dsdl2.FPoint (from SDL 2.0.10)

ref this (
  FPoint fpoint
) @safe;

Parameters

NameDescription
fpoint dsdl2.FPoint whose attributes are to be copied