quakeforge/ruamoko/gui/Size.r

20 lines
304 B
R
Raw Normal View History

#include "gui/Size.h"
2002-08-17 06:47:03 +00:00
Size makeSize (int width, int 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
}