mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
highgui Wayland xdg_shell
-enable using -DWITH_WAYLAND=ON -adapted from https://github.com/pfpacket/opencv-wayland -using xdg_shell stable protocol -overrides HAVE_QT if HAVE_WAYLAND and WITH_WAYLAND are set Signed-off-by: Joel Winarske <joel.winarske@gmail.com> Co-authored-by: Ryo Munakata <afpacket@gmail.com>
This commit is contained in:
committed by
Joel Winarske
parent
b19683eb41
commit
0769bf416f
@@ -130,6 +130,7 @@ void setWindowTitle_W32(const cv::String& name, const cv::String& title);
|
||||
void setWindowTitle_GTK(const cv::String& name, const cv::String& title);
|
||||
void setWindowTitle_QT(const cv::String& name, const cv::String& title);
|
||||
void setWindowTitle_COCOA(const cv::String& name, const cv::String& title);
|
||||
void setWindowTitle_WAYLAND(const cv::String& name, const cv::String& title);
|
||||
|
||||
int pollKey_W32();
|
||||
|
||||
|
||||
@@ -613,6 +613,8 @@ void cv::setWindowTitle(const String& winname, const String& title)
|
||||
return setWindowTitle_QT(winname, title);
|
||||
#elif defined (HAVE_COCOA)
|
||||
return setWindowTitle_COCOA(winname, title);
|
||||
#elif defined (HAVE_WAYLAND)
|
||||
return setWindowTitle_WAYLAND(winname, title);
|
||||
#else
|
||||
CV_Error(Error::StsNotImplemented, "The function is not implemented. "
|
||||
"Rebuild the library with Windows, GTK+ 2.x or Cocoa support. "
|
||||
@@ -1226,6 +1228,7 @@ int cv::createButton(const String&, ButtonCallback, void*, int , bool )
|
||||
#elif defined (HAVE_GTK) // see window_gtk.cpp
|
||||
#elif defined (HAVE_COCOA) // see window_cocoa.mm
|
||||
#elif defined (HAVE_QT) // see window_QT.cpp
|
||||
#elif defined (HAVE_WAYLAND) // see window_wayland.cpp
|
||||
#elif defined (WINRT) && !defined (WINRT_8_0) // see window_winrt.cpp
|
||||
|
||||
#else
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user