Skip to content

Commit

Permalink
feat: bump version to 2.9.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Dovyski committed Sep 4, 2022
1 parent 6a7e186 commit 5619c98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions cvui.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
A (very) simple UI lib built on top of OpenCV drawing primitives.
Version: 2.7.0
Version: 2.9.0-BETA
Usage:
Expand Down Expand Up @@ -364,7 +364,7 @@ bool button(cv::Mat& theWhere, int theX, int theY, cv::Mat& theIdle, cv::Mat& th
\sa button()
\sa counter()
*/
int input(cv::Mat& theWhere, int theX, int theY, int theWidth, const cv::String& theName, cv::String& theValue, double theFontScale = 0.5);
int input(cv::Mat& theWhere, int theX, int theY, int theWidth, const cv::String theName, cv::String& theValue, double theFontScale = 0.5);


/**
Expand Down Expand Up @@ -1142,7 +1142,7 @@ void handleMouse(int theEvent, int theX, int theY, int theFlags, void* theData);
#endif

// Lib version
static const char *VERSION = "2.7.0";
static const char *VERSION = "2.9.0-beta";

const int ROW = 0;
const int COLUMN = 1;
Expand Down Expand Up @@ -1809,7 +1809,7 @@ namespace internal
}
}

int input(cvui_block_t& theBlock, int theX, int theY, int theWidth, const cv::String& theName, cv::String& theContent, double theFontScale, bool theUpdateLayout) {
int input(cvui_block_t& theBlock, int theX, int theY, int theWidth, const cv::String theName, cv::String& theContent, double theFontScale, bool theUpdateLayout) {
cv::Size aContentSize = cv::getTextSize(theContent, cv::FONT_HERSHEY_SIMPLEX, theFontScale, 1, nullptr);
int aPadding = aContentSize.height / 2;
cv::Rect aRect(theX, theY, theWidth - render::getScreenCharWidth(theFontScale), aContentSize.height + 2 + aPadding * 2);
Expand Down Expand Up @@ -2495,7 +2495,7 @@ bool button(cv::Mat& theWhere, int theX, int theY, cv::Mat& theIdle, cv::Mat& th
return internal::button(internal::gScreen, theX, theY, theIdle, theOver, theDown, true);
}

int input(cv::Mat& theWhere, int theX, int theY, int theWidth, const cv::String& theName, cv::String& theValue, double theFontScale) {
int input(cv::Mat& theWhere, int theX, int theY, int theWidth, const cv::String theName, cv::String& theValue, double theFontScale) {
internal::gScreen.where = theWhere;
return internal::input(internal::gScreen, theX, theY, theWidth, theName, theValue, theFontScale, true);
}
Expand Down
4 changes: 2 additions & 2 deletions cvui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
A (very) simple UI lib built on top of OpenCV drawing primitives.
Version: 2.7
Version: 2.9-beta
Use of cvui revolves around calling cvui.init() to initialize the lib,
rendering cvui components to a np.ndarray (that you handle yourself) and
Expand Down Expand Up @@ -48,7 +48,7 @@ def main():
main()

# Lib version
VERSION = '2.7'
VERSION = '2.9-beta'

# Constants regarding component interactions
ROW = 0
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
url: https://dovyski.github.io/cvui
cvui_version: 2.7.0
cvui_version: 2.9.0
permalink: pretty

0 comments on commit 5619c98

Please sign in to comment.