diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-28 11:33:21 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-28 11:33:21 -0600 |
commit | 212ec1530e550b6d4a4a5088dc45a8f8315e3e20 (patch) | |
tree | 2c408648cfd4f41a22c8fbb891472c7d93eb5cd0 /nuttx/graphics/nxmu | |
parent | ca596c87bd2de1e98e124b717681758301145787 (diff) | |
download | px4-nuttx-212ec1530e550b6d4a4a5088dc45a8f8315e3e20.tar.gz px4-nuttx-212ec1530e550b6d4a4a5088dc45a8f8315e3e20.tar.bz2 px4-nuttx-212ec1530e550b6d4a4a5088dc45a8f8315e3e20.zip |
Move graphics/nxtk to libnx/nxtk
Diffstat (limited to 'nuttx/graphics/nxmu')
-rw-r--r-- | nuttx/graphics/nxmu/nxfe.h | 33 | ||||
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_redrawreq.c | 1 | ||||
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_server.c | 9 |
3 files changed, 8 insertions, 35 deletions
diff --git a/nuttx/graphics/nxmu/nxfe.h b/nuttx/graphics/nxmu/nxfe.h index 34d680b2a..42e768267 100644 --- a/nuttx/graphics/nxmu/nxfe.h +++ b/nuttx/graphics/nxmu/nxfe.h @@ -96,39 +96,6 @@ extern "C" ****************************************************************************/ /**************************************************************************** - * Name: nxfe_constructwindow - * - * Description: - * This function is the same a nx_openwindow EXCEPT that the client provides - * the window structure instance. nx_constructwindow will initialize the - * the pre-allocated window structure for use by NX. This function is - * provided in addition to nx_open window in order to support a kind of - * inheritance: The caller's window structure may include extensions that - * are not visible to NX. - * - * NOTE: wnd must have been allocated using kmalloc() (or related allocators) - * Once provided to nxfe_constructwindow() that memory is owned and managed - * by NX. On certain error conditions or when the window is closed, NX will - * free the window. - * - * Input Parameters: - * handle - The handle returned by nx_connect - * wnd - The pre-allocated window structure. - * cb - Callbacks used to process window events - * arg - User provided value that will be returned with NX callbacks. - * - * Return: - * OK on success; ERROR on failure with errno set appropriately. In the - * case of ERROR, NX will have deallocated the pre-allocated window. - * - ****************************************************************************/ - -int nxfe_constructwindow(NXHANDLE handle, - FAR struct nxbe_window_s *wnd, - FAR const struct nx_callback_s *cb, - FAR void *arg); - -/**************************************************************************** * Name: nxmu_sendclient * * Description: diff --git a/nuttx/graphics/nxmu/nxmu_redrawreq.c b/nuttx/graphics/nxmu/nxmu_redrawreq.c index f54aa85a7..ef0fe1914 100644 --- a/nuttx/graphics/nxmu/nxmu_redrawreq.c +++ b/nuttx/graphics/nxmu/nxmu_redrawreq.c @@ -90,4 +90,3 @@ void nxfe_redrawreq(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s (void)nxmu_sendclientwindow(wnd, &outmsg, sizeof(struct nxclimsg_redraw_s)); } - diff --git a/nuttx/graphics/nxmu/nxmu_server.c b/nuttx/graphics/nxmu/nxmu_server.c index cfaa5bbf5..2f7e54564 100644 --- a/nuttx/graphics/nxmu/nxmu_server.c +++ b/nuttx/graphics/nxmu/nxmu_server.c @@ -509,7 +509,14 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev) break; #endif - /* Messages sent to the backgound window ***************************/ + case NX_SVRMSG_REDRAWREQ: /* Request re-drawing of rectangular region */ + { + FAR struct nxsvrmsg_redrawreq_s *redrawmsg = (FAR struct nxsvrmsg_redrawreq_s *)buffer; + nxfe_redrawreq(redrawmsg->wnd, &redrawmsg->rect); + } + break; + + /* Messages sent to the background window **************************/ case NX_CLIMSG_REDRAW: /* Re-draw the background window */ { |