Struct components::foundation::properties::SliderProperties
source · [−]pub struct SliderProperties {Show 22 fields
pub vertical: bool,
pub invert: bool,
pub min: f32,
pub max: f32,
pub value: f32,
pub step: Option<f32>,
pub key: Key,
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
pub w_min: f32,
pub h_min: f32,
pub w_max: f32,
pub h_max: f32,
pub parent: Option<Id>,
pub depth: f32,
pub visible: bool,
pub mouse_input: bool,
pub key_input: bool,
pub renderable: bool,
pub internal_visible: bool,
}Expand description
Options for constructing a Slider
Fields
vertical: boolWhether or not the slider is vertical. default: false
invert: boolInverts the sliders default direction. If true, horizontal slider goes from right to left and vertical slider from top to bottom. default: false
min: f32The slider minimum value. default: 0
max: f32The slider maximum value. default: 1
value: f32The slider initial value. default: 1
step: Option<f32>The slider step value. default: none
key: KeyThe key to identify widget
x: f32The control x position, relative to its container
y: f32The control y position, relative to its container
w: f32The control width
h: f32The control height
w_min: f32The control minimum width
h_min: f32The control minimum height
w_max: f32The control maximum width
h_max: f32The control maximum height
parent: Option<Id>The control parent, if any
depth: f32The control depth. Usually set internally
visible: boolWhether or not the control is visible at creation
mouse_input: boolWhether or not the control responds to mouse input
key_input: boolWhether or not the control responds to key input
renderable: boolWhether or not the control emits render signals from the canvas render call
internal_visible: boolInternal. Internal parent visibility for creating sub controls.
Trait Implementations
sourceimpl Clone for SliderProperties
impl Clone for SliderProperties
sourcefn clone(&self) -> SliderProperties
fn clone(&self) -> SliderProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SliderProperties
impl Debug for SliderProperties
sourceimpl Default for SliderProperties
impl Default for SliderProperties
sourceimpl WidgetProperties for SliderProperties
impl WidgetProperties for SliderProperties
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl RefUnwindSafe for SliderProperties
impl Send for SliderProperties
impl Sync for SliderProperties
impl Unpin for SliderProperties
impl UnwindSafe for SliderProperties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.