From 7e2a9480386b598282aee7c5135a545da0b839d9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 17 Oct 2011 17:52:55 +0000 Subject: Fix PIC32 ramfunc logic; add rectangle graphic functions git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4050 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nuttx/nx/nxglib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'nuttx/include') diff --git a/nuttx/include/nuttx/nx/nxglib.h b/nuttx/include/nuttx/nx/nxglib.h index 22aa51ef4..bf54b9029 100644 --- a/nuttx/include/nuttx/nx/nxglib.h +++ b/nuttx/include/nuttx/nx/nxglib.h @@ -457,6 +457,29 @@ EXTERN void nxgl_rectintersect(FAR struct nxgl_rect_s *dest, FAR const struct nxgl_rect_s *src1, FAR const struct nxgl_rect_s *src2); +/**************************************************************************** + * Name: nxgl_intersecting + * + * Description: + * Return true if the rectangles intersect. + * + ****************************************************************************/ + +EXTERN bool nxgl_intersecting(FAR const struct nxgl_rect_s *rect1, + FAR const struct nxgl_rect_s *rect2); + +/**************************************************************************** + * Name: nxgl_rectadd + * + * Description: + * Return the rectangle that contains exactly two other rectanges. + * + ****************************************************************************/ + +EXTERN void nxgl_rectadd(FAR struct nxgl_rect_s *dest, + FAR const struct nxgl_rect_s *src1, + FAR const struct nxgl_rect_s *src2); + /**************************************************************************** * Name: nxgl_rectunion * -- cgit v1.2.3