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

📄 window.h

📁 ucos-II2.51在S3C44B0X上的移植 开发环境:SDT2.50 实验板:ES44BO
💻 H
字号:
/*
 * Copyright (c) 2003, The Lab of Embedded System and Net Security,WHUT..
 * All rights reserved. 
 *
 * Filename:    window.h
 * Discription: This file initializes the window interface on LCD.
 * 
 * version:            1.0
 * Author:             Qiu Yanfei <qyfhm@tom.com>
 * Accomplished Date:  2004/7/31 11:05:00
 *
*/
#ifndef _WINDOW_H_
#define _WINDOW_H_

#ifdef WINDOW_GLOBAL
#define WINDOW_EXT
#else 
#define WINDOW_EXT extern
#endif /* WINDOW_GLOBAL */

#include "../cpu/def.h"

#define MAX_LIST_ENTRY   		6
#define LIST_START_X   	    0
#define LIST_START_Y   	    0
#define LIST_LEN            480
#define LIST_WID            17
#define LIST_FONT_COLOR     WHITE
#define LIST_MASK_COLOR     BLACK  
#define LIST_BACK_COLOR     BLACK

#define STATS_BAR_X           10
#define STATS_BAR_Y           190
#define STATS_BAR_LEN         300
#define STATS_BAR_WID         20
#define STATS_BAR_BACK_COLOR  WHITE
#define STATS_BAR_FONT_COLOR  BLACK

struct gui_editbox{
U32 x;
U32 y;
U32 len;
U32 width;
U8 bkcolor;
U8 frntcolor;
};

WINDOW_EXT void edit_draw(struct gui_editbox *edit);
WINDOW_EXT void edit_refresh(struct gui_editbox *edit, S8 *text);

WINDOW_EXT void gui_list_init(void);
WINDOW_EXT U8 gui_list_inc(void);
WINDOW_EXT U8 gui_list_dec(void);
WINDOW_EXT U8 gui_list_selected(void);
WINDOW_EXT void gui_demo_end(void);


#endif /* _WINDOW_H_ */

⌨️ 快捷键说明

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