ui/winui/table.h

branch
newapi
changeset 223
8d7ca1b320e2
parent 221
a82d9beaa94a
child 224
88bc21b19213
--- a/ui/winui/table.h	Thu Oct 19 20:38:16 2023 +0200
+++ b/ui/winui/table.h	Thu Oct 19 21:19:19 2023 +0200
@@ -39,6 +39,14 @@
 
 } UiTableColumn;
 
+struct UiWinuiTableDnd {
+	UiTableDndEvent evtobj;
+	int evttype = 0;
+	winrt::Microsoft::UI::Xaml::DragStartingEventArgs dndstartargs = { nullptr };
+	winrt::Microsoft::UI::Xaml::DropCompletedEventArgs dndcompletedargs = { nullptr };
+	winrt::Microsoft::UI::Xaml::DragEventArgs drageventargs = { nullptr };
+};
+
 typedef struct UiTable {
 	winrt::Microsoft::UI::Xaml::Controls::ScrollViewer scrollw;
 	winrt::Microsoft::UI::Xaml::Controls::Grid grid;
@@ -64,8 +72,8 @@
 	int lastSelection = 0;
 	ULONG64 lastPointerPress = 0;
 	std::vector<int> selection;
-	bool enabledrag = false;
-	bool enabledrop = false;
+	bool enabledrag = false; // TODO: remove
+	bool enabledrop = false; // TODO: remove
 
 	UiTable(UiObject *obj, winrt::Microsoft::UI::Xaml::Controls::ScrollViewer scrollW, winrt::Microsoft::UI::Xaml::Controls::Grid grid);
 
@@ -85,6 +93,8 @@
 
 	void remove_from_selection(int row);
 
+	UiListSelection uiselection();
+
 	void call_handler(ui_callback cb, void *cbdata);
 } UiTable;
 

mercurial