quakeforge/ruamoko/gui/Size.r

20 lines
312 B
R
Raw Normal View History

#include "gui/Size.h"
2002-08-17 06:47:03 +00:00
Size makeSize (integer width, integer height)
2002-08-17 06:47:03 +00:00
{
Size s = {width, height};
return s;
2002-08-17 06:47:03 +00:00
}
Size addSize (Size a, Size b)
2002-08-17 06:47:03 +00:00
{
Size c = {a.width + b.width, a.height + b.height};
return c;
2002-08-17 06:47:03 +00:00
}
Size subtractSize (Size a, Size b)
2002-08-17 06:47:03 +00:00
{
Size c = {a.width - b.width, a.height - b.height};
return c;
2002-08-17 06:47:03 +00:00
}