# window_intersect_c

intersect.i4.v = window_intersect_c(window_id_1.i2.v, window_id_2.i2.v
[,left_column.i4.r] [,top_row.i4.r]
[,right_column.i4.r]
[,bottom_row.i4.r])
This routine returns a value of TRUE if the windows indicated
by "wid_1" and "wid_2" intersect. It will also optionally
return the intersecting rectangle in full screen coordinates.
window_id_1 ID of first window
window_id_2 ID of second window
[left_column] returned left column of the intersection rectangle
(default is NULL)
[top_row] returned top row of the intersection rectangle
(default is NULL)
[right_column] returned right column of the intersection rectangle
(default is NULL)
[bottom_row] returned bottom row of the intersection rectangle
(default is NULL)
This function returns status values as follows:
TRUE the two windows intersect
FALSE the two windows are tiled
This function requires the following include files:
cnsparam_h, cbslib_h
Related functions:
window_occluded_by(_c), window_occluding(_c), intro_tv_windows
C/C++ usage:
short window_id_1;
short window_id_2;
int intersect;
int left_column;
int top_row;
int right_column;
int bottom_row;
intersect = window_intersect_c(window_id_1,window_id_2,
&left_column,&top_row,
&right_column,&bottom_row);