pub struct EuvSlider { /* private fields */ }Expand description
Continuous range slider bound to Signal<f32> in [min, max].
Implementations§
Source§impl EuvSlider
Palette helpers for EuvSlider.
impl EuvSlider
Palette helpers for EuvSlider.
Sourcepub fn palette_colors(palette: ThemePalette) -> (Color, Color, Color, Color)
pub fn palette_colors(palette: ThemePalette) -> (Color, Color, Color, Color)
Resolves (track_color, fill_color, thumb_fill, thumb_ring) colors from palette with guaranteed thumb
ring-to-center contrast across all 34 themes (including Monochrome).
§Arguments
ThemePalette- Live theme palette.
§Returns
(Color, Color, Color, Color)- Track, fill, thumb center fill, and thumb ring colors.
Source§impl EuvSlider
impl EuvSlider
pub fn get_value(&self) -> Signal<f32>
pub fn get_mut_value(&mut self) -> &mut Signal<f32>
pub fn set_value(&mut self, val: Signal<f32>) -> &mut Self
pub fn get_min(&self) -> f32
pub fn get_mut_min(&mut self) -> &mut f32
pub fn set_min(&mut self, val: f32) -> &mut Self
pub fn get_max(&self) -> f32
pub fn get_mut_max(&mut self) -> &mut f32
pub fn set_max(&mut self, val: f32) -> &mut Self
pub fn get_tokens(&self) -> ThemeTokens
pub fn get_mut_tokens(&mut self) -> &mut ThemeTokens
pub fn set_tokens(&mut self, val: ThemeTokens) -> &mut Self
Trait Implementations§
Source§impl Component for EuvSlider
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
impl Component for EuvSlider
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
Source§fn render(&self) -> NodeId
fn render(&self) -> NodeId
Renders EuvSlider into the ambient framework-managed Context.
Reads live theme tokens inside the canvas painter, draws crisp pill end caps with zero track-under-fill
overlap or AA fringe (including 1-2% fill), and renders a circular RADIUS_PILL thumb with a contrast-safe
ring across all 34 themes.
§Arguments
&Self- Component descriptor reference.
§Returns
NodeId- Mounted root scene node handle.
Source§const NEEDS_LIFECYCLE: bool = false
const NEEDS_LIFECYCLE: bool = false
Rc<Self> observer registration on mount.Source§impl ComponentProps for EuvSlider
Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.
impl ComponentProps for EuvSlider
Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.
Source§fn init_props() -> Self
fn init_props() -> Self
Implements the init_props operation on Self.
Source§impl Lifecycle for EuvSlider
Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.
impl Lifecycle for EuvSlider
Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.
Source§fn retention_policy(&self) -> PageRetention
fn retention_policy(&self) -> PageRetention
Source§fn on_create(&self)
fn on_create(&self)
render pass executes. Read moreSource§fn on_update(&self, _node: NodeId)
fn on_update(&self, _node: NodeId)
Source§fn on_activate(&self, _node: NodeId)
fn on_activate(&self, _node: NodeId)
Source§fn on_freeze(&self, _node: NodeId)
fn on_freeze(&self, _node: NodeId)
PageRetention::Freeze. Read moreSource§fn on_resume(&self, _node: NodeId)
fn on_resume(&self, _node: NodeId)
Source§fn on_unmount(&self, _node: NodeId)
fn on_unmount(&self, _node: NodeId)
Source§fn on_destroy(&self)
fn on_destroy(&self)
Source§fn on_error(&self, _error: &str)
fn on_error(&self, _error: &str)
Source§fn on_appear(&self)
fn on_appear(&self)
Source§fn on_disappear(&self)
fn on_disappear(&self)
Source§fn on_foreground(&self)
fn on_foreground(&self)
Source§fn on_background(&self)
fn on_background(&self)
Source§fn on_inactive(&self)
fn on_inactive(&self)
Source§fn on_terminate(&self)
fn on_terminate(&self)
Source§fn on_system_event(&self, _event: &SystemEvent)
fn on_system_event(&self, _event: &SystemEvent)
SystemEvent delivered while this component is active. Read more