📄 nbutton.h
字号:
/* * NanoWidgets v0.1 * (C) 1999 Screen Media AS * * Written by Vidar Hokstad * * Contains code from The Nano Toolkit, * (C) 1999 by Alexander Peuchert. * */#ifndef __NBUTTON_H#define __NBUTTON_HDEFINE_NOBJECT(button,widget) int pressed; char * text; void (*onclick_handler) (struct button_nobject *, unsigned int);END_NOBJECTDEFINE_NCLASS(button,widget) NSLOT(int,init); NSLOT(void,onclick); /* Set an onclick handler */END_NCLASS#define n_button_init(__this__,__parent__,__text__) n_call(button,init,__this__,(__this__,__parent__,__text__))#define n_button_onclick(__this__,__handler__) n_call(button,onclick,__this__,(__this__,__handler__))/* Define a simpler name for the instance structure */typedef struct button_nobject NBUTTON;void n_init_button_class(void); /* Initialise the button class */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -