Lines Matching refs:window
209 static void icvUpdateWindowPos( CvWindow* window );
274 CvWindow* window = hg_windows; in icvFindWindowByName() local
276 for( ; window != 0 && strcmp( name, window->name) != 0; window = window->next ) in icvFindWindowByName()
279 return window; in icvFindWindowByName()
285 CvWindow* window = (CvWindow*)icvGetWindowLongPtr( hwnd, CV_USERDATA ); in icvWindowByHWND() local
286 return window != 0 && hg_windows != 0 && in icvWindowByHWND()
287 window->signature == CV_WINDOW_MAGIC_VAL ? window : 0; in icvWindowByHWND()
414 CvWindow* window; in cvGetModeWindow_W32() local
419 window = icvFindWindowByName( name ); in cvGetModeWindow_W32()
420 if (!window) in cvGetModeWindow_W32()
423 result = window->status; in cvGetModeWindow_W32()
435 CvWindow* window; in cvSetModeWindow_W32() local
440 window = icvFindWindowByName( name ); in cvSetModeWindow_W32()
441 if( !window ) in cvSetModeWindow_W32()
444 if(window->flags & CV_WINDOW_AUTOSIZE)//if the flag CV_WINDOW_AUTOSIZE is set in cvSetModeWindow_W32()
448 DWORD dwStyle = (DWORD)GetWindowLongPtr(window->frame, GWL_STYLE); in cvSetModeWindow_W32()
451 if (window->status==CV_WINDOW_FULLSCREEN && prop_value==CV_WINDOW_NORMAL) in cvSetModeWindow_W32()
453 icvLoadWindowPos(window->name,position ); in cvSetModeWindow_W32()
454 SetWindowLongPtr(window->frame, GWL_STYLE, dwStyle | WS_CAPTION | WS_THICKFRAME); in cvSetModeWindow_W32()
456 …SetWindowPos(window->frame, HWND_TOP, position.x, position.y , position.width,position.height, SWP… in cvSetModeWindow_W32()
457 window->status=CV_WINDOW_NORMAL; in cvSetModeWindow_W32()
462 if (window->status==CV_WINDOW_NORMAL && prop_value==CV_WINDOW_FULLSCREEN) in cvSetModeWindow_W32()
466 GetWindowRect(window->frame, &rect); in cvSetModeWindow_W32()
468 icvSaveWindowPos(window->name,RectCV ); in cvSetModeWindow_W32()
481 SetWindowLongPtr(window->frame, GWL_STYLE, dwStyle & ~WS_CAPTION & ~WS_THICKFRAME); in cvSetModeWindow_W32()
483 …SetWindowPos(window->frame, HWND_TOP, position.x, position.y , position.width,position.height, SWP… in cvSetModeWindow_W32()
484 window->status=CV_WINDOW_FULLSCREEN; in cvSetModeWindow_W32()
495 CvWindow* window = icvFindWindowByName(winname.c_str()); in setWindowTitle() local
497 if (!window) in setWindowTitle()
500 window = icvFindWindowByName(winname.c_str()); in setWindowTitle()
503 if (!window) in setWindowTitle()
506 if (!SetWindowText(window->frame, title.c_str())) in setWindowTitle()
518 CvWindow* window; in cvGetPropWindowAutoSize_W32() local
523 window = icvFindWindowByName( name ); in cvGetPropWindowAutoSize_W32()
524 if (!window) in cvGetPropWindowAutoSize_W32()
527 result = window->flags & CV_WINDOW_AUTOSIZE; in cvGetPropWindowAutoSize_W32()
542 CvWindow* window; in cvGetRatioWindow_W32() local
547 window = icvFindWindowByName( name ); in cvGetRatioWindow_W32()
548 if (!window) in cvGetRatioWindow_W32()
551 result = static_cast<double>(window->width) / window->height; in cvGetRatioWindow_W32()
567 CvWindow* window; in cvGetOpenGlProp_W32() local
572 window = icvFindWindowByName( name ); in cvGetOpenGlProp_W32()
573 if (!window) in cvGetOpenGlProp_W32()
576 result = window->useGl; in cvGetOpenGlProp_W32()
647 void releaseGlContext(CvWindow* window) in releaseGlContext() argument
653 if (window->hGLRC) in releaseGlContext()
655 wglDeleteContext(window->hGLRC); in releaseGlContext()
656 window->hGLRC = NULL; in releaseGlContext()
659 if (window->dc) in releaseGlContext()
661 ReleaseDC(window->hwnd, window->dc); in releaseGlContext()
662 window->dc = NULL; in releaseGlContext()
665 window->useGl = false; in releaseGlContext()
670 void drawGl(CvWindow* window) in drawGl() argument
676 if (!wglMakeCurrent(window->dc, window->hGLRC)) in drawGl()
681 if (window->glDrawCallback) in drawGl()
682 window->glDrawCallback(window->glDrawData); in drawGl()
684 if (!SwapBuffers(window->dc)) in drawGl()
690 void resizeGl(CvWindow* window) in resizeGl() argument
696 if (!wglMakeCurrent(window->dc, window->hGLRC)) in resizeGl()
699 glViewport(0, 0, window->width, window->height); in resizeGl()
716 CvWindow* window; in cvNamedWindow() local
732 window = icvFindWindowByName( name ); in cvNamedWindow()
733 if (window != 0) in cvNamedWindow()
776 CV_CALL( window = (CvWindow*)cvAlloc(sizeof(CvWindow) + len + 1)); in cvNamedWindow()
778 window->signature = CV_WINDOW_MAGIC_VAL; in cvNamedWindow()
779 window->hwnd = hWnd; in cvNamedWindow()
780 window->frame = mainhWnd; in cvNamedWindow()
781 window->name = (char*)(window + 1); in cvNamedWindow()
782 memcpy( window->name, name, len + 1 ); in cvNamedWindow()
783 window->flags = flags; in cvNamedWindow()
784 window->image = 0; in cvNamedWindow()
787 window->dc = CreateCompatibleDC(0); in cvNamedWindow()
791 window->dc = CreateCompatibleDC(0); in cvNamedWindow()
792 window->hGLRC = 0; in cvNamedWindow()
793 window->useGl = false; in cvNamedWindow()
797 window->dc = hGLDC; in cvNamedWindow()
798 window->hGLRC = hGLRC; in cvNamedWindow()
799 window->useGl = true; in cvNamedWindow()
802 window->glDrawCallback = 0; in cvNamedWindow()
803 window->glDrawData = 0; in cvNamedWindow()
806 window->last_key = 0; in cvNamedWindow()
807 window->status = CV_WINDOW_NORMAL;//YV in cvNamedWindow()
809 window->on_mouse = 0; in cvNamedWindow()
810 window->on_mouse_param = 0; in cvNamedWindow()
812 memset( &window->toolbar, 0, sizeof(window->toolbar)); in cvNamedWindow()
814 window->next = hg_windows; in cvNamedWindow()
815 window->prev = 0; in cvNamedWindow()
817 hg_windows->prev = window; in cvNamedWindow()
818 hg_windows = window; in cvNamedWindow()
819 icvSetWindowLongPtr( hWnd, CV_USERDATA, window ); in cvNamedWindow()
820 icvSetWindowLongPtr( mainhWnd, CV_USERDATA, window ); in cvNamedWindow()
823 icvUpdateWindowPos( window ); in cvNamedWindow()
839 CvWindow* window; in cvSetOpenGlContext() local
844 window = icvFindWindowByName( name ); in cvSetOpenGlContext()
845 if (!window) in cvSetOpenGlContext()
848 if (!window->useGl) in cvSetOpenGlContext()
851 if (!wglMakeCurrent(window->dc, window->hGLRC)) in cvSetOpenGlContext()
863 CvWindow* window; in cvUpdateWindow() local
868 window = icvFindWindowByName( name ); in cvUpdateWindow()
869 if (!window) in cvUpdateWindow()
872 InvalidateRect(window->hwnd, 0, 0); in cvUpdateWindow()
883 CvWindow* window; in cvSetOpenGlDrawCallback() local
888 window = icvFindWindowByName( name ); in cvSetOpenGlDrawCallback()
889 if( !window ) in cvSetOpenGlDrawCallback()
892 if (!window->useGl) in cvSetOpenGlDrawCallback()
895 window->glDrawCallback = callback; in cvSetOpenGlDrawCallback()
896 window->glDrawData = userdata; in cvSetOpenGlDrawCallback()
903 static void icvRemoveWindow( CvWindow* window ) in icvRemoveWindow() argument
909 if (window->useGl) in icvRemoveWindow()
910 releaseGlContext(window); in icvRemoveWindow()
913 if( window->frame ) in icvRemoveWindow()
914 GetWindowRect( window->frame, &wrect ); in icvRemoveWindow()
915 if( window->name ) in icvRemoveWindow()
916 icvSaveWindowPos( window->name, cvRect(wrect.left, wrect.top, in icvRemoveWindow()
919 if( window->hwnd ) in icvRemoveWindow()
920 icvSetWindowLongPtr( window->hwnd, CV_USERDATA, 0 ); in icvRemoveWindow()
921 if( window->frame ) in icvRemoveWindow()
922 icvSetWindowLongPtr( window->frame, CV_USERDATA, 0 ); in icvRemoveWindow()
924 if( window->toolbar.toolbar ) in icvRemoveWindow()
925 icvSetWindowLongPtr(window->toolbar.toolbar, CV_USERDATA, 0); in icvRemoveWindow()
927 if( window->prev ) in icvRemoveWindow()
928 window->prev->next = window->next; in icvRemoveWindow()
930 hg_windows = window->next; in icvRemoveWindow()
932 if( window->next ) in icvRemoveWindow()
933 window->next->prev = window->prev; in icvRemoveWindow()
935 window->prev = window->next = 0; in icvRemoveWindow()
937 if( window->dc && window->image ) in icvRemoveWindow()
938 DeleteObject(SelectObject(window->dc,window->image)); in icvRemoveWindow()
940 if( window->dc ) in icvRemoveWindow()
941 DeleteDC(window->dc); in icvRemoveWindow()
943 for( trackbar = window->toolbar.first; trackbar != 0; ) in icvRemoveWindow()
954 cvFree( &window ); in icvRemoveWindow()
964 CvWindow* window; in cvDestroyWindow() local
970 window = icvFindWindowByName( name ); in cvDestroyWindow()
971 if( !window ) in cvDestroyWindow()
974 mainhWnd = window->frame; in cvDestroyWindow()
976 SendMessage(window->hwnd, WM_CLOSE, 0, 0); in cvDestroyWindow()
995 static RECT icvCalcWindowRect( CvWindow* window ) in icvCalcWindowRect() argument
1000 assert(window); in icvCalcWindowRect()
1002 GetClientRect(window->frame, &crect); in icvCalcWindowRect()
1003 if(window->toolbar.toolbar) in icvCalcWindowRect()
1005 GetWindowRect(window->toolbar.toolbar, &trect); in icvCalcWindowRect()
1006 icvScreenToClient(window->frame, &trect); in icvCalcWindowRect()
1021 static bool icvGetBitmapData( CvWindow* window, SIZE* size, int* channels, void** data ) in icvGetBitmapData() argument
1025 HGDIOBJ h = GetCurrentObject( window->dc, OBJ_BITMAP ); in icvGetBitmapData()
1052 static void icvUpdateWindowPos( CvWindow* window ) in icvUpdateWindowPos() argument
1055 assert(window); in icvUpdateWindowPos()
1057 if( (window->flags & CV_WINDOW_AUTOSIZE) && window->image ) in icvUpdateWindowPos()
1061 icvGetBitmapData( window, &size, 0, 0 ); in icvUpdateWindowPos()
1065 for(i = 0; i < (window->toolbar.toolbar ? 2 : 1); i++) in icvUpdateWindowPos()
1067 RECT rmw, rw = icvCalcWindowRect(window ); in icvUpdateWindowPos()
1068 MoveWindow(window->hwnd, rw.left, rw.top, in icvUpdateWindowPos()
1070 GetClientRect(window->hwnd, &rw); in icvUpdateWindowPos()
1071 GetWindowRect(window->frame, &rmw); in icvUpdateWindowPos()
1073 MoveWindow(window->frame, rmw.left, rmw.top, in icvUpdateWindowPos()
1079 rect = icvCalcWindowRect(window); in icvUpdateWindowPos()
1080 MoveWindow(window->hwnd, rect.left, rect.top, in icvUpdateWindowPos()
1092 CvWindow* window; in cvShowImage() local
1104 window = icvFindWindowByName(name); in cvShowImage()
1105 if(!window) in cvShowImage()
1108 window = icvFindWindowByName(name); in cvShowImage()
1111 if( !window || !arr ) in cvShowImage()
1120 if (window->useGl) in cvShowImage()
1127 if (window->image) in cvShowImage()
1129 if (icvGetBitmapData( window, &size, &channels, &dst_ptr )) in cvShowImage()
1139 DeleteObject( SelectObject( window->dc, window->image )); in cvShowImage()
1140 window->image = 0; in cvShowImage()
1148 window->image = SelectObject( window->dc, CreateDIBSection(window->dc, binfo, in cvShowImage()
1158 icvUpdateWindowPos(window); in cvShowImage()
1159 InvalidateRect(window->hwnd, 0, 0); in cvShowImage()
1253 CvWindow* window; in cvResizeWindow() local
1259 window = icvFindWindowByName(name); in cvResizeWindow()
1260 if(!window) in cvResizeWindow()
1265 for(i = 0; i < (window->toolbar.toolbar ? 2 : 1); i++) in cvResizeWindow()
1267 rw = icvCalcWindowRect(window); in cvResizeWindow()
1268 MoveWindow(window->hwnd, rw.left, rw.top, in cvResizeWindow()
1270 GetClientRect(window->hwnd, &rw); in cvResizeWindow()
1271 GetWindowRect(window->frame, &rmw); in cvResizeWindow()
1273 MoveWindow(window->frame, rmw.left, rmw.top, in cvResizeWindow()
1278 rect = icvCalcWindowRect(window); in cvResizeWindow()
1279 MoveWindow(window->hwnd, rect.left, rect.top, in cvResizeWindow()
1292 CvWindow* window; in cvMoveWindow() local
1298 window = icvFindWindowByName(name); in cvMoveWindow()
1299 if(!window) in cvMoveWindow()
1302 GetWindowRect( window->frame, &rect ); in cvMoveWindow()
1303 MoveWindow( window->frame, x, y, rect.right - rect.left, rect.bottom - rect.top, TRUE); in cvMoveWindow()
1312 CvWindow* window = icvWindowByHWND( hwnd ); in MainWindowProc() local
1313 if( !window ) in MainWindowProc()
1319 ::SendMessage(window->hwnd, uMsg, wParam, lParam); in MainWindowProc()
1324 icvRemoveWindow(window); in MainWindowProc()
1330 if( !(window->flags & CV_WINDOW_AUTOSIZE) ) in MainWindowProc()
1339 if( window->toolbar.first ) in MainWindowProc()
1341 GetWindowRect( window->toolbar.first->hwnd, &rect ); in MainWindowProc()
1342 minmax->ptMinTrackSize.y += window->toolbar.rows*(rect.bottom - rect.top); in MainWindowProc()
1354 if(window->toolbar.toolbar) in MainWindowProc()
1357 GetWindowRect(window->toolbar.toolbar, &rect); in MainWindowProc()
1358 MoveWindow(window->toolbar.toolbar, 0, 0, pos->cx, rect.bottom - rect.top, TRUE); in MainWindowProc()
1361 if(!(window->flags & CV_WINDOW_AUTOSIZE)) in MainWindowProc()
1362 icvUpdateWindowPos(window); in MainWindowProc()
1373 GetWindowRect(window->frame, &rect); in MainWindowProc()
1399 SetFocus(window->hwnd); in MainWindowProc()
1404 if( window->on_mouse ) in MainWindowProc()
1424 GetClientRect( window->hwnd, &rect ); in MainWindowProc()
1427 icvGetBitmapData( window, &size, 0, 0 ); in MainWindowProc()
1429 window->on_mouse( event, pt.x*size.cx/MAX(rect.right - rect.left,1), in MainWindowProc()
1431 window->on_mouse_param ); in MainWindowProc()
1441 GetWindowRect(window->hwnd, &cr); in MainWindowProc()
1442 icvScreenToClient(window->frame, &cr); in MainWindowProc()
1443 if(window->toolbar.toolbar) in MainWindowProc()
1445 GetWindowRect(window->toolbar.toolbar, &tr); in MainWindowProc()
1446 icvScreenToClient(window->frame, &tr); in MainWindowProc()
1451 GetClientRect(window->frame, &wrc); in MainWindowProc()
1475 CvWindow* window = icvWindowByHWND(hwnd); in HighGUIProc() local
1476 if( !window ) in HighGUIProc()
1500 if(!window->image) in HighGUIProc()
1514 icvGetBitmapData( window, &size, &nchannels, 0 ); in HighGUIProc()
1536 if (!::SetDIBColorTable(window->dc, 0, 255, table)) in HighGUIProc()
1543 if (!::BitBlt( memDC, 0, 0, size.cx, size.cy, window->dc, 0, 0, SRCCOPY )) in HighGUIProc()
1562 RECT rect = icvCalcWindowRect(window); in HighGUIProc()
1580 if( window->on_mouse ) in HighGUIProc()
1608 if (window->flags & CV_WINDOW_AUTOSIZE) in HighGUIProc()
1612 window->on_mouse( event, pt.x, pt.y, flags, window->on_mouse_param ); in HighGUIProc()
1618 GetClientRect( window->hwnd, &rect ); in HighGUIProc()
1619 icvGetBitmapData( window, &size, 0, 0 ); in HighGUIProc()
1621 window->on_mouse( event, pt.x*size.cx/MAX(rect.right - rect.left,1), in HighGUIProc()
1623 window->on_mouse_param ); in HighGUIProc()
1629 if(window->image != 0) in HighGUIProc()
1638 icvGetBitmapData( window, &size, &nchannels, 0 ); in HighGUIProc()
1652 SetDIBColorTable(window->dc, 0, 255, table); in HighGUIProc()
1655 if(window->flags & CV_WINDOW_AUTOSIZE) in HighGUIProc()
1657 BitBlt( hdc, 0, 0, size.cx, size.cy, window->dc, 0, 0, SRCCOPY ); in HighGUIProc()
1662 GetClientRect(window->hwnd, &rect); in HighGUIProc()
1664 window->dc, 0, 0, size.cx, size.cy, SRCCOPY ); in HighGUIProc()
1670 else if(window->useGl) in HighGUIProc()
1672 drawGl(window); in HighGUIProc()
1683 if(window->image) in HighGUIProc()
1689 icvRemoveWindow(window); in HighGUIProc()
1699 window->last_key = (int)wParam; in HighGUIProc()
1703 window->width = LOWORD(lParam); in HighGUIProc()
1704 window->height = HIWORD(lParam); in HighGUIProc()
1707 if (window->useGl) in HighGUIProc()
1708 resizeGl(window); in HighGUIProc()
1782 CvWindow* window = icvWindowByHWND( hwnd ); in HGToolbarProc() local
1783 if(!window) in HGToolbarProc()
1802 SetFocus( window->hwnd ); in HGToolbarProc()
1808 LRESULT ret = CallWindowProc(window->toolbar.toolBarProc, hwnd, uMsg, wParam, lParam); in HGToolbarProc()
1811 if(window->toolbar.rows != rows) in HGToolbarProc()
1813 SendMessage(window->toolbar.toolbar, TB_BUTTONCOUNT, 0, 0); in HGToolbarProc()
1814 CvTrackbar* trackbar = window->toolbar.first; in HGToolbarProc()
1819 SendMessage(window->toolbar.toolbar, TB_GETITEMRECT, in HGToolbarProc()
1827 window->toolbar.rows = rows; in HGToolbarProc()
1833 return CallWindowProc(window->toolbar.toolBarProc, hwnd, uMsg, wParam, lParam); in HGToolbarProc()
1840 CvWindow* window = hg_windows; in cvDestroyAllWindows() local
1842 while( window ) in cvDestroyAllWindows()
1844 HWND mainhWnd = window->frame; in cvDestroyAllWindows()
1845 HWND hwnd = window->hwnd; in cvDestroyAllWindows()
1846 window = window->next; in cvDestroyAllWindows()
1853 static void showSaveDialog(CvWindow* window) in showSaveDialog() argument
1855 if (!window || !window->image) in showSaveDialog()
1861 if (icvGetBitmapData(window, &sz, &channels, &data)) in showSaveDialog()
1866 GetWindowText(window->frame, szFileName, MAX_PATH); in showSaveDialog()
1876 ofn.hwndOwner = window->hwnd; in showSaveDialog()
1907 CvWindow* window; in cvWaitKey() local
1922 for( window = hg_windows; window != 0 && is_processed == 0; window = window->next ) in cvWaitKey()
1924 if( window->hwnd == message.hwnd || window->frame == message.hwnd ) in cvWaitKey()
1962 showSaveDialog(window); in cvWaitKey()
1982 icvFindTrackbarByName( const CvWindow* window, const char* name ) in icvFindTrackbarByName() argument
1984 CvTrackbar* trackbar = window->toolbar.first; in icvFindTrackbarByName()
2005 CvWindow* window = 0; in icvCreateTrackbar() local
2015 window = icvFindWindowByName(window_name); in icvCreateTrackbar()
2016 if( !window ) in icvCreateTrackbar()
2019 trackbar = icvFindTrackbarByName(window,trackbar_name); in icvCreateTrackbar()
2029 if( !window->toolbar.toolbar ) in icvCreateTrackbar()
2034 window->toolbar.toolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, in icvCreateTrackbar()
2037 window->frame, NULL, GetModuleHandle(NULL), NULL); in icvCreateTrackbar()
2039 SendMessage(window->toolbar.toolbar, TB_BUTTONSTRUCTSIZE, (WPARAM)sizeof(TBBUTTON), 0); in icvCreateTrackbar()
2041 GetClientRect(window->frame, &rect); in icvCreateTrackbar()
2042 MoveWindow( window->toolbar.toolbar, 0, 0, in icvCreateTrackbar()
2044 SendMessage(window->toolbar.toolbar, TB_AUTOSIZE, 0, 0); in icvCreateTrackbar()
2045 ShowWindow(window->toolbar.toolbar, SW_SHOW); in icvCreateTrackbar()
2047 window->toolbar.first = 0; in icvCreateTrackbar()
2048 window->toolbar.pos = 0; in icvCreateTrackbar()
2049 window->toolbar.rows = 0; in icvCreateTrackbar()
2050 window->toolbar.toolBarProc = in icvCreateTrackbar()
2051 (WNDPROC)icvGetWindowLongPtr(window->toolbar.toolbar, CV_WNDPROC); in icvCreateTrackbar()
2053 icvUpdateWindowPos(window); in icvCreateTrackbar()
2056 icvSetWindowLongPtr(window->toolbar.toolbar, CV_WNDPROC, HGToolbarProc); in icvCreateTrackbar()
2057 icvSetWindowLongPtr(window->toolbar.toolbar, CV_USERDATA, window); in icvCreateTrackbar()
2061 bcount = (int)SendMessage(window->toolbar.toolbar, TB_BUTTONCOUNT, 0, 0); in icvCreateTrackbar()
2072 SendMessage(window->toolbar.toolbar, TB_ADDBUTTONS, 1, (LPARAM)&tbs); in icvCreateTrackbar()
2075 bcount = (int)SendMessage(window->toolbar.toolbar, TB_BUTTONCOUNT, 0, 0); in icvCreateTrackbar()
2098 SendMessage(window->toolbar.toolbar, TB_ADDBUTTONS, 1, (LPARAM)&tbs); in icvCreateTrackbar()
2104 GetClientRect(window->hwnd, &rect); in icvCreateTrackbar()
2107 SendMessage(window->toolbar.toolbar, TB_SETBUTTONINFO, in icvCreateTrackbar()
2111 SendMessage(window->toolbar.toolbar, TB_GETITEMRECT, in icvCreateTrackbar()
2119 trackbar->parent = window; in icvCreateTrackbar()
2123 trackbar->next = window->toolbar.first; in icvCreateTrackbar()
2126 window->toolbar.first = trackbar; in icvCreateTrackbar()
2134 rect.bottom - rect.top, window->toolbar.toolbar, in icvCreateTrackbar()
2142 window->toolbar.toolbar, 0, hg_hinstance, 0); in icvCreateTrackbar()
2147 SendMessage( window->toolbar.toolbar, TB_SETROWS, in icvCreateTrackbar()
2167 SendMessage(window->toolbar.toolbar, TB_AUTOSIZE, 0, 0); in icvCreateTrackbar()
2180 icvUpdateWindowPos(window); in icvCreateTrackbar()
2213 CvWindow* window = 0; in cvSetMouseCallback() local
2218 window = icvFindWindowByName(window_name); in cvSetMouseCallback()
2219 if( !window ) in cvSetMouseCallback()
2222 window->on_mouse = on_mouse; in cvSetMouseCallback()
2223 window->on_mouse_param = param; in cvSetMouseCallback()
2237 CvWindow* window; in cvGetTrackbarPos() local
2243 window = icvFindWindowByName( window_name ); in cvGetTrackbarPos()
2244 if( window ) in cvGetTrackbarPos()
2245 trackbar = icvFindTrackbarByName( window, trackbar_name ); in cvGetTrackbarPos()
2262 CvWindow* window; in cvSetTrackbarPos() local
2268 window = icvFindWindowByName( window_name ); in cvSetTrackbarPos()
2269 if( window ) in cvSetTrackbarPos()
2270 trackbar = icvFindTrackbarByName( window, trackbar_name ); in cvSetTrackbarPos()
2296 CvWindow* window = 0; in cvSetTrackbarMax() local
2303 window = icvFindWindowByName(window_name); in cvSetTrackbarMax()
2304 if (window) in cvSetTrackbarMax()
2306 trackbar = icvFindTrackbarByName(window, trackbar_name); in cvSetTrackbarMax()
2328 CvWindow* window; in cvGetWindowHandle() local
2333 window = icvFindWindowByName( window_name ); in cvGetWindowHandle()
2334 if( window ) in cvGetWindowHandle()
2335 hwnd = (void*)window->hwnd; in cvGetWindowHandle()
2351 CvWindow* window; in cvGetWindowName() local
2356 window = icvWindowByHWND( (HWND)window_handle ); in cvGetWindowName()
2357 if( window ) in cvGetWindowName()
2358 window_name = window->name; in cvGetWindowName()