Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/otk/strut.hh

Go to the documentation of this file.
00001 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
00002 #ifndef __strut_hh
00003 #define __strut_hh
00004 
00005 /*! @file strut.hh
00006   @brief The Strut struct defines a margin on 4 sides
00007 */
00008 
00009 namespace otk {
00010 
00011 //! Defines a margin on 4 sides
00012 struct Strut {
00013   //! The margin on the top of the Strut
00014   unsigned int top;
00015   //! The margin on the bottom of the Strut
00016   unsigned int bottom;
00017   //! The margin on the left of the Strut
00018   unsigned int left;
00019   //! The margin on the right of the Strut
00020   unsigned int right;
00021 
00022   //! Constructs a new Strut with no margins
00023   Strut(void): top(0), bottom(0), left(0), right(0) {}
00024   //! Constructs a new Strut with margins
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

Generated on Tue Feb 4 22:58:56 2003 for Openbox by doxygen1.3-rc2