Mercurial > dwindows
comparison mac/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 | fa976a5bc7bd |
children | 2acc7ba5dea0 |
comparison
equal
deleted
inserted
replaced
2531:f45ebd96ebe5 | 2532:457c91634881 |
---|---|
11486 return ud->data; | 11486 return ud->data; |
11487 } | 11487 } |
11488 return NULL; | 11488 return NULL; |
11489 } | 11489 } |
11490 | 11490 |
11491 /* | |
11492 * Compare two window handles. | |
11493 * Parameters: | |
11494 * window1: First window handle to compare. | |
11495 * window2: Second window handle to compare. | |
11496 * Returns: | |
11497 * TRUE if the windows are the same object, FALSE if not. | |
11498 */ | |
11499 int API dw_window_compare(HWND window1, HWND window2) | |
11500 { | |
11501 /* If anything special is require to compare... do it | |
11502 * here otherwise just compare the handles. | |
11503 */ | |
11504 if(window1 && window2 && window1 == window2) | |
11505 return TRUE; | |
11506 return FALSE; | |
11507 } | |
11508 | |
11491 #define DW_TIMER_MAX 64 | 11509 #define DW_TIMER_MAX 64 |
11492 static NSTimer *DWTimers[DW_TIMER_MAX]; | 11510 static NSTimer *DWTimers[DW_TIMER_MAX]; |
11493 | 11511 |
11494 /* | 11512 /* |
11495 * Add a callback to a timer event. | 11513 * Add a callback to a timer event. |