From 30edb722902dff842b5b9544f9b43846b93adc92 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 2 Jun 2009 13:01:45 +0000 Subject: add cursor support svn path=/trunk/libnsfb/; revision=7687 --- include/libnsfb_plot_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libnsfb_plot_util.h') diff --git a/include/libnsfb_plot_util.h b/include/libnsfb_plot_util.h index a1b0159..ee97b00 100644 --- a/include/libnsfb_plot_util.h +++ b/include/libnsfb_plot_util.h @@ -37,4 +37,12 @@ bool nsfb_plot_clip_line(const nsfb_bbox_t * restrict clip, nsfb_bbox_t * restri bool nsfb_plot_clip_line_ctx(nsfb_t *nsfb, nsfb_bbox_t * restrict line); +/** Obtain a bounding box which is the superset of two source boxes. + * + */ +bool nsfb_plot_add_rect(const nsfb_bbox_t *box1, const nsfb_bbox_t *box2, nsfb_bbox_t *result); + +/** Find if two boxes intersect. */ +bool nsfb_plot_bbox_intersect(const nsfb_bbox_t *box1, const nsfb_bbox_t *box2); + #endif /* _LIBNSFB_PLOT_UTIL_H */ -- cgit v1.2.3