📄 nlistview.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 __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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -