Tsev > Xov xwm > Ntsiab lus

CMD_SPINNER - Pib Tus Txais Tawm Tsiaj

Apr 27, 2019

image

Tus spinner yog animated overlay uas qhia tau hais tias tus neeg siv hais tias qee qhov hauj lwm tseem tab tom ua. Yuav

ua rau tus spinner, tsim ib daim ntawv tso saib thiab ces siv CMD_SPINNER. Cov tshuab ua haujlwm

cav overlays lub spinner nyob rau tam sim no zaub sau, swaps daim ntawv sau kom nws

pom, ces maj mam animates mus txog thaum nws tau txais CMD_STOP. REG_MACRO_0 thiab

Reg_MACRO_1 cov npe yog siv los ua cov nyhuv ua haujlwm zoo. Lub

zaus ntawm cov ntsiab lus txav zog yog saib rau ntawm cov txheej txheem tus nqi ntsuas.

Feem ntau yog rau cov npo 480x272 cov duab tso tawm saib yog $ 60fps. Rau cov style 0 thiab 60fps,

tus taw tes repeats qhov sib lawv liag hauv 2 vib nas this. Rau cov style 1 thiab 60fps, qhov point rov qab

qhov sib lawv liag li ntawm 1.25 feeb. Rau style 2 thiab 60fps, lub moos tes repeats lub

sib lawv liag hauv 2 vib nas this. Rau cov style 3 thiab 60fps, qhov khawm dots rov hais dua

hauv 1 thib ob.

Nco ntsoov tias tsuas yog ib qho ntawm CMD_SKETCH, CMD_SCREENSAVER, los yog CMD_SPINNER thiaj ua tau

active ntawm ib lub sij hawm.

C daim ntawv prototype

tsis muaj dabtsis cmd_spinner (int16_t x,

int16_t y,

uint16_t style,

uint16_t nplai);

image

Cov lus qhia

X

Tus X coordinate ntawm sab laug sab laug ntawm spinner

Y

Tus Y coordinate ntawm sab laug sab laug ntawm spinner

Style

Cov style ntawm spinner. Muaj ntau yam yog los ntawm 0 mus rau 3.

Nplai

Kev ntsuas ntawm kev sib tsoo. 0 txhais tau tias tsis muaj kev scaling.

Piv txwv

Tsim ib daim ntawv tso tawm, tom qab ntawd pib lub suab lus:

image

image

image

image

image