Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- trackbar handle width and height as parameters #54

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

lukadt
Copy link

@lukadt lukadt commented Oct 12, 2018

I am using cvui in a touch device with a full hd resolution and being able to define trackbar handles is useful.

@Dovyski
Copy link
Owner

Dovyski commented Oct 13, 2018

Awesome, thank you!

In order to keep backward compatibility, would it be possible for you to move the theHandleWidth and theHandleHeight params to the end of the arguments list, please?

E.g.

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,
  int theHandleWidth  =3,
  int theHandleHeight = 4);

@Dovyski Dovyski changed the base branch from master to dev April 8, 2020 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants