gsk: Add (private) gsk_rounded_rect_intersection()
authorBenjamin Otte <otte@redhat.com>
Sun, 14 May 2023 21:13:23 +0000 (23:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
commit968ceb71d504a9f468de0ca87c94d4350b70e4cc
tree152330cd30ae8995c6a9671e776886e1657fbf00
parent7f5504bea4e23a861429bde4c2439ede61a65803
gsk: Add (private) gsk_rounded_rect_intersection()

The idea is that for a rectangle intersection, each corner of the
result is either entirely part of one original rectangle or it is
an intersection point.

By detecting those 2 cases and treating them differently, we can
simplify the code to compare rounded rectangles.
gsk/gskroundedrect.c
gsk/gskroundedrectprivate.h
testsuite/gsk/rounded-rect.c