diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-19 04:39:33 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-20 18:01:12 +0100 |
commit | 4fc64ae3dd5dde99b0a47e184b9428635012825c (patch) | |
tree | a1c67fde2d573b91198d867493d017fc33c0ceb1 /gsk/gskroundedrect.h | |
parent | 2480e0d57530b72a8efa4fefeff98971b61e16da (diff) | |
download | gtk+-4fc64ae3dd5dde99b0a47e184b9428635012825c.tar.gz |
gsk: Add contains/intersect functions for GskRoundedRect
... and use them.
Diffstat (limited to 'gsk/gskroundedrect.h')
-rw-r--r-- | gsk/gskroundedrect.h | 11 |
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 |