FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
211
Product Page
Document Feedback Copyright © Bridgetek Limited
5.37 CMD_TOGGLE – draw a toggle switch
C prototype
void cmd_toggle( int16_t x,
int16_t y,
int16_t w,
int16_t font,
uint16_t options,
uint16_t state,
const char* s );
Parameters
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. See ROM and RAM Fonts
options