⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maintask.c

📁 这是我移植到GBA游戏机上的uCGUI3.24 可以通过模拟器仿真
💻 C
字号:
/*
*********************************************************************************************************
*                                                礐/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -