MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Data Structures | |
struct | _MG_Client |
struct | _MG_Layer |
Macros | |
#define | mgIsServer (IsServer()) |
Indicates whether the current process is the server or a client on MiniGUI-Processes. More... | |
#define | LEN_LAYER_NAME 15 |
The maximum length of name of layer in MiniGUI-Processes. More... | |
#define | LEN_CLIENT_NAME 15 |
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 |
Functions | |
MG_EXPORT BOOL GUIAPI | IsServer (void) |
Check whether the current process is the server of MiniGUI-Processes. More... | |
Variables | |
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_Client * | mgClients |
The pointer to the array contains all clients' information. More... | |
MG_EXPORT MG_Layer * | mgTopmostLayer |
The pointer to the topmost layer. More... | |
MG_EXPORT MG_Layer * | mgDefaultLayer |
The pointer to the default layer. More... | |
MG_EXPORT MG_Layer * | mgLayers |
The pointer to the layer list. More... | |
#define INV_LAYER_HANDLE 0 |
#define LEN_CLIENT_NAME 15 |
#define LEN_LAYER_NAME 15 |
#define mgIsServer (IsServer()) |
typedef struct _MG_Client MG_Client |
Client information.
BOOL GUIAPI IsServer | ( | void | ) |
Check whether the current process is the server of MiniGUI-Processes.
Since 5.0.0
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.
int mgClientSize |
The current size of the array mgClients.
void * mgSharedRes |
Contains the pointer to the shared resource of MiniGUI-Processes.
void * mgSizeRes |
Contains the length of shared resource of MiniGUI-Processes.