]> Dogcows Code - chaz/openbox/blobdiff - otk/rect.cc
support net_wm_strut's! nothing to do with them yet however
[chaz/openbox] / otk / rect.cc
index bf34970d45534bda764094c5a65447a6aeb452b6..7ec5c2c4487378c36a8ac62d509902d13d8c0ea7 100644 (file)
@@ -1,3 +1,9 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
 #include "rect.hh"
 
 namespace otk {
@@ -130,6 +136,12 @@ bool Rect::contains(int x, int y) const
 }
 
 
+bool Rect::contains(const Point &p) const
+{
+  return contains(p.x(), p.y());
+}
+
+
 bool Rect::contains(const Rect& a) const
 {
   return a._x1 >= _x1 && a._x2 <= _x2 &&
This page took 0.024377 seconds and 4 git commands to generate.