MiniGUI API Reference (MiniGUI-Standalone)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Data Structures | |
struct | _RECT |
struct | _POINT |
struct | _SIZE |
struct | _RGB |
Macros | |
#define | SIZEOF_PTR 4 |
The size of a pointer. 4 for 32-bit and 8 for 64-bit. More... | |
#define | SIZEOF_HPTR 2 |
The size of a half or pointer. 2 for 32-bit and 4 for 64-bit. More... | |
#define | LOBYTE(w) ((BYTE)(w)) |
Returns the low byte of the word w. More... | |
#define | HIBYTE(w) ((BYTE)(((WORD)(w) >> NR_BITS_BYTE) & BITMASK_BYTE)) |
Returns the high byte of the word w. More... | |
#define | MAKEWORD(low, high) ((WORD)(((BYTE)(low)) | (((WORD)((BYTE)(high))) << NR_BITS_BYTE))) |
Makes a word from low byte and high byte. More... | |
#define | MAKEWORD16(low, high) ((WORD16)(((BYTE)(low)) | (((WORD16)((BYTE)(high))) << 8))) |
Makes a 16-bit word from low byte and high byte. More... | |
#define | MAKEDWORD32(first, second, third, fourth) |
Makes a WORD32 value with four bytes. More... | |
#define | MAKEWPARAM(first, second, third, fourth) |
Makes a WPARAM value with four bytes. More... | |
#define | FIRSTBYTE(w) ((BYTE)(w)) |
Returns the first byte of the WPARAM w. More... | |
#define | SECONDBYTE(w) ((BYTE)(((DWORD32)(w)) >> 8)) |
Returns the second byte of the WPARAM w. More... | |
#define | THIRDBYTE(w) ((BYTE)(((DWORD32)(w)) >> 16)) |
Returns the third byte of the WPARAM w. More... | |
#define | FOURTHBYTE(w) ((BYTE)(((DWORD32)(w)) >> 24)) |
Returns the fourth byte of the WPARAM w. More... | |
#define | LOWORD(l) ((WORD)(DWORD)(l)) |
Returns the low word of the double word l. More... | |
#define | HIWORD(l) ((WORD)((((DWORD)(l)) >> NR_BITS_WORD) & BITMASK_WORD)) |
Returns the high word of the double word l. More... | |
#define | LOSWORD(l) ((SWORD)(DWORD)(l)) |
Returns the low signed word of the double word l. More... | |
#define | HISWORD(l) ((SWORD)((((DWORD)(l)) >> NR_BITS_WORD) & BITMASK_WORD)) |
Returns the high signed word of the double word l. More... | |
#define | MAKELONG32(low, high) ((DWORD32)(((WORD16)(low)) | (((DWORD32)((WORD16)(high))) << 16))) |
Makes a 32-bit double word from low word and high word which are both in 16-bit. More... | |
#define | MAKELONG(low, high) ((DWORD)(((WORD)(low)) | (((DWORD)((WORD)(high))) << NR_BITS_WORD))) |
Makes a double word with pointer precision from low word and high word. More... | |
#define | GetRValue(rgba) ((BYTE)(rgba)) |
Get the red component from a RGBA quadruple value rgba. More... | |
#define | GetGValue(rgba) ((BYTE)(((DWORD32)(rgba)) >> 8)) |
Get the green component from a RGBA quadruple value rgba. More... | |
#define | GetBValue(rgba) ((BYTE)((DWORD32)(rgba) >> 16)) |
Get the blue component from a RGBA quadruple value rgba. More... | |
#define | GetAValue(rgba) ((BYTE)((DWORD32)(rgba) >> 24)) |
Get the alpha component from a RGBA quadruple value rgba. More... | |
#define | MakeRGBA(r, g, b, a) |
Makes a RGBA quadruple value from red r, green g, blue b and alpha components. More... | |
#define | MakeRGB(r, g, b) MakeRGBA((r), (g), (b), 255) |
Makes a RGB triple value from red r, green g, and blue b components. More... | |
Typedefs | |
typedef unsigned char | BYTE |
A type definition for an 8-bit unsigned character (byte). More... | |
typedef signed char | SBYTE |
A type definition for an 8-bit signed character. More... | |
typedef unsigned short | WORD_HPTR |
An unsigned int (word) type in half pointer precision. More... | |
typedef signed short | SWORD_HPTR |
An signed int type in half pointer precision. More... | |
typedef WORD_HPTR | WORD |
A type definition for an unsigned integer (word). More... | |
typedef SWORD_HPTR | SWORD |
A type definition for a signed integer. More... | |
typedef unsigned short | WORD16 |
A type definition for a 16-bit unsigned integer (word). More... | |
typedef signed short | SWORD16 |
A type definition for a 16-bit signed integer. More... | |
typedef long | LONG_PTR |
A signed long type for pointer precision. More... | |
typedef LONG_PTR | LINT |
Signed integer which has pointer precision. More... | |
typedef LONG_PTR | LRESULT |
Signed result of message processing. More... | |
typedef unsigned long | DWORD_PTR |
An unsigned long type for pointer precision. More... | |
typedef DWORD_PTR | DWORD |
A unsigned long type definition for pointer precision. More... | |
typedef unsigned int | DWORD32 |
A type definition for a 32-bit unsigned integer. More... | |
typedef signed long | SDWORD_PTR |
A signed long type for pointer precision. More... | |
typedef SDWORD_PTR | SDWORD |
A signed long type definition for pointer precision. More... | |
typedef signed int | SDWORD32 |
A type definition for a 32-bit signed integer. More... | |
typedef unsigned int | UINT |
A type definition for unsigned integer. More... | |
typedef int | INT_PTR |
A signed integer type for pointer precision. More... | |
typedef unsigned long | UINT_PTR |
A unsigned integer type for pointer precision. More... | |
typedef long | LONG |
A type definition for long integer. More... | |
typedef unsigned long | ULONG |
A type definition for unsigned long integer. More... | |
typedef UINT_PTR | WPARAM |
A type definition for the first message paramter. More... | |
typedef UINT_PTR | LPARAM |
A type definition for the second message paramter. More... | |
typedef DWORD32 | RGBCOLOR |
A type definition for a RGB color value. More... | |
typedef struct _RECT | RECT |
typedef RECT * | PRECT |
Data type of the pointer to a RECT. More... | |
typedef struct _POINT | POINT |
typedef POINT * | PPOINT |
Data type of the pointer to a POINT. More... | |
typedef struct _SIZE | SIZE |
typedef SIZE * | PSIZE |
Data type of the pointer to a SIZE. More... | |
typedef struct _RGB | RGB |
typedef RGB * | PRGB |
Data type of the pointer to a RGB. More... | |
#define FIRSTBYTE | ( | w | ) | ((BYTE)(w)) |
Returns the fourth byte of the WPARAM w.
#define GetRValue | ( | rgba | ) | ((BYTE)(rgba)) |
#define LOBYTE | ( | w | ) | ((BYTE)(w)) |
#define MAKEDWORD32 | ( | first, | |
second, | |||
third, | |||
fourth | |||
) |
Makes a WORD32 value with four bytes.
Makes a double word with pointer precision from low word and high word.
#define MakeRGB | ( | r, | |
g, | |||
b | |||
) | MakeRGBA((r), (g), (b), 255) |
#define MakeRGBA | ( | r, | |
g, | |||
b, | |||
a | |||
) |
Makes a RGBA quadruple value from red r, green g, blue b and alpha components.
#define MAKEWPARAM | ( | first, | |
second, | |||
third, | |||
fourth | |||
) |
Returns the second byte of the WPARAM w.
SIZEOF_HPTR 2 |
SIZEOF_PTR 4 |