pub struct EuvTree { /* private fields */ }Expand description
Indented hierarchical tree viewer component with interactive branch folding and optional node selection.
Implementations§
Source§impl EuvTree
Builder, state-color helpers, and recursive rendering methods for EuvTree.
impl EuvTree
Builder, state-color helpers, and recursive rendering methods for EuvTree.
Sourcepub fn row_colors(palette: ThemePalette, is_selected: bool) -> (Color, Color)
pub fn row_colors(palette: ThemePalette, is_selected: bool) -> (Color, Color)
Source§impl EuvTree
impl EuvTree
pub fn get_roots(&self) -> &Vec<EuvTreeNode>
pub fn get_mut_roots(&mut self) -> &mut Vec<EuvTreeNode>
pub fn set_roots(&mut self, val: Vec<EuvTreeNode>) -> &mut Self
pub fn get_mut_selected(&mut self) -> &mut Option<Signal<Option<String>>>
pub fn set_selected(&mut self, val: Option<Signal<Option<String>>>) -> &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 EuvTree
impl EuvTree
pub fn new(roots: Vec<EuvTreeNode>, tokens: ThemeTokens) -> Self
Source§impl EuvTree
Implements impl #impl_generics #struct_ident #ty_generics #where_clause.
impl EuvTree
Implements impl #impl_generics #struct_ident #ty_generics #where_clause.
pub fn roots(self, value: Vec<EuvTreeNode>) -> Self
pub fn tokens(self, value: ThemeTokens) -> Self
Trait Implementations§
Source§impl Component for EuvTree
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
impl Component for EuvTree
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
Source§fn render(&self) -> NodeId
fn render(&self) -> NodeId
Renders EuvTree into the ambient framework-managed Context.
Selected rows and their labels are theme-owned and repainted from use_live_tokens() with contrast-safe
SurfaceRole::Accent pairing so selection state stays crisp across live theme switches.
§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 EuvTree
Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.
impl ComponentProps for EuvTree
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 EuvTree
Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.
impl Lifecycle for EuvTree
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