EasyManua.ls Logo

Bridgetek FT801 - CMD_BUTTON - draw a button

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
170
Product Page
Document Feedback Copyright © Bridgetek Limited
5.25 CMD_BUTTON - draw a button
C prototype
void cmd_button( int16_t x,
int16_t y,
int16_t w,
int16_t h,
int16_t font,
uint16_t options,
const char* s );
Parameters
x
x-coordinate of button top-left, in pixels
y
y-coordinate of button top-left, in pixels
font
bitmap handle to specify the font used in button label. See ROM and RAM
Fonts.
options
By default, the button is drawn with a 3D effect and the value is zero.
OPT_FLAT removes the 3D effect. The value of OPT_FLAT is 256.
s
button label. It must be one string terminated with null character, i.e. '\0' in C
language. For built-in ROM font of FT800, the valid character inside of s is
printable ASCII code, i.e., from 32 to 127, both inclusive. For custom RAM
font, the ASCII code of valid character inside of s is from 1 to 127.
Description
Refer to Co-processor engine widgets physical dimensions for more information.
Command layout
+0
CMD_BUTTON(0xffffff0d)
+4
X
+6
Y
+8
W

Table of Contents