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