Mercurial > dwindows
diff ios/dw.m @ 2532:457c91634881
Added dw_window_compare() to check if two window handles refer to the same object.
Most platforms just compare the pointer or handle, but Android uses IsSameObject().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 11 May 2021 05:00:07 +0000 |
parents | 206a0643add6 |
children | 1c17472a175a |
line wrap: on
line diff
--- a/ios/dw.m Tue May 11 00:51:20 2021 +0000 +++ b/ios/dw.m Tue May 11 05:00:07 2021 +0000 @@ -9277,6 +9277,24 @@ DW_FUNCTION_RETURN_THIS(retval); } +/* + * Compare two window handles. + * Parameters: + * window1: First window handle to compare. + * window2: Second window handle to compare. + * Returns: + * TRUE if the windows are the same object, FALSE if not. + */ +int API dw_window_compare(HWND window1, HWND window2) +{ + /* If anything special is require to compare... do it + * here otherwise just compare the handles. + */ + if(window1 && window2 && window1 == window2) + return TRUE; + return FALSE; +} + #define DW_TIMER_MAX 64 static NSTimer *DWTimers[DW_TIMER_MAX];