|
- /*********************************************************************
- *
- * _DemoCursor
- */
- char _acP[] = {
- 100,100,100,100,100
- };
- static const GUI_BITMAP *bm[]={
- &bmcoursor,
- &bmcoursor,
- &bmcoursor,
- &bmcoursor,
- &bmcoursor
- };
- static void _DemoCursor(void) {
- GUI_CURSOR_ANIM aa;
- GUI_SetBkColor(GUI_BLUE);
- GUI_Clear();
- GUI_SetColor(GUI_WHITE);
- GUI_SetFont(&GUI_Font24_ASCII);
- GUI_DispStringHCenterAt("CURSOR_Sample - Sample", 160, 5);
- GUI_SetFont(&GUI_Font8x16);
- aa.NumItems = 5;
- aa.Period = 100;
- aa.ppBm = &bmcoursor;
- aa.pPeriod = 0;
- aa.xHot = 64;
- aa.yHot = 64;
- GUI_CURSOR_SelectAnim(&aa);
- while (1) {
- GUI_Delay(500);
- // _DispCursor();
- // GUI_ClearRect(0, 60, 319, 200);
- // _MoveCursor();
- // GUI_ClearRect(0, 60, 319, 200);
-
- }
- }
复制代码 |
|