📄 dialog_frame.c
字号:
#include "dialog_frame.h"
#include <malloc.h>
/*
typedef struct dialog
{
FRAME **f;
INPUT **i;
BUTTON **b;
char **str;
void (*show)(struct dialog *);
void (*free)(struct dialog **);
int (*control)(struct dialog *,int (*fun)(void *));
}DIALOG;
DIALOG *create_dialog(FRAME **f,INPUT **i,BUTTON **b,char **str);
*/
void show_dialog(DIALOG *d,void (*fun)(void *))
{
fun(d);
}
int control_dialog(DIALOG *d,int (*fun)(void *))
{
return fun(d);
}
void free_dialog_frame(DIALOG **d,void (*fun)(void **))
{
// fun(&(**d));
}
DIALOG *create_dialog(FRAME **f,INPUT **i,BUTTON **b,char **str,LINK *link)
{
DIALOG *d=(DIALOG *)malloc(sizeof(DIALOG));
d->f=f;
d->i=i;
d->b=b;
d->str=str;
d->link=link;
d->show=show_dialog;
d->free=free_dialog_frame;
d->control=control_dialog;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -