1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/** \file
* \brief List Control
*
* See Copyright Notice in "iup.h"
*/
#ifndef __IUP_LIST_H
#define __IUP_LIST_H
#ifdef __cplusplus
extern "C" {
#endif
void iupdrvListInitClass(Iclass* ic);
void iupdrvListAddBorders(Ihandle* ih, int *w, int *h);
void iupdrvListAddItemSpace(Ihandle* ih, int *h);
int iupdrvListGetCount(Ihandle* ih);
void iupdrvListAppendItem(Ihandle* ih, const char* value);
void iupdrvListInsertItem(Ihandle* ih, int pos, const char* value);
void iupdrvListRemoveItem(Ihandle* ih, int pos);
void iupdrvListRemoveAllItems(Ihandle* ih);
int iupListGetPos(Ihandle* ih, const char* name_id);
int iupListSetIdValueAttrib(Ihandle* ih, const char* name_id, const char* value);
void iupListSetInitialItems(Ihandle* ih);
void iupListSingleCallActionCallback(Ihandle* ih, IFnsii cb, int pos);
void iupListMultipleCallActionCallback(Ihandle* ih, IFnsii cb, IFns multi_cb, int* pos, int sel_count);
char* iupListGetNCAttrib(Ihandle* ih);
char* iupListGetPaddingAttrib(Ihandle* ih);
char* iupListGetSpacingAttrib(Ihandle* ih);
void iupListSingleCallDblClickCallback(Ihandle* ih, IFnis cb, int pos);
void iupListUpdateOldValue(Ihandle* ih, int pos, int removed);
struct _IcontrolData
{
int sb, /* scrollbar configuration, can be changed only before map */
nc,
spacing,
horiz_padding,
vert_padding,
last_caret_pos,
is_multiple,
is_dropdown,
has_editbox;
Imask* mask;
};
#ifdef __cplusplus
}
#endif
#endif
|