ui/winui/table.h

branch
newapi
changeset 221
a82d9beaa94a
parent 218
d06e7e8e53e1
child 223
8d7ca1b320e2
--- a/ui/winui/table.h	Tue Oct 17 21:50:48 2023 +0200
+++ b/ui/winui/table.h	Thu Oct 19 18:30:19 2023 +0200
@@ -51,6 +51,12 @@
 	void* onactivatedata;
 	ui_callback onselection;
 	void* onselectiondata;
+	ui_callback ondragstart;
+	void* ondragstartdata;
+	ui_callback ondragcomplete;
+	void* ondragcompletedata;
+	ui_callback ondrop;
+	void* ondropdata;
 	UiModel* model = nullptr;
 	std::vector<UiTableColumn> header;
 	ui_getvaluefunc getvalue = nullptr;
@@ -58,6 +64,8 @@
 	int lastSelection = 0;
 	ULONG64 lastPointerPress = 0;
 	std::vector<int> selection;
+	bool enabledrag = false;
+	bool enabledrop = false;
 
 	UiTable(UiObject *obj, winrt::Microsoft::UI::Xaml::Controls::ScrollViewer scrollW, winrt::Microsoft::UI::Xaml::Controls::Grid grid);
 

mercurial