1 #ifndef MSP_GLTK_GEOMETRY_H_
2 #define MSP_GLTK_GEOMETRY_H_
4 #include <msp/datafile/loader.h>
10 Specifies the position and size of a widget or graphic.
17 Geometry(): x(0), y(0), w(1), h(1) { }
18 Geometry(int x_, int y_, unsigned w_, unsigned h_): x(x_), y(y_), w(w_), h(h_) { }
19 bool is_inside(int, int) const;
23 Specifies margins on the sides of an element.
27 class Loader: public DataFile::Loader
31 Sides &get_object() { return sides; }