[gtkmm] Gdk::Rectangle: Add contains_point()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk::Rectangle: Add contains_point()
- Date: Tue, 6 Jun 2017 13:49:24 +0000 (UTC)
commit 334231f5fdd9a8064af69dc4c632f17841c13f4c
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue Jun 6 15:43:07 2017 +0200
Gdk::Rectangle: Add contains_point()
gdk/src/rectangle.hg | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/src/rectangle.hg b/gdk/src/rectangle.hg
index f77fb0b..8981a0c 100644
--- a/gdk/src/rectangle.hg
+++ b/gdk/src/rectangle.hg
@@ -41,6 +41,7 @@ public:
* @newin{3,20}
*/
bool operator==(const Rectangle& src) const;
+ _IGNORE(gdk_rectangle_equal)
// 'union' is a C and C++ keyword. Can't be a method name.
/** Calculates the union of two rectangles, changing this rectangle.
@@ -54,6 +55,7 @@ public:
* @returns A reference to this rectangle.
*/
Rectangle& join(const Rectangle& src2);
+ _IGNORE(gdk_rectangle_union)
/** Calculates the intersection of two rectangles, changing this rectangle.
* If the rectangles do not intersect, this rectangle's width and height are
@@ -66,6 +68,7 @@ public:
* @returns A reference to this rectangle.
*/
Rectangle& intersect(const Rectangle& src2);
+ _IGNORE(gdk_rectangle_intersect)
/** Calculates the intersection of two rectangles, changing this rectangle.
* If the rectangles do not intersect, this rectangle's width and height are
@@ -95,6 +98,8 @@ public:
*/
bool has_zero_area() const;
+ _WRAP_METHOD(bool contains_point(int x, int y) const, gdk_rectangle_contains_point)
+
_MEMBER_GET(x, x, int, int)
_MEMBER_SET(x, x, int, int)
_MEMBER_GET(y, y, int, int)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]