Commit 0ac31a0b authored by Pavel Rojtberg's avatar Pavel Rojtberg

highgui: add CV_GUI_* flags to enum in cpp so they appear in bindings

parent e792ee89
...@@ -182,8 +182,10 @@ enum WindowFlags { ...@@ -182,8 +182,10 @@ enum WindowFlags {
WINDOW_FULLSCREEN = 1, //!< change the window to fullscreen. WINDOW_FULLSCREEN = 1, //!< change the window to fullscreen.
WINDOW_FREERATIO = 0x00000100, //!< the image expends as much as it can (no ratio constraint). WINDOW_FREERATIO = 0x00000100, //!< the image expends as much as it can (no ratio constraint).
WINDOW_KEEPRATIO = 0x00000000 //!< the ratio of the image is respected. WINDOW_KEEPRATIO = 0x00000000, //!< the ratio of the image is respected.
}; WINDOW_GUI_EXPANDED=0x00000000, //!< status bar and tool bar
WINDOW_GUI_NORMAL = 0x00000010, //!< old fashious way
};
//! Flags for cv::setWindowProperty / cv::getWindowProperty //! Flags for cv::setWindowProperty / cv::getWindowProperty
enum WindowPropertyFlags { enum WindowPropertyFlags {
...@@ -287,9 +289,9 @@ Qt backend supports additional flags: ...@@ -287,9 +289,9 @@ Qt backend supports additional flags:
displayed image (see imshow ), and you cannot change the window size manually. displayed image (see imshow ), and you cannot change the window size manually.
- **WINDOW_FREERATIO or WINDOW_KEEPRATIO:** WINDOW_FREERATIO adjusts the image - **WINDOW_FREERATIO or WINDOW_KEEPRATIO:** WINDOW_FREERATIO adjusts the image
with no respect to its ratio, whereas WINDOW_KEEPRATIO keeps the image ratio. with no respect to its ratio, whereas WINDOW_KEEPRATIO keeps the image ratio.
- **CV_GUI_NORMAL or CV_GUI_EXPANDED:** CV_GUI_NORMAL is the old way to draw the window - **WINDOW_GUI_NORMAL or WINDOW_GUI_EXPANDED:** WINDOW_GUI_NORMAL is the old way to draw the window
without statusbar and toolbar, whereas CV_GUI_EXPANDED is a new enhanced GUI. without statusbar and toolbar, whereas WINDOW_GUI_EXPANDED is a new enhanced GUI.
By default, flags == WINDOW_AUTOSIZE | WINDOW_KEEPRATIO | CV_GUI_EXPANDED By default, flags == WINDOW_AUTOSIZE | WINDOW_KEEPRATIO | WINDOW_GUI_EXPANDED
@param winname Name of the window in the window caption that may be used as a window identifier. @param winname Name of the window in the window caption that may be used as a window identifier.
@param flags Flags of the window. The supported flags are: (cv::WindowFlags) @param flags Flags of the window. The supported flags are: (cv::WindowFlags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment