Skip to content

Commit

Permalink
This commit removes naming associated with and naming for the now non…
Browse files Browse the repository at this point in the history
…-existent NXFE graphics layer.

Squashed commit of the following:

    graphics/:  Rename nxfe_reportposition to nxmu_reportposition.  The is no longer an nxfe layer.

    graphics/:  Renmae nxfe_redrawreq to nxmu_redrawreq.  The is no longer an nxfe layer.

    graphics/nxmu/nxmu.h:  Renmae nxfe.h to nxmu.h.  There is no long an nxfe layer.

    graphics/: Rename nxfe_state_s to nxmu_state_s.  There is no longer an nxfe layer.

    graphics/: Rename nxfe_conn_s to nxmu_conn_s.  There is no longer an nxfe layer.
  • Loading branch information
gregory-nutt committed Mar 13, 2019
1 parent e780ee3 commit 0454ae2
Show file tree
Hide file tree
Showing 31 changed files with 84 additions and 83 deletions.
6 changes: 3 additions & 3 deletions graphics/nxbe/nxbe_move.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <nuttx/nx/nxglib.h>

#include "nxbe.h"
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Private Types
Expand Down Expand Up @@ -123,7 +123,7 @@ static void nxbe_clipmoveobscured(FAR struct nxbe_clipops_s *cops,
struct nxgl_rect_s dst;

nxgl_rectoffset(&dst, rect, info->offset.x, info->offset.y);
nxfe_redrawreq(info->wnd, &dst);
nxmu_redrawreq(info->wnd, &dst);
}

/****************************************************************************
Expand Down Expand Up @@ -160,7 +160,7 @@ static void nxbe_clipmovedest(FAR struct nxbe_clipops_s *cops,
{
if (!nxgl_nullrect(&nonintersecting[i]))
{
nxfe_redrawreq(dstdata->wnd, &nonintersecting[i]);
nxmu_redrawreq(dstdata->wnd, &nonintersecting[i]);
}
}

Expand Down
4 changes: 2 additions & 2 deletions graphics/nxbe/nxbe_raise.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <nuttx/nx/nxglib.h>

#include "nxbe.h"
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Private Types
Expand Down Expand Up @@ -96,5 +96,5 @@ void nxbe_raise(FAR struct nxbe_window_s *wnd)
* it is not obscured by another window
*/

nxfe_redrawreq(wnd, &wnd->bounds);
nxmu_redrawreq(wnd, &wnd->bounds);
}
4 changes: 2 additions & 2 deletions graphics/nxbe/nxbe_redraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <nuttx/nx/nxglib.h>

#include "nxbe.h"
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Private Types
Expand All @@ -72,7 +72,7 @@ static void nxbe_clipredraw(FAR struct nxbe_clipops_s *cops,
FAR struct nxbe_window_s *wnd = ((struct nxbe_redraw_s *)cops)->wnd;
if (wnd)
{
nxfe_redrawreq(wnd, rect);
nxmu_redrawreq(wnd, rect);
}
}

Expand Down
4 changes: 2 additions & 2 deletions graphics/nxbe/nxbe_setposition.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <nuttx/nx/nxglib.h>

