summaryrefslogtreecommitdiff
path: root/gsk/gskroundedrect.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-19 04:39:33 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-20 18:01:12 +0100
commit4fc64ae3dd5dde99b0a47e184b9428635012825c (patch)
treea1c67fde2d573b91198d867493d017fc33c0ceb1 /gsk/gskroundedrect.h
parent2480e0d57530b72a8efa4fefeff98971b61e16da (diff)
downloadgtk+-4fc64ae3dd5dde99b0a47e184b9428635012825c.tar.gz
gsk: Add contains/intersect functions for GskRoundedRect
... and use them.
Diffstat (limited to 'gsk/gskroundedrect.h')
-rw-r--r--gsk/gskroundedrect.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gsk/gskroundedrect.h b/gsk/gskroundedrect.h
index 9a3d33eb01..98819e4ea3 100644
--- a/gsk/gskroundedrect.h
+++ b/gsk/gskroundedrect.h
@@ -95,7 +95,16 @@ GskRoundedRect * gsk_rounded_rect_shrink (GskRoundedRect
float left);
GDK_AVAILABLE_IN_3_90
-gboolean gsk_rounded_rect_is_rectilinear (GskRoundedRect *self);
+gboolean gsk_rounded_rect_is_rectilinear (const GskRoundedRect *self);
+GDK_AVAILABLE_IN_3_90
+gboolean gsk_rounded_rect_contains_point (const GskRoundedRect *self,
+ const graphene_point_t *point);
+GDK_AVAILABLE_IN_3_90
+gboolean gsk_rounded_rect_contains_rect (const GskRoundedRect *self,
+ const graphene_rect_t *rect);
+GDK_AVAILABLE_IN_3_90
+gboolean gsk_rounded_rect_intersects_rect (const GskRoundedRect *self,
+ const graphene_rect_t *rect);
G_END_DECLS