mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
cdc1f0c5e7
Now that qfcc actually supports them properly.
23 lines
365 B
R
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;
|
|
}
|