From dc094fb34f56cdf06704e9be831befea9f8240d9 Mon Sep 17 00:00:00 2001
From: patacongo Last Updated: September 28, 2011 Last Updated: October 22, 2011
NX Graphics Subsystem
- nx_raise()
2.3.19 nx_lower()
2.3.20 nx_fill()
- 2.3.21 nx_filltrapezoid()
- 2.3.22 nx_drawline()
- 2.3.23 nx_drawcircle()
- 2.3.24 nx_fillcircle()
- 2.3.25 nx_setbgcolor()
- 2.3.26 nx_move()
- 2.3.27 nx_bitmap()
- 2.3.28 nx_kbdin()
- 2.3.29 nx_mousein()
+ 2.3.21 nx_getrectangle()
+ 2.3.22 nx_filltrapezoid()
+ 2.3.23 nx_drawline()
+ 2.3.24 nx_drawcircle()
+ 2.3.25 nx_fillcircle()
+ 2.3.26 nx_setbgcolor()
+ 2.3.27 nx_move()
+ 2.3.28 nx_bitmap()
+ 2.3.29 nx_kbdin()
+ 2.3.30 nx_mousein()
nxtk_raise()
nxtk_lower()
nxtk_fillwindow()
nxtk_filltrapwindow()
nxtk_drawlinewindow()
nxtk_drawcirclewindow()
nxtk_fillcirclewindow()
nxtk_movewindow()
nxtk_bitmapwindow()
nxtk_opentoolbar()
nxtk_closetoolbar()
nxtk_filltoolbar()
nxtk_filltraptoolbar()
nxtk_drawlinetoolbar()
nxtk_drawcircletoolbar()
nxtk_fillcircletoolbar()
nxtk_movetoolbar()
nxtk_bitmaptoolbar()
+ 2.4.10 nxtk_getwindow()
nxtk_filltrapwindow()
nxtk_drawlinewindow()
nxtk_drawcirclewindow()
nxtk_fillcirclewindow()
nxtk_movewindow()
nxtk_bitmapwindow()
nxtk_opentoolbar()
nxtk_closetoolbar()
nxtk_filltoolbar()
nxtk_gettoolbar()
nxtk_filltraptoolbar()
nxtk_drawlinetoolbar()
nxtk_drawcircletoolbar()
nxtk_fillcircletoolbar()
nxtk_movetoolbar()
nxtk_bitmaptoolbar()
@@ -1674,7 +1677,47 @@ int nx_fill(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
ERROR
on failure with errno
set appropriately
nx_filltrapezoid()
nx_getrectangle()
Function Prototype:
++#include <nuttx/nx/nxglib.h> +#include <nuttx/nx/nx.h> + +void nx_getrectangle(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, + unsigned int plane, FAR uint8_t *dest, + unsigned int deststride); ++
+ Description: + Get the raw contents of graphic memory within a rectangular region. NOTE: + Since raw graphic memory is returned, the returned memory content may be + the memory of windows above this one and may not necessarily belong to + this window unless you assure that this is the top window. +
++ Input Parameters: +
hwnd
+ nx_openwindow()
+ or nx_requestbkgd()
+ rect
+ plane
+ dest
+ deststride
+
+ Returned Value:
+ OK
on success;
+ ERROR
on failure with errno
set appropriately
+
nx_filltrapezoid()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1708,7 +1751,7 @@ int nx_filltrapezoid(NXWINDOW hwnd, FAR const struct nxgl_rect_s *clip,ERROR
on failure witherrno
set appropriately -2.3.22
+nx_drawline()
2.3.23
nx_drawline()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1744,7 +1787,7 @@ int nx_drawline(NXWINDOW hwnd, FAR struct nxgl_vector_s *vector,ERROR
on failure witherrno
set appropriately -2.3.23
+nx_drawcircle()
2.3.24
nx_drawcircle()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1780,7 +1823,7 @@ int nx_drawcircle(NXWINDOW hwnd, FAR const struct nxgl_point_s *center,ERROR
on failure witherrno
set appropriately -2.3.24
+nx_fillcircle()
2.3.25
nx_fillcircle()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1813,7 +1856,7 @@ int nx_fillcircle(NXWINDOW hwnd, FAR const struct nxgl_point_s *center,ERROR
on failure witherrno
set appropriately -2.3.25
+nx_setbgcolor()
2.3.26
nx_setbgcolor()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1841,7 +1884,7 @@ int nx_setbgcolor(NXHANDLE handle,ERROR
on failure witherrno
set appropriately -2.3.26
+nx_move()
2.3.27
nx_move()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1872,7 +1915,7 @@ int nx_move(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,ERROR
on failure witherrno
set appropriately -2.3.27
+nx_bitmap()
2.3.28
nx_bitmap()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1914,7 +1957,7 @@ int nx_bitmap(NXWINDOW hwnd, FAR const struct nxgl_rect_s *dest,ERROR
on failure witherrno
set appropriately -2.3.28
+nx_kbdin()
2.3.29
nx_kbdin()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -1937,7 +1980,7 @@ int nx_kbdin(NXHANDLE handle, uint8_t nch, FAR const uint8_t *ch);ERROR
on failure witherrno
set appropriately -2.3.29
+nx_mousein()
2.3.30
nx_mousein()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2260,7 +2303,47 @@ int nxtk_fillwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,ERROR
on failure witherrno
set appropriately -2.4.10
+nxtk_filltrapwindow()
2.4.10
+nxtk_getwindow()
Function Prototype:
+
+#include <nuttx/nx/nxglib.h> +#include <nuttx/nx/nx.h> +#include <nuttx/nx/nxtk.h> + +void nxtk_getwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, + unsigned int plane, FAR uint8_t *dest, + unsigned int deststride); ++
+ Description: + Get the raw contents of graphic memory within a rectangular region. NOTE: + Since raw graphic memory is returned, the returned memory content may be + the memory of windows above this one and may not necessarily belong to + this window unless you assure that this is the top window.
++ Input Parameters: +
hfwnd
+ nxtk_openwindow()
.
+ rect
+ plane
+ dest
+ deststride
+
+ Returned Value:
+ OK
on success;
+ ERROR
on failure with errno
set appropriately
+
nxtk_filltrapwindow()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2293,7 +2376,7 @@ int nxtk_filltrapwindow(NXTKWINDOW hfwnd,ERROR
on failure witherrno
set appropriately -2.4.11
+nxtk_drawlinewindow()
2.4.12
nxtk_drawlinewindow()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2330,7 +2413,7 @@ int nxtk_drawlinewindow(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,ERROR
on failure witherrno
set appropriately -2.4.12
+nxtk_drawcirclewindow()
2.4.13
nxtk_drawcirclewindow()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2366,7 +2449,7 @@ int nxtk_drawcirclewindow(NXTKWINDOW hfwnd, FAR const struct nxgl_point_s *centeERROR
on failure witherrno
set appropriately -2.4.13
+nxtk_fillcirclewindow()
2.4.14
nxtk_fillcirclewindow()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2399,7 +2482,7 @@ int nxtk_fillcirclewindow(NXWINDOW hfwnd, FAR const struct nxgl_point_s *center,ERROR
on failure witherrno
set appropriately -2.4.14
+nxtk_movewindow()
2.4.15
nxtk_movewindow()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2432,7 +2515,7 @@ int nxtk_movewindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,ERROR
on failure witherrno
set appropriately -2.4.15
+nxtk_bitmapwindow()
2.4.16
nxtk_bitmapwindow()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2477,7 +2560,7 @@ int nxtk_bitmapwindow(NXTKWINDOW hfwnd,ERROR
on failure witherrno
set appropriately -2.4.16
+nxtk_opentoolbar()
2.4.17
nxtk_opentoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2512,7 +2595,7 @@ int nxtk_opentoolbar(NXTKWINDOW hfwnd, nxgl_coord_t height,ERROR
on failure witherrno
set appropriately -2.4.17
+nxtk_closetoolbar()
2.4.18
nxtk_closetoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2541,7 +2624,7 @@ int nxtk_closetoolbar(NXTKWINDOW hfwnd);ERROR
on failure witherrno
set appropriately -2.4.18
+nxtk_filltoolbar()
2.4.19
nxtk_filltoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2573,7 +2656,48 @@ int nxtk_filltoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,ERROR
on failure witherrno
set appropriately -2.4.19
+nxtk_filltraptoolbar()
2.4.19
+nxtk_gettoolbar()
Function Prototype:
+
+#include <nuttx/nx/nxglib.h> +#include <nuttx/nx/nx.h> +#include <nuttx/nx/nxtk.h> + +int nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, + unsigned int plane, FAR uint8_t *dest, + unsigned int deststride); ++
+ Description: + Get the raw contents of graphic memory within a rectangular region. NOTE: + Since raw graphic memory is returned, the returned memory content may be + the memory of windows above this one and may not necessarily belong to + this window unless you assure that this is the top window. +
++ Input Parameters: +
hfwnd
+ nxtk_openwindow()
.
+ rect
+ plane
+ dest
+ deststride
+
+ Returned Value:
+ OK
on success;
+ ERROR
on failure with errno
set appropriately
+
nxtk_filltraptoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2605,7 +2729,7 @@ int nxtk_filltraptoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_trapezoid_s *trERROR
on failure witherrno
set appropriately -2.4.20
+nxtk_drawlinetoolbar()
2.4.22
nxtk_drawlinetoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2642,7 +2766,7 @@ int nxtk_drawlinetoolbar(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector,ERROR
on failure witherrno
set appropriately -2.4.21
+nxtk_drawcircletoolbar()
2.4.23
nxtk_drawcircletoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2678,7 +2802,7 @@ int nxtk_drawcircletoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_point_s *centERROR
on failure witherrno
set appropriately -2.4.22
+nxtk_fillcircletoolbar()
2.4.24
nxtk_fillcircletoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2711,7 +2835,7 @@ int nxtk_fillcircletoolbar(NXWINDOW hfwnd, FAR const struct nxgl_point_s *centerERROR
on failure witherrno
set appropriately -2.4.23
+nxtk_movetoolbar()
2.4.25
nxtk_movetoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -2745,7 +2869,7 @@ int nxtk_movetoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,ERROR
on failure witherrno
set appropriately -2.4.24
+nxtk_bitmaptoolbar()
2.4.26
nxtk_bitmaptoolbar()
Function Prototype:
#include <nuttx/nx/nxglib.h> @@ -3764,6 +3888,11 @@ sudo ln -s libXext.so.6.4.0 libXext.so<NuttX-Directory>/.config
fileYES ++ + nx_getrectangle()
+ YES ++ nx_filltrapezoid()
@@ -3869,6 +3998,11 @@ sudo ln -s libXext.so.6.4.0 libXext.so YES + + nxtk_getwindow()
+ NO ++ nxtk_filltrapwindow()
@@ -3914,6 +4048,11 @@ sudo ln -s libXext.so.6.4.0 libXext.so YES + + nxtk_gettoolbar()
+ NO +nxtk_filltraptoolbar()