Tsev > Xov xwm > Ntsiab lus

CMD_BUTTON - Kos Ib Khawm

Apr 27, 2019

C daim ntawv prototype

tsis muaj dabtsis cmd_button (int16_t x,

int16_t y,

int16_t w,

int16_t h,

int16_t font,

uint16_t xaiv,

const char * s);

Cov lus qhia

x

x-coordinate khawm saum-sab laug, hauv pixels

y

y-coordinate khawm saum-sab laug, hauv pixels

font

bitmap kov kom qhia lub font siv khawm ntawv. Saib ROM thiab RAM

Fonts.

kev xaiv

Yog vim li cas, lub pob yog kos nrog cov nyhuv 3D thiab qhov nqi yog xoom.

OPT_FLAT tshem tawm cov nyhuv 3D. Tus nqi ntawm OPT_FLAT yog 256.

s

khawm daim ntawv lo. Nws yuav tsum yog ib txoj hlua tawm nrog cov cim null, xws li '\ 0' hauv C

lus. Rau font built-in ROM ntawm FT800, tus ua cim hauv hauv s yog

luam tau ASCII code, piv txwv li, los ntawm 32 txog 127, ob qho tag nrho. Rau kev cai RAM

font, ASCII code ntawm cov cim uas siv tau hauv ntawm s yog los ntawm 1 txog 127.

Kev piav qhia

Xa mus rau cov tshuab hluav taws xob cav cov voj voog ntawm lub cev kom paub ntxiv.

image

image










image

image

image