Tryst::SDL::Rect
A rectangle in the renderer's coordinates.
Float, because SDL3's drawing calls are - the integer SDL_Rect variants are gone. Constructors take any Number and convert once, so a caller with integer coordinates never writes .to_f32.
Constructors
Instance methods
clone
Sourcecopy_with(x _x = @x, y _y = @y, w _w = @w, h _h = @h)
Sourceh
to_unsafe
Sourcew
x
y