EVE's co-processor command. More...
Go to the source code of this file.
Functions | |
static uint8_t | countArgs (const char *str) |
Count number of arguments in Cmd_Text for string format. | |
EVE_HAL_EXPORT void | EVE_CoCmd_text (EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, const char *s,...) |
Send CMD_TEXT. | |
EVE_HAL_EXPORT void | EVE_CoCmd_text_s (EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, const char *s, uint32_t length) |
Send CMD_TEXT with length. | |
EVE_HAL_EXPORT void | EVE_CoCmd_text_ex (EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, bool bottom, int16_t baseLine, int16_t capsHeight, int16_t xOffset, const char *s) |
Send CMD_TEXT. | |
EVE_HAL_EXPORT void | EVE_CoCmd_button (EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, int16_t font, uint16_t options, const char *s,...) |
Send CMD_BUTTON. | |
EVE_HAL_EXPORT void | EVE_CoCmd_keys (EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t h, int16_t font, uint16_t options, const char *s) |
Send CMD_KEYS. | |
EVE_HAL_EXPORT void | EVE_CoCmd_toggle (EVE_HalContext *phost, int16_t x, int16_t y, int16_t w, int16_t font, uint16_t options, uint16_t state, const char *s,...) |
Send CMD_TOGGLE. | |
EVE_HAL_EXPORT void | EVE_CoCmd_number (EVE_HalContext *phost, int16_t x, int16_t y, int16_t font, uint16_t options, int32_t n) |
Send CMD_NUMBER. | |
EVE's co-processor command.
MIT License
Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file EVE_CoCmd_Widgets.c.
|
static |
Count number of arguments in Cmd_Text for string format.
str |
Definition at line 42 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_button | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | w, | ||
int16_t | h, | ||
int16_t | font, | ||
uint16_t | options, | ||
const char * | s, | ||
... | |||
) |
Send CMD_BUTTON.
phost | Pointer to Hal context |
x | x-coordinate of button top-left, in pixels |
y | y-coordinate of button top-left, in pixels |
w | Button width |
h | Button height |
font | font to use for text, 0-31 |
options | Font option |
s | Button label text, UTF-8 encoding |
... | Format of button label text, like printf |
Definition at line 154 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_keys | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | w, | ||
int16_t | h, | ||
int16_t | font, | ||
uint16_t | options, | ||
const char * | s | ||
) |
Send CMD_KEYS.
phost | Pointer to Hal context |
x | x-coordinate of keys top-left, in pixels |
y | y-coordinate of keys top-left, in pixels |
w | Keys width |
h | Keys height |
font | Font for keys label |
options | Drawing option |
s | key labels, one character per key |
Definition at line 199 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_number | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | font, | ||
uint16_t | options, | ||
int32_t | n | ||
) |
Send CMD_NUMBER.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | font to use for text, 0-31 |
options | Drawing option |
n | The number to display, either unsigned or signed 32-bit |
Definition at line 277 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_text | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | font, | ||
uint16_t | options, | ||
const char * | s, | ||
... | |||
) |
Send CMD_TEXT.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | Font to use for text, 0-31 |
options | Text option |
s | Text string, UTF-8 encoding |
... | Text format |
Definition at line 63 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_text_ex | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | font, | ||
uint16_t | options, | ||
bool | bottom, | ||
int16_t | baseLine, | ||
int16_t | capsHeight, | ||
int16_t | xOffset, | ||
const char * | s | ||
) |
Send CMD_TEXT.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | Font to use for text, 0-31 |
options | Text option |
bottom | |
baseLine | |
capsHeight | |
xOffset | |
s | Text string, UTF-8 encoding |
Definition at line 136 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_text_s | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | font, | ||
uint16_t | options, | ||
const char * | s, | ||
uint32_t | length | ||
) |
Send CMD_TEXT with length.
phost | Pointer to Hal context |
x | x-coordinate of text base, in pixels |
y | y-coordinate of text base, in pixels |
font | Font to use for text, 0-31 |
options | Text option |
s | Text string, UTF-8 encoding |
length | length of text |
Definition at line 108 of file EVE_CoCmd_Widgets.c.
EVE_HAL_EXPORT void EVE_CoCmd_toggle | ( | EVE_HalContext * | phost, |
int16_t | x, | ||
int16_t | y, | ||
int16_t | w, | ||
int16_t | font, | ||
uint16_t | options, | ||
uint16_t | state, | ||
const char * | s, | ||
... | |||
) |
Send CMD_TOGGLE.
phost | Pointer to Hal context |
x | x-coordinate of top-left of toggle, in pixels |
y | y-coordinate of top-left of toggle, in pixels |
w | width of toggle, in pixels |
font | font to use for text, 0-31 |
options | Drawing option |
state | state of the toggle: 0 is off, 65535 is on. |
s | string labels for toggle,UTF-8 encoding |
... | string labels format |
Definition at line 229 of file EVE_CoCmd_Widgets.c.