diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-29 14:59:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-29 14:59:02 +0000 |
commit | c445c58bb8cf0c392059ed898b0e987b0e85e666 (patch) | |
tree | 3a0f4c0808511bbdfb5c288d44ec996b05e01140 /nuttx/include | |
parent | 94ade9753269d0a0ba330a4bdb3ec1e5cffe99ac (diff) | |
download | px4-nuttx-c445c58bb8cf0c392059ed898b0e987b0e85e666.tar.gz px4-nuttx-c445c58bb8cf0c392059ed898b0e987b0e85e666.tar.bz2 px4-nuttx-c445c58bb8cf0c392059ed898b0e987b0e85e666.zip |
Add APIs to get access to background
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1343 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nx.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/nx.h b/nuttx/include/nuttx/nx.h index 25ad7d1d0..2831eb783 100644 --- a/nuttx/include/nuttx/nx.h +++ b/nuttx/include/nuttx/nx.h @@ -377,6 +377,64 @@ EXTERN NXWINDOW nx_openwindow(NXHANDLE handle, EXTERN int nx_closewindow(NXWINDOW hwnd); /**************************************************************************** + * Name: nx_requestbkgd + * + * Description: + * NX normally controls a separate window called the background window. + * It repaints the window as necessary using only a solid color fill. The + * background window always represents the entire screen and is always + * below other windows. It is useful for an application to control the + * background window in the following conditions: + * + * - If you want to implement a windowless solution. The single screen + * can be used to creat a truly simple graphic environment. In this + * case, you should probably also de-select CONFIG_NX_MULTIUSER as well. + * - When you want more on the background than a solid color. For + * example, if you want an image in the background, or animations in the + * background, or live video, etc. + * + * This API only requests the handle of the background window. That + * handle will be returned asynchronously in a subsequent position and + * redraw callbacks. + * + * Cautions: + * - The following should never be called using the background window. + * They are guaranteed to cause severe crashes: + * + * nx_setposition, nx_setsize, nx_raise, nx_lower. + * + * - Neither nx_opengbwindow or nx_closebgwindow should be called more than + * once. Multiple instances of the background window are not supported. + * + * Input Parameters: + * handle - The handle returned by nx_connect + * cb - Callbacks to use for processing background window events + * + * Return: + * OK on success; ERROR on failure with errno set appropriately + * + ****************************************************************************/ + +EXTERN int nx_requestbkgd(NXHANDLE handle, FAR const struct nx_callback_s *cb); + +/**************************************************************************** + * Name: nx_releasebkgd + * + * Description: + * Release the background window previously acquired using nx_openbgwindow + * and return control of the background to NX. + * + * Input Parameters: + * hwnd - The handle returned (indirectly) by nx_requestbkgd + * + * Return: + * OK on success; ERROR on failure with errno set appropriately + * + ****************************************************************************/ + +EXTERN int nx_releasebkgd(NXWINDOW hwnd); + +/**************************************************************************** * Name: nx_getposition * * Description: |