nbutton.h
来自「针对嵌入式micro window系统」· C头文件 代码 · 共 35 行
H
35 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?