Add clipping apis to GtkRoundedBox

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 2 December 2014 07:26 UTC

This adds two functions for checking whether an axis-aligned rectangle is completely outside or inside of a rounded box. These are not trying to be exact, but fast.

73e6a05 Add clipping apis to GtkRoundedBox
gtk/gtkroundedbox.c | 47 ++++++++++++++++++++++++++++++++++++++++++++
gtk/gtkroundedboxprivate.h | 10 ++++++++++
2 files changed, 57 insertions(+)

Upstream: git.gnome.org


  • Share