]> Dogcows Code - chaz/openbox/blobdiff - src/Geometry.h
accidently removed a line somehow. OpaqueMove is now read from the rc file.
[chaz/openbox] / src / Geometry.h
index ab5b8410af8f4302ff972213007141f4626ee1c1..cbdf0fd1ffd820282ba2de0499cb42bc3e499f77 100644 (file)
@@ -41,19 +41,19 @@ public:
 };
 
 class Size{
-  int m_w, m_h;
+  unsigned int m_w, m_h;
 public:
   Size();
   Size(const Size &size);
-  Size(const int w, const int h);
+  Size(const unsigned int w, const unsigned int h);
 
-  void setW(const int w);
-  inline int w() const {
+  void setW(const unsigned int w);
+  inline unsigned int w() const {
     return m_w;
   }
 
-  void setH(const int h);
-  inline int h() const {
+  void setH(const unsigned int h);
+  inline unsigned int h() const {
     return m_h;
   }
 };
@@ -64,14 +64,16 @@ class Rect{
 public:
   Rect();
   Rect(const Point &origin, const Size &size);
-  Rect(const int x, const int y, const int w, const int h);
+  Rect(const int x, const int y, const unsigned int w, const unsigned int h);
   
   void setSize(const Size &size);
+  void setSize(const unsigned int w, const unsigned int h);
   inline const Size &size() const {
     return const_cast<const Size &>(m_size);
   }
   
   void setOrigin(const Point &origin);
+  void setOrigin(const int x, const int y);
   inline const Point &origin() const {
     return const_cast<const Point &>(m_origin);
   }
@@ -86,13 +88,13 @@ public:
     return m_origin.y();
   }
 
-  void setW(const int w);
-  inline int w() const {
+  void setW(const unsigned int w);
+  inline unsigned int w() const {
     return m_size.w();
   }
 
-  void setH(const int h);
-  inline int h() const {
+  void setH(const unsigned int h);
+  inline unsigned int h() const {
     return m_size.h();
   }
 
This page took 0.025383 seconds and 4 git commands to generate.