X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry.h;fp=source%2Fgeometry.h;h=7e59bd4936f7dc4f82797f9a97170532527b0a37;hb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;hp=0000000000000000000000000000000000000000;hpb=1b5097c11b1226e14e23a0827c5238ba5d3ba444;p=libs%2Fgltk.git diff --git a/source/geometry.h b/source/geometry.h new file mode 100644 index 0000000..7e59bd4 --- /dev/null +++ b/source/geometry.h @@ -0,0 +1,22 @@ +#ifndef MSP_GLTK_GEOMETRY_H_ +#define MSP_GLTK_GEOMETRY_H_ + +namespace Msp { +namespace GLtk { + +/** +Specifies the position and size of a widget or graphic. +*/ +struct Geometry +{ + int x, y; + unsigned w, h; + + Geometry(): x(0), y(0), w(1), h(1) { } + Geometry(int x_, int y_, unsigned w_, unsigned h_): x(x_), y(y_), w(w_), h(h_) { } +}; + +} // namespace GLtk +} // namespace Msp + +#endif