#include "nxbe.h"
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Public Functions
Expand Down Expand Up @@ -88,7 +88,7 @@ void nxbe_setposition(FAR struct nxbe_window_s *wnd,

/* Report the new size/position */

nxfe_reportposition(wnd);
nxmu_reportposition(wnd);

/* Then redraw this window AND all windows below it. Having moved the
* window, we may have exposed previoulsy obscured portions of windows
Expand Down
4 changes: 2 additions & 2 deletions graphics/nxbe/nxbe_setsize.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <nuttx/nx/nxglib.h>

#include "nxbe.h"
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Public Functions
Expand Down Expand Up @@ -90,7 +90,7 @@ void nxbe_setsize(FAR struct nxbe_window_s *wnd,

/* Report the new size/position */

nxfe_reportposition(wnd);
nxmu_reportposition(wnd);

/* Then redraw this window AND all windows below it. Having resized the
* window, we may have exposed previoulsy obscured portions of windows
Expand Down
2 changes: 1 addition & 1 deletion graphics/nxbe/nxbe_visible.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <nuttx/nx/nxglib.h>

#include "nxbe.h"
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Private Types
Expand Down
34 changes: 17 additions & 17 deletions graphics/nxmu/nxfe.h → graphics/nxmu/nxmu.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************************************************
* graphics/nxmu/nxfe.h
* graphics/nxmu/nxmu.h
*
* Copyright (C) 2008-2013 Gregory Nutt. All rights reserved.
* Copyright (C) 2008-2013, 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -33,8 +33,8 @@
*
****************************************************************************/

#ifndef __GRAPHICS_NXMU_NXFE_H
#define __GRAPHICS_NXMU_NXFE_H
#ifndef __GRAPHICS_NXMU_NXMU_H
#define __GRAPHICS_NXMU_NXMU_H

/****************************************************************************
* Included Files
Expand Down Expand Up @@ -64,18 +64,18 @@

/* This the server 'front-end' state structure */

struct nxfe_state_s
struct nxmu_state_s
{
/* The 'back-end' window status. Must be first so that instances of
* struct nxbe_state_s can be simply cast to an instance of struct
* nxfe_state_s
* nxmu_state_s
*/

struct nxbe_state_s be;

/* This is the server's connection to itself */

struct nxfe_conn_s conn;
struct nxmu_conn_s conn;
};

/****************************************************************************
Expand Down Expand Up @@ -111,7 +111,7 @@ extern "C"
*
****************************************************************************/

int nxmu_sendclient(FAR struct nxfe_conn_s *conn,
int nxmu_sendclient(FAR struct nxmu_conn_s *conn,
FAR const void *msg, size_t msglen);

/****************************************************************************
Expand Down Expand Up @@ -169,7 +169,7 @@ void nxmu_openwindow(FAR struct nxbe_state_s *be,
*
****************************************************************************/

void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,
void nxmu_requestbkgd(FAR struct nxmu_conn_s *conn,
FAR struct nxbe_state_s *be,
FAR const struct nx_callback_s *cb,
FAR void *arg);
Expand All @@ -189,27 +189,27 @@ void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,
*
****************************************************************************/

void nxmu_releasebkgd(FAR struct nxfe_state_s *fe);
void nxmu_releasebkgd(FAR struct nxmu_state_s *fe);

/****************************************************************************
* Name: nxfe_reportposition
* Name: nxmu_reportposition
*
* Description:
* Report the new size/position of the window.
*
****************************************************************************/

void nxfe_reportposition(FAR struct nxbe_window_s *wnd);
void nxmu_reportposition(FAR struct nxbe_window_s *wnd);

/****************************************************************************
* Name: nxfe_redrawreq
* Name: nxmu_redrawreq
*
* Description:
* Request the client that has this window to redraw the rectangular region.
*
****************************************************************************/

void nxfe_redrawreq(FAR struct nxbe_window_s *wnd,
void nxmu_redrawreq(FAR struct nxbe_window_s *wnd,
FAR const struct nxgl_rect_s *rect);

/****************************************************************************
Expand Down Expand Up @@ -253,7 +253,7 @@ int nxmu_mousereport(struct nxbe_window_s *wnd);
****************************************************************************/

#ifdef CONFIG_NX_XYINPUT
int nxmu_mousein(FAR struct nxfe_state_s *fe,
int nxmu_mousein(FAR struct nxmu_state_s *fe,
FAR const struct nxgl_point_s *pos, int button);
#endif

Expand All @@ -268,12 +268,12 @@ int nxmu_mousein(FAR struct nxfe_state_s *fe,
****************************************************************************/

#ifdef CONFIG_NX_KBD
void nxmu_kbdin(FAR struct nxfe_state_s *fe, uint8_t nch, FAR uint8_t *ch);
void nxmu_kbdin(FAR struct nxmu_state_s *fe, uint8_t nch, FAR uint8_t *ch);
#endif

#undef EXTERN
#if defined(__cplusplus)
}
#endif

#endif /* __GRAPHICS_NXMU_NXFE_H */
#endif /* __GRAPHICS_NXMU_NXMU_H */
4 changes: 2 additions & 2 deletions graphics/nxmu/nxmu_kbdin.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/nx/nx.h>

#include "nxfe.h"
#include "nxmu.h"

#ifdef CONFIG_NX_KBD

Expand Down Expand Up @@ -85,7 +85,7 @@
*
****************************************************************************/

void nxmu_kbdin(FAR struct nxfe_state_s *fe, uint8_t nch, FAR uint8_t *ch)
void nxmu_kbdin(FAR struct nxmu_state_s *fe, uint8_t nch, FAR uint8_t *ch)
{
FAR struct nxclimsg_kbdin_s *outmsg;
int size;
Expand Down
4 changes: 2 additions & 2 deletions graphics/nxmu/nxmu_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

#include <nuttx/nx/nxglib.h>
#include <nuttx/nx/nx.h>
#include "nxfe.h"
#include "nxmu.h"

#ifdef CONFIG_NX_XYINPUT

Expand Down Expand Up @@ -169,7 +169,7 @@ int nxmu_mousereport(struct nxbe_window_s *wnd)
*
****************************************************************************/

int nxmu_mousein(FAR struct nxfe_state_s *fe,
int nxmu_mousein(FAR struct nxmu_state_s *fe,
FAR const struct nxgl_point_s *pos, int buttons)
{
FAR struct nxbe_window_s *wnd;
Expand Down
4 changes: 2 additions & 2 deletions graphics/nxmu/nxmu_openwindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <nuttx/config.h>

#include <nuttx/nx/nx.h>
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Pre-processor Definitions
Expand Down Expand Up @@ -103,7 +103,7 @@ void nxmu_openwindow(FAR struct nxbe_state_s *be, FAR struct nxbe_window_s *wnd)

/* Report the initial size/position of the window to the client */

nxfe_reportposition(wnd);
nxmu_reportposition(wnd);

/* Provide the initial mouse settings to the client */

Expand Down
6 changes: 3 additions & 3 deletions graphics/nxmu/nxmu_redrawreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <debug.h>

#include <nuttx/nx/nx.h>
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Pre-processor Definitions
Expand All @@ -71,14 +71,14 @@
****************************************************************************/

/****************************************************************************
* Name: nxfe_redrawreq
* Name: nxmu_redrawreq
*
* Description:
* Request the client that has this window to redraw the rectangular region.
*
****************************************************************************/

void nxfe_redrawreq(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s *rect)
void nxmu_redrawreq(FAR struct nxbe_window_s *wnd, FAR const struct nxgl_rect_s *rect)
{
struct nxclimsg_redraw_s outmsg;

Expand Down
6 changes: 3 additions & 3 deletions graphics/nxmu/nxmu_releasebkgd.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <debug.h>

#include <nuttx/nx/nx.h>
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Pre-processor Definitions
Expand Down Expand Up @@ -84,7 +84,7 @@
*
****************************************************************************/

void nxmu_releasebkgd(FAR struct nxfe_state_s *fe)
void nxmu_releasebkgd(FAR struct nxmu_state_s *fe)
{
FAR struct nxbe_state_s *be = &fe->be;

Expand All @@ -105,6 +105,6 @@ void nxmu_releasebkgd(FAR struct nxfe_state_s *fe)

/* Redraw the background window */

nxfe_redrawreq(&be->bkgd, &be->bkgd.bounds);
nxmu_redrawreq(&be->bkgd, &be->bkgd.bounds);
}

6 changes: 3 additions & 3 deletions graphics/nxmu/nxmu_reportposition.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#include <nuttx/nx/nxglib.h>
#include <nuttx/nx/nx.h>
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Pre-processor Definitions
Expand All @@ -71,14 +71,14 @@
****************************************************************************/

/****************************************************************************
* Name: nxfe_reportposition
* Name: nxmu_reportposition
*
* Description:
* Report the new size/position of the window.
*
****************************************************************************/

void nxfe_reportposition(FAR struct nxbe_window_s *wnd)
void nxmu_reportposition(FAR struct nxbe_window_s *wnd)
{
FAR struct nxclimsg_newposition_s outmsg;
int ret;
Expand Down
8 changes: 4 additions & 4 deletions graphics/nxmu/nxmu_requestbkgd.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <debug.h>

#include <nuttx/nx/nx.h>
#include "nxfe.h"
#include "nxmu.h"

/****************************************************************************
* Public Functions
Expand All @@ -68,7 +68,7 @@
*
****************************************************************************/

void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,
void nxmu_requestbkgd(FAR struct nxmu_conn_s *conn,
FAR struct nxbe_state_s *be,
FAR const struct nx_callback_s *cb,
FAR void *arg)
Expand All @@ -85,11 +85,11 @@ void nxmu_requestbkgd(FAR struct nxfe_conn_s *conn,

/* Report the size/position of the background window to the client */

nxfe_reportposition((NXWINDOW)&be->bkgd);
nxmu_reportposition((NXWINDOW)&be->bkgd);

/* Redraw the background window */

nxfe_redrawreq(&be->bkgd, &be->bkgd.bounds);
nxmu_redrawreq(&be->bkgd, &be->bkgd.bounds);

/* Provide the mouse settings */

Expand Down
Loading

0 comments on commit 0454ae2

Please sign in to comment.