dialog_frame.h

来自「LINUX下POS收银系统,可以对货物及工作人员进行管理.近本实现增删改查的功能」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef _DIALOG_FRAME_H
#define _DIALOG_FRAME_H
#include <ncurses.h>
#include "button.h"
#include "frame.h"
#include "input.h"
#include "link.h"
typedef struct dialog
{
	FRAME **f;
	INPUT **i;
	BUTTON **b;
	LINK *link;
	char **str;

	void (*show)(struct dialog *,void (*fun)(void *));
	void (*free)(struct dialog **,void (*fun)(void **));
	int (*control)(struct dialog *,int (*fun)(void *));
}DIALOG;

DIALOG *create_dialog(FRAME **f,INPUT **i,BUTTON **b,char **str,LINK *link);

#endif /*_DIALOG_FRAME_H*/

⌨️ 快捷键说明

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