Struct widgetry::widgets::slider::Slider [−][src]
pub struct Slider { current_percent: f64, mouse_on_slider: bool, pub(crate) dragging: bool, style: Style, label: Option<String>, draw: Drawable, top_left: ScreenPt, dims: ScreenDims, }
Fields
current_percent: f64
mouse_on_slider: bool
dragging: bool
style: Style
label: Option<String>
draw: Drawable
top_left: ScreenPt
dims: ScreenDims
Implementations
impl Slider
[src]
impl Slider
[src]pub(crate) fn horizontal_scrollbar(
ctx: &EventCtx<'_>,
width: f64,
dragger_len: f64,
current_percent: f64
) -> Widget
[src]
ctx: &EventCtx<'_>,
width: f64,
dragger_len: f64,
current_percent: f64
) -> Widget
pub(crate) fn vertical_scrollbar(
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,
label: &str
) -> Widget
[src]
ctx: &EventCtx<'_>,
width: f64,
current_percent: f64,
label: &str
) -> Widget
fn new_widget(
ctx: &EventCtx<'_>,
style: Style,
current_percent: f64,
label: Option<String>
) -> Widget
[src]
ctx: &EventCtx<'_>,
style: Style,
current_percent: f64,
label: Option<String>
) -> Widget
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]