diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-17 17:52:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-17 17:52:55 +0000 |
commit | 7e2a9480386b598282aee7c5135a545da0b839d9 (patch) | |
tree | 1d6d931e9b207f8c3f1ae9a5fa1312e6ccaf64dc /nuttx/include | |
parent | bde9c54c8cd18dfbe663a1e41885dd8acdd176ee (diff) | |
download | px4-nuttx-7e2a9480386b598282aee7c5135a545da0b839d9.tar.gz px4-nuttx-7e2a9480386b598282aee7c5135a545da0b839d9.tar.bz2 px4-nuttx-7e2a9480386b598282aee7c5135a545da0b839d9.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nx/nxglib.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ -458,6 +458,29 @@ EXTERN void nxgl_rectintersect(FAR struct nxgl_rect_s *dest, 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 * * Description: |