quakeforge/ruamoko/gui/Rect.r

24 lines
365 B
R
Raw Normal View History

2002-08-17 06:47:03 +00:00
#include "Object.h"
#include "gui/Point.h"
#include "gui/Size.h"
#include "gui/Rect.h"
2002-08-17 06:47:03 +00:00
Rect makeRect (int x, int y, int w, int h)
2002-08-17 06:47:03 +00:00
{
//FIXME Rect r = {{x, y}, {w, h}};
Rect r;
r.origin = makePoint (x, y);
r.size = makeSize (w, h);
return r;
2002-08-17 06:47:03 +00:00
}
Rect makeRectFromOriginSize (Point origin, Size size)
2002-08-17 06:47:03 +00:00
{
Rect r;
2002-08-17 06:47:03 +00:00
r.origin = origin;
r.size = size;
2002-08-17 06:47:03 +00:00
return r;
2002-08-17 06:47:03 +00:00
}