Rect.this

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

  1. this()
  2. this(SDL_Rect sdlRect)
  3. this(int x, int y, int width, int height)
    struct Rect
    this
    (
    int x
    ,
    int y
    ,
    int width
    ,
    int height
    )
  4. this(Point point, int width, int height)
  5. this(FRect frect)

Parameters

x int

top-left x coordinate point of the rectangle

y int

top-left y coordinate point of the rectangle

width int

rectangle width

height int

rectangle height

Meta