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

Getting bar bounds (LinearSkin) for custom event listener #32

Closed
MichalHe opened this issue Jul 15, 2016 · 6 comments
Closed

Getting bar bounds (LinearSkin) for custom event listener #32

MichalHe opened this issue Jul 15, 2016 · 6 comments
Assignees
Labels

Comments

@MichalHe
Copy link

Is there a way to get bar bounds when using LinearSkin for custom event listener?

@MichalHe MichalHe changed the title Getting bar bounds (LinearSkin) for event custom event listener Getting bar bounds (LinearSkin) for custom event listener Jul 15, 2016
@HanSolo
Copy link
Owner

HanSolo commented Jul 15, 2016

Nope there is currently no way to do that. Because I have to implement it in the main model which is used by all gauges I would only do that if it really makes sense for other skins too.
What do you plan to do with the event?

@MichalHe
Copy link
Author

MichalHe commented Jul 15, 2016

set Value of gauge by x coords
can you provide the factor which is used to calculate bar beginning from start?

@HanSolo HanSolo self-assigned this Jul 15, 2016
@HanSolo
Copy link
Owner

HanSolo commented Jul 15, 2016

So you mean moving the bar by mouse?

@MichalHe
Copy link
Author

exactly my plan,
I have already written simmilar function for normal non-linear gauges, where the knob is in the center.

@HanSolo
Copy link
Owner

HanSolo commented Jul 15, 2016

ok...let me think about that...

@HanSolo
Copy link
Owner

HanSolo commented Jul 18, 2016

I thought about it but this seems to be more a non standard use-case which means my advice would be to fork the LinearSkin and create your own skin that does what you need. To me it does not make sense to add that functionality to the default LinearSkin...sorry :)

@HanSolo HanSolo closed this as completed Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants