]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/geometry.h
Initial revision
[libs/gltk.git] / source / geometry.h
diff --git a/source/geometry.h b/source/geometry.h
new file mode 100644 (file)
index 0000000..7e59bd4
--- /dev/null
@@ -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