ui/gtk/list.h

changeset 90
f501f0efc9a8
parent 60
ee4e4742391e
child 100
d2bd73d28ff1
equal deleted inserted replaced
89:2fbb3cac05a5 90:f501f0efc9a8
39 typedef struct UiListView { 39 typedef struct UiListView {
40 UiObject *obj; 40 UiObject *obj;
41 GtkWidget *widget; 41 GtkWidget *widget;
42 UiVar *var; 42 UiVar *var;
43 UiModel *model; 43 UiModel *model;
44 ui_callback ondragstart;
45 void *ondragstartdata;
46 ui_callback ondragcomplete;
47 void *ondragcompletedata;
48 ui_callback ondrop;
49 void *ondropdata;
50
44 } UiListView; 51 } UiListView;
45 52
46 typedef struct UiTreeEventData { 53 typedef struct UiTreeEventData {
47 UiObject *obj; 54 UiObject *obj;
48 ui_callback activate; 55 ui_callback activate;
76 UiListSelection ui_listview_selection( 83 UiListSelection ui_listview_selection(
77 GtkTreeSelection *selection, 84 GtkTreeSelection *selection,
78 UiTreeEventData *event); 85 UiTreeEventData *event);
79 int ui_tree_path_list_index(GtkTreePath *path); 86 int ui_tree_path_list_index(GtkTreePath *path);
80 87
88 void ui_listview_add_dnd(UiListView *listview, UiListArgs *args);
89 void ui_listview_enable_drop(UiListView *listview, UiListArgs *args);
90
81 UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata); 91 UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata);
82 GtkWidget* ui_create_combobox(UiObject *obj, UiModel *model, UiVar *var, ui_callback f, void *udata); 92 GtkWidget* ui_create_combobox(UiObject *obj, UiModel *model, UiVar *var, ui_callback f, void *udata);
83 void ui_combobox_change_event(GtkComboBox *widget, UiEventData *e); 93 void ui_combobox_change_event(GtkComboBox *widget, UiEventData *e);
84 void ui_combobox_modelupdate(UiList *list, int i); 94 void ui_combobox_modelupdate(UiList *list, int i);
85 UiListSelection ui_combobox_getselection(UiList *list); 95 UiListSelection ui_combobox_getselection(UiList *list);

mercurial