Struct conrod::NumberDialer
[−]
[src]
pub struct NumberDialer<'a, T, F> { // some fields omitted }
A widget for precision control over any digit within a value. The reaction is triggered when the value is updated or if the mouse button is released while the cursor is above the widget.
Methods
impl<'a, T: Float, F> NumberDialer<'a, T, F>
fn new(value: T, min: T, max: T, precision: u8) -> NumberDialer<'a, T, F>
Construct a new NumberDialer widget.
fn react(self, reaction: F) -> NumberDialer<'a, T, F>
Set the reaction for the NumberDialer. It will be triggered when the value is updated or if the mouse button is released while the cursor is above the widget.
fn set<C>(self, ui_id: UiId, ui: &mut Ui<C>) where C: CharacterCache, F: FnMut(T), T: ToString
After building the NumberDialer, use this method to set its current state into the given
Ui
. It will use this state for rendering the next time ui.draw(graphics)
is called.