quakeforge/ruamoko/gui/Size.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

19 lines
312 B
R

#include "gui/Size.h"
Size makeSize (integer width, integer height)
{
Size s = {width, height};
return s;
}
Size addSize (Size a, Size b)
{
Size c = {a.width + b.width, a.height + b.height};
return c;
}
Size subtractSize (Size a, Size b)
{
Size c = {a.width - b.width, a.height - b.height};
return c;
}