Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
df5c60c5
Commit
df5c60c5
authored
Aug 27, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing cv::moveWindow & cv::resizeWindow
parent
6abb4625
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
highgui.hpp
modules/highgui/include/opencv2/highgui/highgui.hpp
+2
-0
window.cpp
modules/highgui/src/window.cpp
+10
-0
No files found.
modules/highgui/include/opencv2/highgui/highgui.hpp
View file @
df5c60c5
...
@@ -60,6 +60,8 @@ CV_EXPORTS_W void namedWindow( const string& winname, int flags=WINDOW_AUTOSIZE
...
@@ -60,6 +60,8 @@ CV_EXPORTS_W void namedWindow( const string& winname, int flags=WINDOW_AUTOSIZE
CV_EXPORTS_W
void
destroyWindow
(
const
string
&
winname
);
CV_EXPORTS_W
void
destroyWindow
(
const
string
&
winname
);
CV_EXPORTS_W
void
destroyAllWindows
();
CV_EXPORTS_W
void
destroyAllWindows
();
CV_EXPORTS_W
int
startWindowThread
();
CV_EXPORTS_W
int
startWindowThread
();
CV_EXPORTS_W
void
resizeWindow
(
const
string
&
name
,
int
width
,
int
height
);
CV_EXPORTS_W
void
moveWindow
(
const
string
&
name
,
int
x
,
int
y
);
CV_EXPORTS_W
void
setWindowProperty
(
const
string
&
winname
,
int
prop_id
,
double
prop_value
);
//YV
CV_EXPORTS_W
void
setWindowProperty
(
const
string
&
winname
,
int
prop_id
,
double
prop_value
);
//YV
CV_EXPORTS_W
double
getWindowProperty
(
const
string
&
winname
,
int
prop_id
);
//YV
CV_EXPORTS_W
double
getWindowProperty
(
const
string
&
winname
,
int
prop_id
);
//YV
...
...
modules/highgui/src/window.cpp
View file @
df5c60c5
...
@@ -141,6 +141,16 @@ void cv::destroyAllWindows()
...
@@ -141,6 +141,16 @@ void cv::destroyAllWindows()
cvDestroyAllWindows
();
cvDestroyAllWindows
();
}
}
void
cv
::
resizeWindow
(
const
string
&
winname
,
int
width
,
int
height
)
{
cvResizeWindow
(
winname
.
c_str
(),
width
,
height
);
}
void
cv
::
moveWindow
(
const
string
&
winname
,
int
x
,
int
y
)
{
cvMoveWindow
(
winname
.
c_str
(),
x
,
y
);
}
void
cv
::
setWindowProperty
(
const
string
&
winname
,
int
prop_id
,
double
prop_value
)
void
cv
::
setWindowProperty
(
const
string
&
winname
,
int
prop_id
,
double
prop_value
)
{
{
cvSetWindowProperty
(
winname
.
c_str
(),
prop_id
,
prop_value
);
cvSetWindowProperty
(
winname
.
c_str
(),
prop_id
,
prop_value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment