quakeforge/ruamoko/gui/Rect.r
Bill Currie b0879ba255 Convert Point, Size and Rect to structs.
Group and the menu plist parser are currently broken.
2010-11-24 17:01:17 +09:00

23 lines
381 B
R

#include "Object.h"
#include "gui/Point.h"
#include "gui/Size.h"
#include "gui/Rect.h"
Rect makeRect (integer x, integer y, integer w, integer 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;
}