nlistview.h

来自「针对嵌入式micro window系统」· C头文件 代码 · 共 39 行

H
39
字号
/* * NanoWidgets v0.1 * (C) 1999 Screen Media AS *  * Written by Vidar Hokstad *  * Contains code from The Nano Toolkit, * (C) 1999 by Alexander Peuchert. * */#ifndef __NLISTVIEW_H#define __NLISTVIEW_HDEFINE_NOBJECT(listview,widget)    const char ** entries;    int numentries;    int maxentries;  /* Maximum number of entries in listbox. If this is exceeded, we allocated a new array. */    int topentry;    /* Entry shown at the top of the listbox. */    int selected;    /* Number of selected list entry. -1 if none */END_NOBJECTDEFINE_NCLASS(listview,widget)    NSLOT(void,init);    NSLOT(void,setselected);    NSLOT(int,addentries);    NSLOT(int,addentry);    NSLOT(const char * ,getselected);END_NCLASS#define n_listview_init(__this__,__parent__,__text__) n_call(listview,init,__this__,(__this__,__parent__,__text__))typedef struct listview_nobject NLISTVIEW;void n_init_listview_class(void);	/* Initialise listview class */#endif

⌨️ 快捷键说明

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