From 4fc64ae3dd5dde99b0a47e184b9428635012825c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 19 Dec 2016 04:39:33 +0100 Subject: gsk: Add contains/intersect functions for GskRoundedRect ... and use them. --- gsk/gskroundedrect.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gsk/gskroundedrect.h') 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 -- cgit v1.2.1