diff options
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: |