cvui
A (very) simple UI lib built on top of OpenCV drawing primitives
button-shortcut.py File Reference

Namespaces

 button-shortcut
 

Functions

def button-shortcut.main ()
 

Variables

string button-shortcut.WINDOW_NAME = 'Button shortcut'
 
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: trackbar/CMakeLists.txt:8
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: button-shortcut/CMakeLists.txt:10
cvui::OVER
const int OVER
Definition: cvui.h:1151
ERROR_WINDOW_NAME
#define ERROR_WINDOW_NAME
Definition: multiple-windows-complex-dynamic/main.cpp:18
EnhancedWindow.EnhancedWindow.end
def end(self)
Definition: EnhancedWindow.py:61
mouse.main
def main()
Definition: mouse.py:15
on-image.main
def main()
Definition: on-image.py:20
EnhancedWindow.EnhancedWindow.__x
__x
Definition: EnhancedWindow.py:19
EnhancedWindow.EnhancedWindow.width
def width(self)
Definition: EnhancedWindow.py:65
cvui::DOWN
const int DOWN
Definition: cvui.h:1149
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: nested-rows-columns/CMakeLists.txt:8
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: mouse-complex/CMakeLists.txt:1
cvui::cvui_input_t::cursorIndex
int cursorIndex
Definition: cvui.h:1226
main
int main(int argc, const char *argv[])
Definition: mouse-complex-buttons/main.cpp:21
cvui::LEFT_BUTTON
const int LEFT_BUTTON
Definition: cvui.h:1157
input
Definition: input.py:1
include_directories
include_directories(../../..) set(ApplicationName on-image) add_executable($
Definition: on-image/CMakeLists.txt:3
cvui::KEY_HOME
const unsigned int KEY_HOME
Definition: cvui.h:1181
include_directories
include_directories(../../..) set(ApplicationName trackbar-sparkline) add_executable($
Definition: trackbar-sparkline/CMakeLists.txt:3
include_directories
include_directories(../../..) set(ApplicationName multiple-windows) add_executable($
Definition: multiple-windows/CMakeLists.txt:3
cvui::text
void text(cv::Mat &theWhere, int theX, int theY, const cv::String &theText, double theFontScale=0.4, unsigned int theColor=0xCECECE)
Display a piece of text.
cvui::ROW
const int ROW
Definition: cvui.h:1147
cvui::button
bool button(cv::Mat &theIdle, cv::Mat &theOver, cv::Mat &theDown)
Display a button whose graphics are images (cv::Mat).
main
int main(int argc, const char *argv[])
Definition: multiple-windows/main.cpp:126
cvui::OUT
const int OUT
Definition: cvui.h:1152
Class1.h
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: complext-layout/CMakeLists.txt:8
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: complext-layout/CMakeLists.txt:1
EnhancedWindow
Definition: EnhancedWindow.py:1
include_directories
include_directories(../../..) set(ApplicationName multiple-windows-complex-dynamic) add_executable($
Definition: multiple-windows-complex-dynamic/CMakeLists.txt:3
cvui::IS_DOWN
const int IS_DOWN
Definition: cvui.h:1154
cvui::cvui_label_t::hasShortcut
bool hasShortcut
Definition: cvui.h:1201
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: input-change-counter/CMakeLists.txt:10
cvui::cvui_mouse_t::anyButton
cvui_mouse_btn_t anyButton
Definition: cvui.h:1217
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: ui-enhanced-window-component/CMakeLists.txt:10
main-app.main
def main()
Definition: main-app.py:14
cvui::cvui_input_t
Definition: cvui.h:1222
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: nested-rows-columns/CMakeLists.txt:10
cvui::cvui_mouse_btn_t::justReleased
bool justReleased
Definition: cvui.h:1209
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/lena.jpg DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: canny/CMakeLists.txt:10
main
int main(int argc, const char *argv[])
Definition: complext-layout/main.cpp:59
include_directories
include_directories(../../..) set(ApplicationName interaction-area) add_executable($
Definition: interaction-area/CMakeLists.txt:3
EnhancedWindow::height
int height() const
Definition: EnhancedWindow.h:84
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: multiple-windows-complex/CMakeLists.txt:10
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: input/CMakeLists.txt:8
WINDOW_NAME
#define WINDOW_NAME
Definition: ui-enhanced-window-component/main.cpp:23
Class1.Class1.__init__
def __init__(self)
Definition: Class1.py:12
Class1::checked
bool checked
Definition: Class1.h:14
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/lena.jpg DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: mouse-complex-buttons/CMakeLists.txt:10
EnhancedWindow.EnhancedWindow.__y
__y
Definition: EnhancedWindow.py:20
cvui
Definition: cvui.h:70
isWindowOpen
int isWindowOpen(const cv::String &name)
Definition: multiple-windows-complex-dynamic/main.cpp:22
Class2.Class2.renderMessage
def renderMessage(self, frame)
Definition: Class2.py:12
main
int main(int argc, const char *argv[])
Definition: multiple-windows-complex-mouse/main.cpp:19
WINDOW_NAME
#define WINDOW_NAME
Definition: nested-rows-columns/main.cpp:17
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: button-shortcut/CMakeLists.txt:8
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: input/CMakeLists.txt:1
EnhancedWindow.EnhancedWindow.setHeight
def setHeight(self, h)
Definition: EnhancedWindow.py:74
EnhancedWindow.EnhancedWindow.height
def height(self)
Definition: EnhancedWindow.py:68
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: trackbar/CMakeLists.txt:10
WINDOW_NAME
#define WINDOW_NAME
Definition: input-change-counter/main.cpp:16
EnhancedWindow::width
int width() const
Definition: EnhancedWindow.h:80
cvui::image
void image(cv::Mat &theImage)
Display an image (cv::Mat) within a begin*() and end*() block.
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/lena.jpg DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: on-image/CMakeLists.txt:10
EnhancedWindow.EnhancedWindow.__init__
def __init__(self, x, y, width, height, title, minimizable=True)
Definition: EnhancedWindow.py:18
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: input-multiple/CMakeLists.txt:10
main
int main(int argc, const char *argv[])
Definition: input/main.cpp:17
EnhancedWindow::end
void end()
Definition: EnhancedWindow.h:75
cvui::endColumn
void endColumn()
End a column.
trackbar.main
def main()
Definition: trackbar.py:20
cvui::RIGHT_BUTTON
const int RIGHT_BUTTON
Definition: cvui.h:1159
multiple-windows.compact
def compact(name)
Definition: multiple-windows.py:97
main
int main(int argc, const char *argv[])
Definition: button-shortcut/main.cpp:16
cvui::endRow
void endRow()
Ends a row.
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: mouse-complex-buttons/CMakeLists.txt:1
cvui::headless
void headless(bool theValue)
Enable/disable headless more.
closeWindow
void closeWindow(const cv::String &name)
Definition: multiple-windows-complex-dynamic/main.cpp:33
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: trackbar-sparkline/CMakeLists.txt:8
WINDOW_NAME
#define WINDOW_NAME
Definition: headless/main.cpp:15
input-react-key.main
def main()
Definition: input-react-key.py:14
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: multiple-windows-complex-dynamic/CMakeLists.txt:8
cvui::mouse
cv::Point mouse(const cv::String &theWindowName="")
Return the last position of the mouse.
main
int main(int argc, const char *argv[])
Definition: input-detect-key/main.cpp:18
cvui::input
int input(cv::Mat &theWhere, int theX, int theY, int theWidth, const cv::String theName, cv::String &theValue, double theFontScale=0.5)
Display an inputtext.
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: multiple-windows-complex/CMakeLists.txt:1
main
int main(int argc, const char *argv[])
Definition: on-image/main.cpp:15
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: multiple-windows/CMakeLists.txt:1
cvui::cvui_mouse_t
Definition: cvui.h:1215
Class2
Definition: Class2.py:1
main
int main(int argc, const char *argv[])
Definition: input-change-counter/main.cpp:18
include_directories
include_directories(../../..) set(ApplicationName trackbar-complex) add_executable($
Definition: trackbar-complex/CMakeLists.txt:3
main
int main(int argc, const char *argv[])
Definition: interaction-area/main.cpp:19
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: interaction-area/CMakeLists.txt:10
WINDOW2_NAME
#define WINDOW2_NAME
Definition: multiple-windows/main.cpp:61
WINDOW_NAME
#define WINDOW_NAME
Definition: input-react-key/main.cpp:14
ui-enhanced-window-component.main
def main()
Definition: ui-enhanced-window-component.py:25
openWindow
void openWindow(const cv::String &name)
Definition: multiple-windows-complex-dynamic/main.cpp:27
main
int main(int argc, const char *argv[])
Definition: headless/main.cpp:18
WINDOW_NAME
#define WINDOW_NAME
Definition: mouse/main.cpp:16
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: input-sizes/CMakeLists.txt:1
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: row-column/CMakeLists.txt:8
window
void window(const cv::String &name)
Definition: multiple-windows/main.cpp:66
canny
Definition: canny.py:1
multiple-windows-complex.main
def main()
Definition: multiple-windows-complex.py:16
cvui::cvui_label_t::textBeforeShortcut
std::string textBeforeShortcut
Definition: cvui.h:1203
EnhancedWindow::isMinimized
bool isMinimized()
Definition: EnhancedWindow.h:96
WINDOW_NAME
#define WINDOW_NAME
Definition: input-sizes/main.cpp:16
cvui::KEY_BACKSPACE
const unsigned int KEY_BACKSPACE
Definition: cvui.h:1177
mouse
Definition: mouse.py:1
GUI_WINDOW1_NAME
#define GUI_WINDOW1_NAME
Definition: multiple-windows-complex-dynamic/main.cpp:16
EnhancedWindow::begin
void begin(cv::Mat &frame)
Definition: EnhancedWindow.h:46
EnhancedWindow::setWidth
void setWidth(int w)
Definition: EnhancedWindow.h:88
EnhancedWindow.EnhancedWindow.isMinimized
def isMinimized(self)
Definition: EnhancedWindow.py:78
CVUI_FILLED
#define CVUI_FILLED
Definition: cvui.h:1088
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: hello-world/CMakeLists.txt:8
cvui::TRACKBAR_HIDE_STEP_SCALE
const unsigned int TRACKBAR_HIDE_STEP_SCALE
Definition: cvui.h:1163
cvui::lastKeyPressed
int lastKeyPressed()
Return the last key that was pressed.
WINDOW3_NAME
#define WINDOW3_NAME
Definition: multiple-windows-complex-mouse/main.cpp:17
include_directories
include_directories(../../..) set(ApplicationName canny) add_executable($
Definition: canny/CMakeLists.txt:3
main
int main(int argc, const char *argv[])
Definition: multiple-windows-complex-dynamic/main.cpp:41
ROI_WINDOW
#define ROI_WINDOW
Definition: mouse-complex/main.cpp:17
mouse-complex.main
def main()
Definition: mouse-complex.py:16
Class2::renderMessage
void renderMessage(cv::Mat &frame)
Definition: Class2.cpp:12
multiple-windows.main
def main()
Definition: multiple-windows.py:121
Class1.Class1
Definition: Class1.py:11
multiple-windows-complex-dynamic.openWindow
def openWindow(name)
Definition: multiple-windows-complex-dynamic.py:25
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: trackbar-sparkline/CMakeLists.txt:10
EnhancedWindow.EnhancedWindow.__height
__height
Definition: EnhancedWindow.py:22
cvui::window
void window(int theWidth, int theHeight, const cv::String &theTitle)
Display a window (a block with a title and a body) within a begin*() and end*() block.
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: input-react-key/CMakeLists.txt:1
EnhancedWindow.EnhancedWindow
Definition: EnhancedWindow.py:17
cvui::sparkline
void sparkline(std::vector< double > &theValues, int theWidth, int theHeight, unsigned int theColor=0x00FF00)
Display the values of a vector as a sparkline within a begin*() and end*() block.
target_link_libraries
main cpp ui enhanced window component EnhancedWindow h target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: ui-enhanced-canny/CMakeLists.txt:8
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: interaction-area/CMakeLists.txt:8
headless.main
def main()
Definition: headless.py:14
cvui::cvui_context_t
Definition: cvui.h:1232
cvui::trackbar
bool trackbar(int theWidth, num_type *theValue, num_type theMin, num_type theMax, int theSegments, const char *theLabelFormat, unsigned int theOptions, num_type theDiscreteStep)
Definition: cvui.h:1391
include_directories
include_directories(../../..) set(ApplicationName sparkline) add_executable($
Definition: sparkline/CMakeLists.txt:3
EnhancedWindow.EnhancedWindow.__isMoving
__isMoving
Definition: EnhancedWindow.py:27
cvui::watch
void watch(const cv::String &theWindowName, bool theCreateNamedWindow=true)
Track UI interactions of a particular window.
cvui::printf
void printf(cv::Mat &theWhere, int theX, int theY, double theFontScale, unsigned int theColor, const char *theFmt,...)
Display a piece of text that can be formated using stdio's printf() style.
Class2::Class2
Class2()
Definition: Class2.cpp:9
interaction-area.main
def main()
Definition: interaction-area.py:16
cvui::cvui_block_t::type
int type
Definition: cvui.h:1191
complex-layout.main
def main()
Definition: complex-layout.py:56
Class1.Class1.renderInfo
def renderInfo(self, frame)
Definition: Class1.py:15
cvui::init
void init(const cv::String &theWindowName, int theDelayWaitKey=-1, bool theCreateNamedWindow=true, bool theHeadlessMode=false)
Initializes cvui.
cvui::CLICK
const int CLICK
Definition: cvui.h:1150
target_link_libraries
main cpp Class1 cpp Class2 cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: multiple-files/CMakeLists.txt:8
include_directories
include_directories(../../..) set(ApplicationName mouse-complex) add_executable($
Definition: mouse-complex/CMakeLists.txt:3
cvui::beginColumn
void beginColumn(cv::Mat &theWhere, int theX, int theY, int theWidth=-1, int theHeight=-1, int thePadding=0)
Start a new column.
cvui::cvui_mouse_btn_t
Definition: cvui.h:1208
cvui.h
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: interaction-area/CMakeLists.txt:1
load
std::vector< double > load(std::string thePath)
Definition: sparkline/main.cpp:19
multiple-windows-complex-dynamic.isWindowOpen
def isWindowOpen(name)
Definition: multiple-windows-complex-dynamic.py:21
main
int main(int argc, const char *argv[])
Definition: main-app/main.cpp:17
cvui::rect
void rect(cv::Mat &theWhere, int theX, int theY, int theWidth, int theHeight, unsigned int theBorderColor, unsigned int theFillingColor=0xff000000)
Display a filled rectangle.
cvui::trackbar
bool trackbar(cv::Mat &theWhere, int theX, int theY, int theWidth, T *theValue, T theMin, T theMax, int theSegments=1, const char *theLabelFormat="%.1Lf", unsigned int theOptions=0, T theDiscreteStep=1)
Display a trackbar for numeric values that the user can increase/decrease by clicking and/or dragging...
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: complext-layout/CMakeLists.txt:10
sparkline.main
def main()
Definition: sparkline.py:34
cvui::INTPUT_CURSOR_BLINK_SLOWNESS
const unsigned int INTPUT_CURSOR_BLINK_SLOWNESS
Definition: cvui.h:1168
include_directories
include_directories(../../..) set(ApplicationName input-detect-key) add_executable($
Definition: input-detect-key/CMakeLists.txt:3
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: multiple-windows-complex-dynamic/CMakeLists.txt:1
main
int main(int argc, const char *argv[])
Definition: canny/main.cpp:15
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: ui-enhanced-window-component/CMakeLists.txt:1
cvui::KEY_ARROW_UP
const unsigned int KEY_ARROW_UP
Definition: cvui.h:1174
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: trackbar-sparkline/CMakeLists.txt:1
multiple-windows-complex-dynamic.main
def main()
Definition: multiple-windows-complex-dynamic.py:37
Class1
Definition: Class1.py:1
EnhancedWindow.EnhancedWindow.__title
__title
Definition: EnhancedWindow.py:24
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: mouse-complex-buttons/CMakeLists.txt:8
cvui::KEY_DELETE
const unsigned int KEY_DELETE
Definition: cvui.h:1179
cvui::cvui_context_t::windowName
cv::String windowName
Definition: cvui.h:1233
cvui::mouse
bool mouse(const cv::String &theWindowName, int theButton, int theQuery)
Query the mouse for events in a particular button in a particular window.
WINDOW_NAME
#define WINDOW_NAME
Definition: trackbar-complex/main.cpp:13
input-change-counter.main
def main()
Definition: input-change-counter.py:13
WINDOW2_NAME
#define WINDOW2_NAME
Definition: multiple-windows-complex-mouse/main.cpp:16
input-sizes.main
def main()
Definition: input-sizes.py:14
WINDOW_NAME
#define WINDOW_NAME
Definition: input/main.cpp:15
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: mouse/CMakeLists.txt:1
cvui::KEY_END
const unsigned int KEY_END
Definition: cvui.h:1180
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: headless/CMakeLists.txt:8
cvui::cvui_block_t
Definition: cvui.h:1185
cvui::cvui_input_t::contentStartIndex
int contentStartIndex
Definition: cvui.h:1224
cvui::beginRow
void beginRow(cv::Mat &theWhere, int theX, int theY, int theWidth=-1, int theHeight=-1, int thePadding=0)
Start a new row.
cvui::TRACKBAR_HIDE_LABELS
const unsigned int TRACKBAR_HIDE_LABELS
Definition: cvui.h:1167
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: input-change-counter/CMakeLists.txt:1
include_directories
include_directories(../../..) set(ApplicationName button-shortcut) add_executable($
Definition: button-shortcut/CMakeLists.txt:3
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: input-detect-key/CMakeLists.txt:1
Class1::renderInfo
void renderInfo(cv::Mat &frame)
Definition: Class1.cpp:13
cvui::window
void window(cv::Mat &theWhere, int theX, int theY, int theWidth, int theHeight, const cv::String &theTitle)
Display a window (a block with a title and a body).
multiple
main
int main(int argc, const char *argv[])
Definition: ui-enhanced-canny/main.cpp:29
WINDOW_NAME
#define WINDOW_NAME
Definition: sparkline/main.cpp:17
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: trackbar/CMakeLists.txt:1
main
int main(int argc, const char *argv[])
Definition: ui-enhanced-window-component/main.cpp:25
include_directories
include_directories(../../..) set(ApplicationName nested-rows-columns) add_executable($
Definition: nested-rows-columns/CMakeLists.txt:3
row-column.main
def main()
Definition: row-column.py:31
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: image-button/CMakeLists.txt:8
multiple-windows-complex-dynamic.closeWindow
def closeWindow(name)
Definition: multiple-windows-complex-dynamic.py:30
button-shortcut.main
def main()
Definition: button-shortcut.py:20
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/sparkline.csv DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: sparkline/CMakeLists.txt:10
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: nested-rows-columns/CMakeLists.txt:1
trackbar-complex.main
def main()
Definition: trackbar-complex.py:20
cvui::cvui_mouse_btn_t::justPressed
bool justPressed
Definition: cvui.h:1210
cvui::cvui_mouse_t::position
cv::Point position
Definition: cvui.h:1218
cvui::cvui_block_t::padding
int padding
Definition: cvui.h:1190
cvui::KEY_TAB
const unsigned int KEY_TAB
Definition: cvui.h:1178
cvui::checkbox
bool checkbox(cv::Mat &theWhere, int theX, int theY, const cv::String &theLabel, bool *theState, unsigned int theColor=0xCECECE)
Display a checkbox.
cvui::space
void space(int theValue=5)
Add an arbitrary amount of space between components within a begin*() and end*() block.
cvui::counter
double counter(double *theValue, double theStep=0.5, const char *theFormat="%.2f")
Display a counter for float values that the user can increase/descrease by clicking the up and down a...
cvui::counter
int counter(cv::Mat &theWhere, int theX, int theY, int *theValue, int theStep=1, const char *theFormat="%d")
Display a counter for integer values that the user can increase/descrease by clicking the up and down...
main
int main(int argc, const char *argv[])
Definition: multiple-files/main.cpp:24
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: trackbar-complex/CMakeLists.txt:10
cvui::context
void context(const cv::String &theWindowName)
Inform cvui that all subsequent component calls belong to a window in particular.
WINDOW_NAME
#define WINDOW_NAME
Definition: input-detect-key/main.cpp:16
include_directories
include_directories(../../..) set(ApplicationName multiple-windows-complex-mouse) add_executable($
Definition: multiple-windows-complex-mouse/CMakeLists.txt:3
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: hello-world/CMakeLists.txt:1
sprintf_s
#define sprintf_s
Definition: cvui.h:1094
cvui::imshow
void imshow(const cv::String &theWindowName, cv::InputArray theFrame)
Display an image in the specified window and update the internal structures of cvui.
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: hello-world/CMakeLists.txt:10
include_directories
include_directories(../../..) set(ApplicationName ui-enhanced-window-component) add_executable($
Definition: ui-enhanced-window-component/CMakeLists.txt:3
cvui::beginRow
void beginRow(int theWidth=-1, int theHeight=-1, int thePadding=0)
Start a row.
WINDOW_NAME
#define WINDOW_NAME
Definition: on-image/main.cpp:13
cvui::cvui_input_t::cursorLastBlink
int cursorLastBlink
Definition: cvui.h:1225
WINDOW_NAME
#define WINDOW_NAME
Definition: mouse-complex/main.cpp:16
cvui::cvui_block_t::anchor
cv::Point anchor
Definition: cvui.h:1189
WINDOW_NAME
#define WINDOW_NAME
Definition: row-column/main.cpp:30
include_directories
include_directories(../../..) set(ApplicationName main-app) add_executable($
Definition: main-app/CMakeLists.txt:3
main
int main(int argc, const char *argv[])
Definition: sparkline/main.cpp:35
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: sparkline/CMakeLists.txt:8
main
int main(int argc, const char *argv[])
Definition: trackbar/main.cpp:17
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: input-react-key/CMakeLists.txt:8
main
int main(int argc, const char *argv[])
Definition: input-multiple/main.cpp:18
EnhancedWindow.EnhancedWindow.__minimized
__minimized
Definition: EnhancedWindow.py:28
cvui::button
bool button(cv::Mat &theWhere, int theX, int theY, const cv::String &theLabel)
Display a button.
cvui::image
void image(cv::Mat &theWhere, int theX, int theY, cv::Mat &theImage)
Display an image (cv::Mat).
cvui::beginColumn
void beginColumn(int theWidth=-1, int theHeight=-1, int thePadding=0)
Start a column.
Class2.Class2
Definition: Class2.py:11
include_directories
include_directories(../../..) set(ApplicationName trackbar) add_executable($
Definition: trackbar/CMakeLists.txt:3
cvui::cvui_input_t::cursorBlinkCounter
int cursorBlinkCounter
Definition: cvui.h:1227
cvui::cvui_block_t::rect
cv::Rect rect
Definition: cvui.h:1187
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: canny/CMakeLists.txt:8
cvui::init
void init(const cv::String theWindowNames[], size_t theHowManyWindows, int theDelayWaitKey=-1, bool theCreateNamedWindows=true, bool theHeadlessMode=false)
Initialize cvui using a list of names of windows where components will be added.
cvui::TRACKBAR_DISCRETE
const unsigned int TRACKBAR_DISCRETE
Definition: cvui.h:1164
cvui::cvui_label_t::shortcut
char shortcut
Definition: cvui.h:1202
WINDOW_NAME
#define WINDOW_NAME
Definition: trackbar/main.cpp:15
mouse-complex-buttons.main
def main()
Definition: mouse-complex-buttons.py:18
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: button-shortcut/CMakeLists.txt:1
cvui::printf
void printf(const char *theFmt,...)
Display a piece of text that can be formated using stdio's printf() style.
EnhancedWindow.EnhancedWindow.__minimizable
__minimizable
Definition: EnhancedWindow.py:29
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: input-multiple/CMakeLists.txt:8
cvui::text
void text(const cv::String &theText, double theFontScale=0.4, unsigned int theColor=0xCECECE)
Display a piece of text within a begin*() and end*() block.
input.main
def main()
Definition: input.py:16
cvui::handleMouse
void handleMouse(int theEvent, int theX, int theY, int theFlags, void *theData)
include_directories
include_directories(../../..) set(ApplicationName input-react-key) add_executable($
Definition: input-react-key/CMakeLists.txt:3
WINDOW_NAME
#define WINDOW_NAME
Definition: ui-enhanced-canny/main.cpp:27
WINDOW_NAME
#define WINDOW_NAME
Definition: hello-world/main.cpp:15
WINDOW4_NAME
#define WINDOW4_NAME
Definition: multiple-windows/main.cpp:63
EnhancedWindow.EnhancedWindow.__deltaY
__deltaY
Definition: EnhancedWindow.py:25
cvui::KEY_ARROW_RIGHT
const unsigned int KEY_ARROW_RIGHT
Definition: cvui.h:1173
cvui::sparkline
void sparkline(cv::Mat &theWhere, std::vector< double > &theValues, int theX, int theY, int theWidth, int theHeight, unsigned int theColor=0x00FF00)
Display the values of a vector as a sparkline.
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: multiple-windows-complex-mouse/CMakeLists.txt:8
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: main-app/CMakeLists.txt:8
hello-world.main
def main()
Definition: hello-world.py:15
cvui::cvui_block_t::where
cv::Mat where
Definition: cvui.h:1186
include_directories
include_directories(../../..) set(ApplicationName ui-enhanced-canny) add_executable($
Definition: ui-enhanced-canny/CMakeLists.txt:3
cvui::KEY_ENTER
const unsigned int KEY_ENTER
Definition: cvui.h:1176
include_directories
include_directories(../../..) set(ApplicationName input-multiple) add_executable($
Definition: input-multiple/CMakeLists.txt:3
cvui::TRACKBAR_HIDE_VALUE_LABEL
const unsigned int TRACKBAR_HIDE_VALUE_LABEL
Definition: cvui.h:1166
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: input-react-key/CMakeLists.txt:10
main
int main(int argc, const char *argv[])
Definition: hello-world/main.cpp:17
EnhancedWindow.EnhancedWindow.setWidth
def setWidth(self, w)
Definition: EnhancedWindow.py:71
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: headless/CMakeLists.txt:1
Class1.Class1.checked
checked
Definition: Class1.py:13
nested-rows-columns.main
def main()
Definition: nested-rows-columns.py:18
main
int main(int argc, const char *argv[])
Definition: input-react-key/main.cpp:16
ENABLE_HEADLESS
#define ENABLE_HEADLESS
Definition: headless/main.cpp:16
include_directories
include_directories(../../..) set(ApplicationName multiple-windows-complex) add_executable($
Definition: multiple-windows-complex/CMakeLists.txt:3
Class1::Class1
Class1()
Definition: Class1.cpp:9
cvui::COLUMN
const int COLUMN
Definition: cvui.h:1148
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: main-app/CMakeLists.txt:1
GUI_WINDOW2_NAME
#define GUI_WINDOW2_NAME
Definition: multiple-windows-complex-dynamic/main.cpp:17
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: input-detect-key/CMakeLists.txt:10
EnhancedWindow.EnhancedWindow.__width
__width
Definition: EnhancedWindow.py:21
vsprintf_s
#define vsprintf_s
Definition: cvui.h:1093
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: main-app/CMakeLists.txt:10
include_directories
include_directories(../../..) set(ApplicationName multiple-files) add_executable($
Definition: multiple-files/CMakeLists.txt:3
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: input-change-counter/CMakeLists.txt:8
trackbar-sparkline.main
def main()
Definition: trackbar-sparkline.py:20
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/lena-face.jpg DESTINATION bin) install(FILES ../../data/lena-face-red.jpg DESTINATION bin) install(FILES ../../data/lena-face-gray.jpg DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: image-button/CMakeLists.txt:10
sparkline
Definition: sparkline.py:1
CVUI_ANTIALISED
#define CVUI_ANTIALISED
Definition: cvui.h:1084
EnhancedWindow.h
WINDOW_NAME
#define WINDOW_NAME
Definition: trackbar-sparkline/main.cpp:13
sparkline.load
def load(thePath)
Definition: sparkline.py:16
include_directories
include_directories(../../..) set(ApplicationName input-sizes) add_executable($
Definition: input-sizes/CMakeLists.txt:3
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: trackbar-complex/CMakeLists.txt:8
WINDOW_NAME
#define WINDOW_NAME
Definition: input-multiple/main.cpp:16
include_directories
include_directories(../../..) set(ApplicationName image-button) add_executable($
Definition: image-button/CMakeLists.txt:3
WINDOW1_NAME
#define WINDOW1_NAME
Definition: multiple-windows-complex-mouse/main.cpp:15
cvui::iarea
int iarea(int theX, int theY, int theWidth, int theHeight)
Create an interaction area that reports activity with the mouse cursor.
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: image-button/CMakeLists.txt:1
cvui::cvui_block_t::fill
cv::Rect fill
Definition: cvui.h:1188
main
int main(int argc, const char *argv[])
Definition: nested-rows-columns/main.cpp:20
cvui::KEY_ARROW_DOWN
const unsigned int KEY_ARROW_DOWN
Definition: cvui.h:1175
multiple-windows.window
def window(name)
Definition: multiple-windows.py:65
cvui::checkbox
bool checkbox(const cv::String &theLabel, bool *theState, unsigned int theColor=0xCECECE)
Display a checkbox within a begin*() and end*() block.
WINDOW_NAME
#define WINDOW_NAME
Definition: mouse-complex-buttons/main.cpp:19
canny.main
def main()
Definition: canny.py:15
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: input-sizes/CMakeLists.txt:10
main
int main(int argc, const char *argv[])
Definition: trackbar-complex/main.cpp:15
cvui::cvui_label_t::textAfterShortcut
std::string textAfterShortcut
Definition: cvui.h:1204
main
int main(int argc, const char *argv[])
Definition: input-sizes/main.cpp:18
WINDOW3_NAME
#define WINDOW3_NAME
Definition: multiple-windows/main.cpp:62
headless
Definition: headless.py:1
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: multiple-files/CMakeLists.txt:10
multiple-files.main
def main()
Definition: multiple-files.py:19
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: multiple-windows/CMakeLists.txt:10
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: mouse-complex/CMakeLists.txt:8
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: input-multiple/CMakeLists.txt:1
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: multiple-windows-complex-mouse/CMakeLists.txt:1
EnhancedWindow.EnhancedWindow.__deltaX
__deltaX
Definition: EnhancedWindow.py:26
EnhancedWindow.EnhancedWindow.begin
def begin(self, frame)
Definition: EnhancedWindow.py:31
WINDOW_NAME
#define WINDOW_NAME
Definition: canny/main.cpp:13
cvui::MIDDLE_BUTTON
const int MIDDLE_BUTTON
Definition: cvui.h:1158
include_directories
include_directories(../../..) set(ApplicationName row-column) add_executable($
Definition: row-column/CMakeLists.txt:3
cvui::cvui_input_t::name
cv::String name
Definition: cvui.h:1223
main
int main(int argc, const char *argv[])
Definition: trackbar-sparkline/main.cpp:15
cvui::rect
void rect(int theWidth, int theHeight, unsigned int theBorderColor, unsigned int theFillingColor=0xff000000)
Display a rectangle within a begin*() and end*() block.
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: on-image/CMakeLists.txt:1
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: ui-enhanced-canny/CMakeLists.txt:1
EnhancedWindow::EnhancedWindow
EnhancedWindow(int x, int y, int width, int height, const cv::String &title, bool minimizable=true)
Definition: EnhancedWindow.h:32
WINDOW1_NAME
#define WINDOW1_NAME
Definition: multiple-windows/main.cpp:60
image-button.main
def main()
Definition: image-button.py:14
trackbar
Definition: trackbar.py:1
include_directories
include_directories(../../..) set(ApplicationName mouse-complex-buttons) add_executable($
Definition: mouse-complex-buttons/CMakeLists.txt:3
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/lena.jpg DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: mouse-complex/CMakeLists.txt:10
include_directories
include_directories(../../..) set(ApplicationName input) add_executable($
Definition: input/CMakeLists.txt:3
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: multiple-files/CMakeLists.txt:1
main
int main(int argc, const char *argv[])
Definition: row-column/main.cpp:32
WINDOW1_NAME
#define WINDOW1_NAME
Definition: multiple-windows-complex/main.cpp:13
include_directories
include_directories(../../..) set(ApplicationName mouse) add_executable($
Definition: mouse/CMakeLists.txt:3
input-detect-key.main
def main()
Definition: input-detect-key.py:14
include_directories
include_directories(../../..) set(ApplicationName hello-world) add_executable($
Definition: hello-world/CMakeLists.txt:3
multiple-windows-complex-mouse.main
def main()
Definition: multiple-windows-complex-mouse.py:17
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: multiple-windows-complex/CMakeLists.txt:8
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: sparkline/CMakeLists.txt:1
cvui::cvui_context_t::mouse
cvui_mouse_t mouse
Definition: cvui.h:1234
cvui::cvui_label_t
Definition: cvui.h:1200
cvui::KEY_NONE
const unsigned int KEY_NONE
Definition: cvui.h:1171
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: input/CMakeLists.txt:10
WINDOW_NAME
#define WINDOW_NAME
Definition: image-button/main.cpp:15
cvui::TRACKBAR_HIDE_SEGMENT_LABELS
const unsigned int TRACKBAR_HIDE_SEGMENT_LABELS
Definition: cvui.h:1162
cvui::KEY_ARROW_LEFT
const unsigned int KEY_ARROW_LEFT
Definition: cvui.h:1172
include_directories
include_directories(../../..) set(ApplicationName complex-layout) add_executable($
Definition: complext-layout/CMakeLists.txt:3
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: trackbar-complex/CMakeLists.txt:1
WINDOW_NAME
#define WINDOW_NAME
Definition: multiple-files/main.cpp:22
main
int main(int argc, const char *argv[])
Definition: mouse/main.cpp:18
WINDOW_NAME
#define WINDOW_NAME
Definition: main-app/main.cpp:15
WINDOW2_NAME
#define WINDOW2_NAME
Definition: multiple-windows-complex/main.cpp:14
EnhancedWindow::setHeight
void setHeight(int h)
Definition: EnhancedWindow.h:92
EnhancedWindow.EnhancedWindow.__heightNotMinimized
__heightNotMinimized
Definition: EnhancedWindow.py:23
Class2.h
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: row-column/CMakeLists.txt:10
cvui::UP
const int UP
Definition: cvui.h:1153
include_directories
include_directories(../../..) set(ApplicationName headless) add_executable($
Definition: headless/CMakeLists.txt:3
main
int main(int argc, const char *argv[])
Definition: multiple-windows-complex/main.cpp:16
ui-enhanced-canny.main
def main()
Definition: ui-enhanced-canny.py:29
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: row-column/CMakeLists.txt:1
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: ui-enhanced-window-component/CMakeLists.txt:8
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: multiple-windows-complex-mouse/CMakeLists.txt:10
find_package
find_package(OpenCV REQUIRED) include_directories($
Definition: canny/CMakeLists.txt:1
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: input-sizes/CMakeLists.txt:8
compact
void compact(const cv::String &name)
Definition: multiple-windows/main.cpp:100
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: mouse/CMakeLists.txt:8
complex-layout.group
def group(frame, x, y, width, height)
Definition: complex-layout.py:19
cvui::TRACKBAR_HIDE_MIN_MAX_LABELS
const unsigned int TRACKBAR_HIDE_MIN_MAX_LABELS
Definition: cvui.h:1165
input-multiple.main
def main()
Definition: input-multiple.py:14
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: multiple-windows/CMakeLists.txt:8
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: on-image/CMakeLists.txt:8
main
int main(int argc, const char *argv[])
Definition: image-button/main.cpp:17
WINDOW_NAME
#define WINDOW_NAME
Definition: button-shortcut/main.cpp:14
cvui::cvui_input_t::fontScale
double fontScale
Definition: cvui.h:1228
main
int main(int argc, const char *argv[])
Definition: mouse-complex/main.cpp:19
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: multiple-windows-complex-dynamic/CMakeLists.txt:10
WINDOW_NAME
#define WINDOW_NAME
Definition: interaction-area/main.cpp:17
target_link_libraries
main cpp target_link_libraries(${ApplicationName} ${OpenCV_LIBS}) set_property(TARGET $
Definition: input-detect-key/CMakeLists.txt:8
cvui::update
void update(const cv::String &theWindowName="")
Update the library internal things.
include_directories
include_directories(../../..) set(ApplicationName input-change-counter) add_executable($
Definition: input-change-counter/CMakeLists.txt:3
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) install(FILES ../../data/fruits.jpg DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: ui-enhanced-canny/CMakeLists.txt:10
cvui::cvui_mouse_btn_t::pressed
bool pressed
Definition: cvui.h:1211
WINDOW_NAME
#define WINDOW_NAME
Definition: complext-layout/main.cpp:20
group
void group(cv::Mat &frame, int x, int y, int width, int height)
Definition: complext-layout/main.cpp:22
install
PROPERTY CXX_STANDARD install(TARGETS ${ApplicationName} DESTINATION bin) if(ADD_PYTHON_EXAMPLES) add_custom_command(TARGET $
Definition: mouse/CMakeLists.txt:10