comparison android/dw.cpp @ 2697:4470089e14b3

Android: Implement dw_window_function(). Call the function directly on Android. Essential only Kotlin/Java code runs on the UI thread on Android... with the exception of expose callbacks... so should be safe to just run on any thread.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 02 Nov 2021 22:34:17 +0000
parents bc7c16800892
children 9df2c11f020f
comparison
equal deleted inserted replaced
2696:bc7c16800892 2697:4470089e14b3
5219 * function: Function pointer to be called. 5219 * function: Function pointer to be called.
5220 * data: Pointer to the data to be passed to the function. 5220 * data: Pointer to the data to be passed to the function.
5221 */ 5221 */
5222 void API dw_window_function(HWND handle, void *function, void *data) 5222 void API dw_window_function(HWND handle, void *function, void *data)
5223 { 5223 {
5224 void (* windowfunc)(void *);
5225
5226 windowfunc = (void (*)(void *))function;
5227
5228 if(windowfunc)
5229 windowfunc(data);
5224 } 5230 }
5225 5231
5226 5232
5227 /* 5233 /*
5228 * Changes the appearance of the mouse pointer. 5234 * Changes the appearance of the mouse pointer.