maintask.c

来自「这是我移植到GBA游戏机上的uCGUI3.24 可以通过模拟器仿真」· C语言 代码 · 共 61 行

C
61
字号
/*
*********************************************************************************************************
*                                                礐/GUI
*                        Universal graphic software for embedded applications
*
*                       (c) Copyright 2002, Micrium Inc., Weston, FL
*                       (c) Copyright 2000, SEGGER Microcontroller Systeme GmbH          
*
*              礐/GUI is protected by international copyright laws. Knowledge of the
*              source code may not be used to write a similar product. This file may
*              only be used in accordance with a license and should not be redistributed 
*              in any way. We appreciate your understanding and fairness.
*
* File        : MainTask.c
* Purpose     : Application program in windows simulator
*********************************************************************************************************
*/


#include "GUI.h"

/*
  *******************************************************************
  *
  *              main()
  *
  *******************************************************************
*/
void MainTask(void) {

  WM_HWIN hFrameWin;
    
  GUI_Init();
  GUI_SetBkColor(GUI_RED); GUI_Clear();
  GUI_Delay(10);
  GUI_SetBkColor(GUI_BLUE); GUI_Clear();
  GUI_Delay(10);
  GUI_SetColor(GUI_WHITE);
  

  WM_SetCreateFlags(WM_CF_MEMDEV);
  
  WM_EnableMemdev(WM_HBKWIN);
  
  WM_SetDesktopColor(GUI_RED);
  
  hFrameWin = FRAMEWIN_Create("Framewin", 0, WM_CF_SHOW, 20, 20, 60, 60);
  
  FRAMEWIN_SetActive(hFrameWin, 1);
  
  FRAMEWIN_SetMoveable(hFrameWin, 1);
  
  GUI_CURSOR_Show();
  
  GUI_Delay(20); 
   
  while (1) {
    GUI_Delay(20);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?