⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nbutton.h

📁 针对嵌入式micro window系统
💻 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 + -