window.h

来自「ucos-II2.51在S3C44B0X上的移植 开发环境:SDT2.50 」· C头文件 代码 · 共 59 行

H
59
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?