MiniGUI API Reference (MiniGUI-Processes)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | MSG_KEYDOWN 0x0010 |
User presses a key down. More... | |
#define | MSG_CHAR 0x0011 |
A character translated from MSG_KEYDOWN message. More... | |
#define | MSG_KEYUP 0x0012 |
User releases up a key. More... | |
#define | MSG_SYSKEYDOWN 0x0013 |
User presses down a key when <Alt> key is down. More... | |
#define | MSG_SYSCHAR 0x0014 |
A system character translated from MSG_SYSKEYDOWN message. More... | |
#define | MSG_SYSKEYUP 0x0015 |
User releases up a key when <Alt> key is down. More... | |
#define | MSG_KEYLONGPRESS 0x0016 |
A key is long pressed. More... | |
#define | MSG_KEYALWAYSPRESS 0x0017 |
A key is always pressed. More... | |
#define | MSG_KEYSYM 0x0018 |
A key symbol translated from MSG_KEYDOWN messages. More... | |
#define | MSG_UTF8CHAR 0x0019 |
A character translated from MSG_KEYDOWN message. More... | |
#define | DEF_LPRESS_TIME 500 |
Default long pressed time of a key. More... | |
#define | DEF_APRESS_TIME 1000 |
Default always pressed time of a key. More... | |
#define | DEF_INTERVAL_TIME 200 |
Default send MSG_KEYLONGPRESS in interval value. More... | |
#define | SetKeyLongPressTime(time) |
User set default long pressed time of a key. More... | |
#define | SetKeyAlwaysPressTime(time) |
User set default always pressed time of a key. More... | |
#define | SetIntervalTime(time) |
User set default interval time that MSG_KEYLONGPRESS is sent. More... | |
#define DEF_APRESS_TIME 1000 |
Default always pressed time of a key.
#define DEF_INTERVAL_TIME 200 |
#define DEF_LPRESS_TIME 500 |
Default long pressed time of a key.
#define MSG_CHAR 0x0011 |
A character translated from MSG_KEYDOWN message.
This message is translated from a MSG_KEYDOWN message by TranslateMessage and sent to the current active window.
ch_buff | The buffer to store the bytes of the character. |
key_flags | The shift key status when this message occurred. |
#define MSG_KEYALWAYSPRESS 0x0017 |
#define MSG_KEYDOWN 0x0010 |
User presses a key down.
This message is posted to the current active window when the user presses a key down.
scancode | The scan code of the pressed key. |
key_flags | The shift key status when this message occurred. |
Example:
#define MSG_KEYLONGPRESS 0x0016 |
#define MSG_KEYSYM 0x0018 |
A key symbol translated from MSG_KEYDOWN messages.
This message is translated from a MSG_KEYDOWN message by TranslateMessage and sent to the current active window.
Note that one translation may generate a key symbol made by more than one character, e.g., when using default keymap, DEL key will generate the key symbol "^[[3~".
index | The index of the key symbol in one translation, zero for a new translation, and the keysym is the first symbol. |
keysym | The code of the key symbol. |
key_flags | The shift key status when this message occurred. |
#define MSG_KEYUP 0x0012 |
User releases up a key.
This message is posted to the current active window when the user releases up a key.
scancode | The scan code of the released key. |
key_flags | The shift key status when this message occurred. |
#define MSG_SYSCHAR 0x0014 |
A system character translated from MSG_SYSKEYDOWN message.
This message is translated from a MSG_SYSKEYDOWN message by TranslateMessage and sent to the current active window.
ch | The ASCII code of the pressed key. |
key_flags | The shift key status when this message occurred. |
#define MSG_SYSKEYDOWN 0x0013 |
User presses down a key when <Alt> key is down.
This message is posted to the current active window when the user presses down a key as <Alt> key is down.
scancode | The scan code of the pressed key. |
key_flags | The shift key status when this message occurred. |
#define MSG_SYSKEYUP 0x0015 |
User releases up a key when <Alt> key is down.
This message is posted to the current active window when the user releases up a key as <Alt> key is down.
scancode | The scan code of the released key. |
key_flags | The shift key status when this message occurred. |
#define MSG_UTF8CHAR 0x0019 |
A character translated from MSG_KEYDOWN message.
This message generally sent by a IME window to the current active window. The chararcter will be encoded in UTF-8.
ch_utf8 | The buffer to save the character in UTF-8. |
#define SetIntervalTime | ( | time | ) |
#define SetKeyAlwaysPressTime | ( | time | ) |