Mercurial > dwindows
comparison gtk/dw.c @ 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 |
---|---|
13517 DW_MUTEX_UNLOCK; | 13517 DW_MUTEX_UNLOCK; |
13518 return ret; | 13518 return ret; |
13519 } | 13519 } |
13520 | 13520 |
13521 /* | 13521 /* |
13522 * Compare two window handles. | |
13523 * Parameters: | |
13524 * window1: First window handle to compare. | |
13525 * window2: Second window handle to compare. | |
13526 * Returns: | |
13527 * TRUE if the windows are the same object, FALSE if not. | |
13528 */ | |
13529 int API dw_window_compare(HWND window1, HWND window2) | |
13530 { | |
13531 /* If anything special is require to compare... do it | |
13532 * here otherwise just compare the handles. | |
13533 */ | |
13534 if(window1 && window2 && window1 == window2) | |
13535 return TRUE; | |
13536 return FALSE; | |
13537 } | |
13538 | |
13539 /* | |
13522 * Add a callback to a timer event. | 13540 * Add a callback to a timer event. |
13523 * Parameters: | 13541 * Parameters: |
13524 * interval: Milliseconds to delay between calls. | 13542 * interval: Milliseconds to delay between calls. |
13525 * sigfunc: The pointer to the function to be used as the callback. | 13543 * sigfunc: The pointer to the function to be used as the callback. |
13526 * data: User data to be passed to the handler function. | 13544 * data: User data to be passed to the handler function. |