You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use conrod_core::{color, widget, Colorable, Labelable, Positionable, Sizeable, Widget};
widget::Slider::new(100,1, 2)
I'm creating a new slider like this but I can't position it as I like, like in the examples, is this by design? is there an updated way of doing this? I'm using version 0.71
The text was updated successfully, but these errors were encountered:
You position Slider widgets just like any other widgets. It implements Widget and thus implements Positionable (blanket implementation). There is nothing special with it as far as I am aware.
Are you having issues specifically with the Slider widget? Do you already have a UI with some other widgets and be able to position them?
As this post has aged a bit now, I am not sure I can help the author of the issue.
However, I think I have a solution for the adressed problem.
widget::Slider::new(100,1, 2) implies Slider to be cast into an {integer} slider. The crate however only allows float-type sliders. Therefore it should be widget::Slider::new(100.,1., 2.).
I'm creating a new slider like this but I can't position it as I like, like in the examples, is this by design? is there an updated way of doing this? I'm using version 0.71
The text was updated successfully, but these errors were encountered: