info@panadisplay.com
CMD-SCROLLBAR - Kos Ib Cov Ntawv Scroll

CMD-SCROLLBAR - Kos Ib Cov Ntawv Scroll

Apr 27, 2019

image

C daim ntawv prototype

tsis muaj dabtsis cmd_scrollbar (int16_t x,

int16_t y,

int16_t w,

int16_t h,

uint16_t xaiv,

uint16_t val,

uint16_t loj,

uint16_t ntau);

Cov lus qhia

x

x-coordinate ntawm scroll bar sab saum toj-sab laug, hauv pixels

y

y-coordinate ntawm scroll bar sab laug-sab laug, hauv pixels

w

Dav dav ntawm scroll bar, hauv pixels. Yog qhov dav dav tshaj qhov siab, qhov khij nyiab yog

kos horizontally

h

Qhov siab tshaj ntawm scroll bar, hauv pixels. Yog tias qhov siab siab tshaj qhov dav, lub nqhis dej yog

kos vertically

kev xaiv

Los ntawm kev hloov qhov bar scroll yog twv nrog 3D effect thiab cov nqi ntawm cov kev xaiv yog

xoom. Kev xaiv OPT_FLAT tshem tawm cov nyhuv 3D thiab nws tus nqi yog 256

val

Cov khoom muaj nqis ntawm scroll bar, ntawm 0 thiab khwv yees

ntau

Tus nqi siab tshaj plaws

Kev piav qhia

Xa mus rau CMD_PROGRESS rau cov lus qhia ntxiv txog ntawm lub cev.

image

image

image

image