menu.h

来自「基于h323协议的软phone」· C头文件 代码 · 共 65 行

H
65
字号
/***************************************************************************
*
*  Module:         StatusMachine.h
*
*  Description:    
*
*  Author:         chenjian
*
*  Copyright 1999, BEP Technologies, Inc., All rights reserved
*
*
*  Change Log:
*
*  Date          By              Description
*  ==========    ===========     ==========================================
*  10/20/2003    chenjian        Created
*
***************************************************************************/

#ifndef __MENU_H__
#define __MENU_H__

#include "task.h"

#ifdef __cplusplus
extern "C" {
#endif

#define LCD_ROW_NUM 2

typedef struct s_menuE
{
	char* strName;
	/*char* strMemo;*/
	f_act funcAction;
} s_menuE;

typedef struct s_point
{
	struct s_point* up;
	struct s_point* down;
	struct s_point* father;
	struct s_point* son;
	struct s_menuE* menu;
} s_point;

typedef struct s_menu
{
	int iShow;
	int iDis;
	s_point* pCur;
	s_point* pRoot;
} s_menu;

extern void initPoint(s_point* p); 
extern void clearMenuMen(s_menu* pMenu); 
extern void clearPointMem(s_point* p);
extern int menuAction(s_event* psEvent, s_task* psTask); 
extern int resetMenuAct(s_task* psTask);
extern int clearMenuAct(s_task* psTask);
#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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