MiniGUI API Reference (MiniGUI-Processes)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Structures | Macros | Typedefs | Variables
MiniGUI-Processes specific variables

Data Structures

struct  _MG_Client
 
struct  _MG_Layer
 

Macros

#define LEN_LAYER_NAME   14
 The maximum length of name of layer in MiniGUI-Processes. More...
 
#define LEN_CLIENT_NAME   14
 The maximum length of name of client in MiniGUI-Processes. More...
 
#define INV_LAYER_HANDLE   0
 Invalid handle value of the layer. More...
 

Typedefs

typedef struct _MG_Client MG_Client
 
typedef struct _MG_Layer MG_Layer
 

Variables

MG_EXPORT BOOL mgIsServer
 Indicates whether the process is the server or a client on MiniGUI-Processes. More...
 
MG_EXPORT void * mgSharedRes
 Contains the pointer to the shared resource of MiniGUI-Processes. More...
 
MG_EXPORT size_t mgSizeRes
 Contains the length of shared resource of MiniGUI-Processes. More...
 
MG_EXPORT int mgClientSize
 The current size of the array mgClients. More...
 
MG_EXPORT MG_ClientmgClients
 The pointer to the array contains all clients' information. More...
 
MG_EXPORT MG_LayermgTopmostLayer
 The pointer to the topmost layer. More...
 
MG_EXPORT MG_LayermgLayers
 The pointer to the array of layers. More...
 

Detailed Description

Macro Definition Documentation

#define INV_LAYER_HANDLE   0

Invalid handle value of the layer.

Definition at line 145 of file minigui.h.

#define LEN_CLIENT_NAME   14

The maximum length of name of client in MiniGUI-Processes.

Definition at line 139 of file minigui.h.

#define LEN_LAYER_NAME   14

The maximum length of name of layer in MiniGUI-Processes.

Definition at line 133 of file minigui.h.

Typedef Documentation

typedef struct _MG_Client MG_Client

Client information.

typedef struct _MG_Layer MG_Layer

Layer information.

Variable Documentation

MG_Client * mgClients

The pointer to the array contains all clients' information.

You can access the elements in mgClients as a normal array. If the field fd of one element is not less than zero, then the element will be a vaild client.

See also
MG_Client
int mgClientSize

The current size of the array mgClients.

See also
mgClients
BOOL mgIsServer

Indicates whether the process is the server or a client on MiniGUI-Processes.

Note
Only defined for MiniGUI-Processes.
MG_Layer * mgLayers

The pointer to the array of layers.

See also
MG_Layer
void * mgSharedRes

Contains the pointer to the shared resource of MiniGUI-Processes.

Note
Not defined for MiniGUI-Threads, and the shared resource is read-only for all clients.
See also
mgSizeRes
void * mgSizeRes

Contains the length of shared resource of MiniGUI-Processes.

Note
Only defined for MiniGUI-Processes.
See also
mgSharedRes
MG_Layer * mgTopmostLayer

The pointer to the topmost layer.

See also
MG_Layer