ui/gtk/list.h

branch
newapi
changeset 394
bedd499b640d
parent 360
681b930abe84
child 411
3e91b7aff6a1
equal deleted inserted replaced
393:3099bf907e21 394:bedd499b640d
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