|
NXWidgets
1.19
|
#include <cnxserver.hxx>

Public Member Functions | |
| CNxServer (void) | |
| ~CNxServer (void) | |
| virtual bool | connect (void) |
| virtual void | disconnect (void) |
| NXHANDLE | getServer (void) |
| bool | connected (void) |
| bool | setBackgroundColor (nxgl_mxpixel_t color) |
| CNxWindow * | createRawWindow (CWidgetControl *widgetControl) |
| CNxTkWindow * | createFramedWindow (CWidgetControl *widgetControl) |
| CBgWindow * | getBgWindow (CWidgetControl *widgetControl) |
Static Private Member Functions | |
| static FAR void * | listener (FAR void *arg) |
Private Attributes | |
| FAR NX_DRIVERTYPE * | m_hDevice |
| NXHANDLE | m_hNxServer |
| volatile bool | m_running |
| volatile bool | m_connected |
| volatile bool | m_stop |
| sem_t | m_connsem |
Static Private Attributes | |
| static uint8_t | m_nServers |
This class represents the NX server. It includes methods to connect to and disconnect form the NX server, methods to manage the background, and "factory" methods to create window objects on the NX server. NXWidget objects them may be created on the window objects.
Definition at line 80 of file cnxserver.hxx.
| CNxServer::CNxServer | ( | void | ) |
CNXServer constructor. The CNxServer is a normally singleton. However, that not enforced: This constructor could run more than one in the situation where there are multiple physical displays. However, that configuration has never been texted.
CNXServer constructor
Definition at line 81 of file cnxserver.cxx.
| CNxServer::~CNxServer | ( | void | ) |
CNXServer destructor
Definition at line 107 of file cnxserver.cxx.
|
virtual |
Connect to the NX Server
Reimplemented in NxWM::CTaskbar.
Definition at line 126 of file cnxserver.cxx.
|
inline |
Test if we are connected to the NX server.
Definition at line 144 of file cnxserver.hxx.
|
inline |
Get an instance of the framed NX window.
Definition at line 171 of file cnxserver.hxx.
|
inline |
Get an instance of a raw NX window.
Definition at line 162 of file cnxserver.hxx.
|
virtual |
Disconnect from the NX Server
Reimplemented in NxWM::CTaskbar.
Definition at line 231 of file cnxserver.cxx.
|
inline |
Get an instance of the background window.
Definition at line 180 of file cnxserver.hxx.
|
inline |
Get the NX server handle
Definition at line 133 of file cnxserver.hxx.
|
staticprivate |
NX listener thread. This is the entry point of a thread that listeners for and dispatches events from the NX server.
This is the entry point of a thread that listeners for and dispatches events from the NX server.
Definition at line 263 of file cnxserver.cxx.
|
inline |
Set the background color
Definition at line 153 of file cnxserver.hxx.
|
private |
True: Connected to the server
Definition at line 86 of file cnxserver.hxx.
|
private |
Wait for server connection
Definition at line 88 of file cnxserver.hxx.
|
private |
LCD/Framebuffer device handle
Definition at line 83 of file cnxserver.hxx.
|
private |
NX server handle
Definition at line 84 of file cnxserver.hxx.
|
staticprivate |
The number of NX server instances
Definition at line 89 of file cnxserver.hxx.
|
private |
True: The listener thread is running
Definition at line 85 of file cnxserver.hxx.
|
private |
True: Waiting for the listener thread to stop
Definition at line 87 of file cnxserver.hxx.
1.8.13