00001
00002 #ifndef __strut_hh
00003 #define __strut_hh
00004
00005
00006
00007
00008
00009 namespace otk {
00010
00011
00012 struct Strut {
00013
00014 unsigned int top;
00015
00016 unsigned int bottom;
00017
00018 unsigned int left;
00019
00020 unsigned int right;
00021
00022
00023 Strut(void): top(0), bottom(0), left(0), right(0) {}
00024
00025 Strut(int l, int t, int r, int b): top(t), bottom(b), left(l), right(r) {}
00026
00027 bool operator==(const Strut &o) const {
00028 return top == o.top && bottom == o.bottom && left == o.left &&
00029 right == o.right;
00030 }
00031 };
00032
00033 }
00034
00035 #endif // __strut_hh