]> git.tdb.fi Git - libs/gltk.git/blob - source/geometry.cpp
Reorder class members
[libs/gltk.git] / source / geometry.cpp
1 /* $Id$
2
3 This file is part of libmspgltk
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "geometry.h"
9
10 namespace Msp {
11 namespace GLtk {
12
13 bool Geometry::is_inside(int x_, int y_) const
14 {
15         return (x_>=x && x_<x+static_cast<int>(w) && y_>=y && y_<y+static_cast<int>(h));
16 }
17
18
19 Sides::Sides():
20         top(0),
21         right(0),
22         bottom(0),
23         left(0)
24 { }
25
26
27 Sides::Loader::Loader(Sides &s):
28         sides(s)
29 {
30         add("top",    &Sides::top);
31         add("right",  &Sides::right);
32         add("bottom", &Sides::bottom);
33         add("left",   &Sides::left);
34 }
35
36 } // namespace GLtk
37 } // namespace Msp