quakeforge/ruamoko/gui/Rect.r
Bill Currie cdc1f0c5e7 [libr] Treat ruamoko headers as system headers
Now that qfcc actually supports them properly.
2020-03-03 15:24:41 +09:00

23 lines
365 B
R

#include <Object.h>
#include <gui/Point.h>
#include <gui/Size.h>
#include <gui/Rect.h>
Rect makeRect (int x, int y, int w, int h)
{
//FIXME Rect r = {{x, y}, {w, h}};
Rect r;
r.origin = makePoint (x, y);
r.size = makeSize (w, h);
return r;
}
Rect makeRectFromOriginSize (Point origin, Size size)
{
Rect r;
r.origin = origin;
r.size = size;
return r;
}