]> git.tdb.fi Git - libs/gltk.git/blob - source/geometry.h
Initial revision
[libs/gltk.git] / source / geometry.h
1 #ifndef MSP_GLTK_GEOMETRY_H_
2 #define MSP_GLTK_GEOMETRY_H_
3
4 namespace Msp {
5 namespace GLtk {
6
7 /**
8 Specifies the position and size of a widget or graphic.
9 */
10 struct Geometry
11 {
12         int x, y;
13         unsigned w, h;
14
15         Geometry(): x(0), y(0), w(1), h(1) { }
16         Geometry(int x_, int y_, unsigned w_, unsigned h_): x(x_), y(y_), w(w_), h(h_) { }
17 };
18
19 } // namespace GLtk
20 } // namespace Msp
21
22 #endif