pub struct EuvRadioGroup { /* private fields */ }Expand description
Mutually exclusive radio button group bound to Signal<usize>.
Implementations§
Source§impl EuvRadioGroup
State-dependent palette helpers for EuvRadioGroup.
impl EuvRadioGroup
State-dependent palette helpers for EuvRadioGroup.
Sourcepub fn state_colors(
palette: ThemePalette,
active: bool,
) -> (Color, Color, Color)
pub fn state_colors( palette: ThemePalette, active: bool, ) -> (Color, Color, Color)
Source§impl EuvRadioGroup
Implements impl #impl_generics #name #ty_generics #where_clause.
impl EuvRadioGroup
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_options(&self) -> &Vec<String>
pub fn get_mut_options(&mut self) -> &mut Vec<String>
pub fn set_options(&mut self, val: Vec<String>) -> &mut Self
pub fn get_selected(&self) -> Signal<usize>
pub fn get_mut_selected(&mut self) -> &mut Signal<usize>
pub fn set_selected(&mut self, val: Signal<usize>) -> &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
Source§impl EuvRadioGroup
Implements impl #impl_generics #name #ty_generics #where_clause.
impl EuvRadioGroup
Implements impl #impl_generics #name #ty_generics #where_clause.
Trait Implementations§
Source§impl Clone for EuvRadioGroup
impl Clone for EuvRadioGroup
Source§impl Component for EuvRadioGroup
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
impl Component for EuvRadioGroup
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
Source§fn render(&self) -> NodeId
fn render(&self) -> NodeId
Renders EuvRadioGroup into the ambient framework-managed Context.
Both the outer radio ring and inner selection dot use RADIUS_PILL, and their state-dependent colors are
owned by a reactive Effect tracking both selected and the live ambient theme.
§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 EuvRadioGroup
Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.
impl ComponentProps for EuvRadioGroup
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 EuvRadioGroup
Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.
impl Lifecycle for EuvRadioGroup
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