ui/motif/list.h

branch
newapi
changeset 427
7ead63398a50
parent 406
0ebf9d7b23e8
--- a/ui/motif/list.h	Tue Dec 31 17:57:43 2024 +0100
+++ b/ui/motif/list.h	Wed Jan 01 11:39:42 2025 +0100
@@ -37,7 +37,38 @@
 extern "C" {
 #endif
 
+typedef struct UiListView {
+    UiObject *obj;
+    Widget widget;
+    UiVar *var;
+    UiModel* model;
+    ui_getvaluefunc getvalue;
     
+    UiListSelection current_selection;
+    
+    ui_callback onactivate;
+    void* onactivatedata;
+    ui_callback onselection;
+    void* onselectiondata;
+    ui_callback ondragstart;
+    void* ondragstartdata;
+    ui_callback ondragcomplete;
+    void* ondragcompletedata;
+    ui_callback ondrop;
+    void* ondropsdata;
+    UiBool multiselection;
+} UiListView;
+
+void ui_listview_destroy(Widget w, UiListView *listview, XtPointer d);
+
+void ui_listview_activate(Widget w, UiListView *listview, XmListCallbackStruct *cb);
+void ui_listview_selection(Widget w, UiListView *listview, XmListCallbackStruct *cb);
+
+void ui_listview_update(UiList *list, int i);
+UiListSelection ui_listview_getselection(UiList *list);
+void ui_listview_setselection(UiList *list, UiListSelection selection);
+
+void* ui_strmodel_getvalue(void *elm, int column);
 
 #ifdef	__cplusplus
 }

mercurial