Struct widgetry::Slider [−][src]
pub struct Slider { current_percent: f64, mouse_on_slider: bool, pub(crate) dragging: bool, style: Style, draw: Drawable, top_left: ScreenPt, dims: ScreenDims, }
Fields
current_percent: f64
mouse_on_slider: bool
dragging: bool
style: Style
draw: Drawable
top_left: ScreenPt
dims: ScreenDims
Implementations
impl Slider
[src]
impl Slider
[src]pub fn horizontal(
ctx: &EventCtx<'_>,
width: f64,
dragger_len: f64,
current_percent: f64
) -> Widget
[src]
ctx: &EventCtx<'_>,
width: f64,
dragger_len: f64,
current_percent: f64
) -> Widget
pub fn vertical(
ctx: &EventCtx<'_>,
height: f64,
dragger_len: f64,
current_percent: f64
) -> Widget
[src]
ctx: &EventCtx<'_>,
height: f64,
dragger_len: f64,
current_percent: f64
) -> Widget
pub fn area(ctx: &EventCtx<'_>, width: f64, current_percent: f64) -> Widget
[src]
fn new_widget(ctx: &EventCtx<'_>, style: Style, current_percent: f64) -> Widget
[src]
fn recalc(&mut self, ctx: &EventCtx<'_>)
[src]
fn button_geom(&self) -> Polygon
[src]
fn pt_to_percent(&self, pt: ScreenPt) -> f64
[src]
pub fn get_percent(&self) -> f64
[src]
pub fn get_value(&self, num_items: usize) -> usize
[src]
pub(crate) fn set_percent(&mut self, ctx: &EventCtx<'_>, percent: f64)
[src]
fn inner_event(&mut self, ctx: &mut EventCtx<'_>) -> bool
[src]
Trait Implementations
impl WidgetImpl for Slider
[src]
impl WidgetImpl for Slider
[src]