Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
2531:f45ebd96ebe5 | 2532:457c91634881 |
---|---|
9275 retval = ud->data; | 9275 retval = ud->data; |
9276 } | 9276 } |
9277 DW_FUNCTION_RETURN_THIS(retval); | 9277 DW_FUNCTION_RETURN_THIS(retval); |
9278 } | 9278 } |
9279 | 9279 |
9280 /* | |
9281 * Compare two window handles. | |
9282 * Parameters: | |
9283 * window1: First window handle to compare. | |
9284 * window2: Second window handle to compare. | |
9285 * Returns: | |
9286 * TRUE if the windows are the same object, FALSE if not. | |
9287 */ | |
9288 int API dw_window_compare(HWND window1, HWND window2) | |
9289 { | |
9290 /* If anything special is require to compare... do it | |
9291 * here otherwise just compare the handles. | |
9292 */ | |
9293 if(window1 && window2 && window1 == window2) | |
9294 return TRUE; | |
9295 return FALSE; | |
9296 } | |
9297 | |
9280 #define DW_TIMER_MAX 64 | 9298 #define DW_TIMER_MAX 64 |
9281 static NSTimer *DWTimers[DW_TIMER_MAX]; | 9299 static NSTimer *DWTimers[DW_TIMER_MAX]; |
9282 | 9300 |
9283 /* | 9301 /* |
9284 * Add a callback to a timer event. | 9302 * Add a callback to a timer event. |