mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 23:32:04 +08:00
Merge pull request #13236 from tomoaki0705:featureHighguiGetProp
This commit is contained in:
commit
6b346c92be
@ -114,6 +114,8 @@ double cvGetRatioWindow_GTK(const char* name);
|
|||||||
double cvGetOpenGlProp_W32(const char* name);
|
double cvGetOpenGlProp_W32(const char* name);
|
||||||
double cvGetOpenGlProp_GTK(const char* name);
|
double cvGetOpenGlProp_GTK(const char* name);
|
||||||
|
|
||||||
|
double cvGetPropVisible_W32(const char* name);
|
||||||
|
|
||||||
//for QT
|
//for QT
|
||||||
#if defined (HAVE_QT)
|
#if defined (HAVE_QT)
|
||||||
CvRect cvGetWindowRect_QT(const char* name);
|
CvRect cvGetWindowRect_QT(const char* name);
|
||||||
|
@ -156,6 +156,8 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
|
|||||||
case CV_WND_PROP_VISIBLE:
|
case CV_WND_PROP_VISIBLE:
|
||||||
#if defined (HAVE_QT)
|
#if defined (HAVE_QT)
|
||||||
return cvGetPropVisible_QT(name);
|
return cvGetPropVisible_QT(name);
|
||||||
|
#elif defined(HAVE_WIN32UI)
|
||||||
|
return cvGetPropVisible_W32(name);
|
||||||
#else
|
#else
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
|
@ -629,6 +629,24 @@ double cvGetOpenGlProp_W32(const char* name)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double cvGetPropVisible_W32(const char* name)
|
||||||
|
{
|
||||||
|
double result = -1;
|
||||||
|
|
||||||
|
CV_FUNCNAME( "cvGetPropVisible_W32" );
|
||||||
|
|
||||||
|
__BEGIN__;
|
||||||
|
|
||||||
|
if (!name)
|
||||||
|
CV_ERROR( CV_StsNullPtr, "NULL name string" );
|
||||||
|
|
||||||
|
result = (icvFindWindowByName( name ) != NULL);
|
||||||
|
|
||||||
|
__END__;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// OpenGL support
|
// OpenGL support
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user