]> Dogcows Code - chaz/openbox/blobdiff - otk/rect.hh
add the swig generated files
[chaz/openbox] / otk / rect.hh
index 90d2b3cc8694a038f73160483c2736d919f28784..23ca0d12913632bee9ca989d7d5164b642c85a57 100644 (file)
@@ -6,6 +6,7 @@ extern "C" {
 #include <X11/Xlib.h>
 }
 
+#include "point.hh"
 #include <vector>
 
 namespace otk {
@@ -212,6 +213,14 @@ public:
     @return true if the point is contained within this Rect; otherwise, false
   */
   bool contains(int x, int y) const;
+  //! Determines if this Rect contains a point
+  /*!
+    The rectangle contains the point if it falls within the rectangle's
+    boundaries.
+    @param p The point to operate on
+    @return true if the point is contained within this Rect; otherwise, false
+  */
+  bool contains(const Point &p) const;
   //! Determines if this Rect contains another Rect entirely
   /*!
     This rectangle contains the second rectangle if it is entirely within this
This page took 0.026008 seconds and 4 git commands to generate.