added mouse wheel support c++ and python. (fixed image draw when size mismatch, fixed enhanced window image out of window) #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
added mouse wheel support.
but opening the commented theFlags int
void handleMouse(int theEvent, int theX, int theY, int theFlags, void* theData)
function.
how this update is good. tested this on windows. (cpp and python)
and in linux the python version. that mouse wheel event up and down was recorded.
in Enhanced window
there was a bug, EnhancedWindow draws image outside of window issue #95
EnhancedWindow draws image outside of window
added my fix commented line 74
//cvui::beginRow(frame, mX + std::lround(10*mFontScale/cvui::DEFAULT_FONT_SCALE), mY + std::lround(30*mFontScale/cvui::DEFAULT_FONT_SCALE), mWidth - scaledTitleHeight, mHeight - scaledTitleHeight);
Bug cvui:image() crash when size of image is larger from canvas issue #94
added if statment to solve the issue:
Please test my changes,
Hope these changes can be incorporated in your repository, and pip install versions of cvui
Thanks for your great work
M.