pub struct EuvAppShell { /* private fields */ }Expand description
Dual-mode responsive application shell (Desktop / PC >= 960px: full-width topbar + permanent left sidebar + zero bottom nav; Mobile < 960px: compact topbar + overlay drawer + mobile-only bottom nav).
Implementations§
Source§impl EuvAppShell
Builder helpers for EuvAppShell.
impl EuvAppShell
Builder helpers for EuvAppShell.
Sourcepub fn top_bar_actions(self, actions: NodeId) -> Self
pub fn top_bar_actions(self, actions: NodeId) -> Self
Sourcepub fn mobile_header_actions(self, actions: NodeId) -> Self
pub fn mobile_header_actions(self, actions: NodeId) -> Self
Sourcepub fn swipe_routes(self, routes: Vec<String>) -> Self
pub fn swipe_routes(self, routes: Vec<String>) -> Self
Sourcepub fn theme(self, theme: UiThemeState) -> Self
pub fn theme(self, theme: UiThemeState) -> Self
Sourcepub fn page_padding(self, padding: Signal<Edges>) -> Self
pub fn page_padding(self, padding: Signal<Edges>) -> Self
Sourcepub fn auto_hide_chrome_on_scroll(self, enabled: bool) -> Self
pub fn auto_hide_chrome_on_scroll(self, enabled: bool) -> Self
Sourcepub fn auto_hide_chrome_signal(self, enabled: Signal<bool>) -> Self
pub fn auto_hide_chrome_signal(self, enabled: Signal<bool>) -> Self
Binds a reactive signal that enables or disables scroll-driven top/bottom chrome auto-hide live.
Setting the signal to false immediately restores hidden chrome; setting it to true activates scroll hiding.
§Arguments
Self- Source app shell.Signal<bool>- Reactive chrome auto-hide toggle.
§Returns
Self- Updated app shell.
Sourcepub fn show_fps_signal(self, show: Signal<bool>) -> Self
pub fn show_fps_signal(self, show: Signal<bool>) -> Self
Sourcepub fn swipe_routes_enabled(self, enabled: Signal<bool>) -> Self
pub fn swipe_routes_enabled(self, enabled: Signal<bool>) -> Self
Sourcepub fn on_brand_click<F>(self, handler: F) -> Self
pub fn on_brand_click<F>(self, handler: F) -> Self
Sourcepub fn brand_logo(self, logo: ImageBuffer) -> Self
pub fn brand_logo(self, logo: ImageBuffer) -> Self
Sourcepub fn drawer_open(self, open: Signal<bool>) -> Self
pub fn drawer_open(self, open: Signal<bool>) -> Self
Binds an external reactive signal controlling and observing the Mobile overlay drawer open state.
Entering Desktop (>= 960px) or Fullscreen automatically resets the signal to false.
§Arguments
Self- Source app shell.Signal<bool>- Reactive Mobile drawer open-state signal.
§Returns
Self- Updated app shell.
Sourcepub fn layout_mode(self, mode: Signal<EuvShellLayoutMode>) -> Self
pub fn layout_mode(self, mode: Signal<EuvShellLayoutMode>) -> Self
Source§impl EuvAppShell
impl EuvAppShell
pub fn get_brand(&self) -> &String
pub fn get_mut_brand(&mut self) -> &mut String
pub fn set_brand(&mut self, val: String) -> &mut Self
pub fn get_main_content(&self) -> NodeId
pub fn get_mut_main_content(&mut self) -> &mut NodeId
pub fn set_main_content(&mut self, val: NodeId) -> &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
pub fn get_mut_route_signal(&mut self) -> &mut Option<Signal<String>>
pub fn set_route_signal(&mut self, val: Option<Signal<String>>) -> &mut Self
pub fn get_mut_top_bar_actions(&mut self) -> &mut Option<NodeId>
pub fn set_top_bar_actions(&mut self, val: Option<NodeId>) -> &mut Self
pub fn get_mut_mobile_header_actions(&mut self) -> &mut Option<NodeId>
pub fn set_mobile_header_actions(&mut self, val: Option<NodeId>) -> &mut Self
pub fn get_swipe_routes(&self) -> &Vec<String>
pub fn get_mut_swipe_routes(&mut self) -> &mut Vec<String>
pub fn set_swipe_routes(&mut self, val: Vec<String>) -> &mut Self
pub fn get_mut_swipe_routes_enabled(&mut self) -> &mut Option<Signal<bool>>
pub fn set_swipe_routes_enabled( &mut self, val: Option<Signal<bool>>, ) -> &mut Self
pub fn get_show_fps(&self) -> bool
pub fn get_mut_show_fps(&mut self) -> &mut bool
pub fn set_show_fps(&mut self, val: bool) -> &mut Self
pub fn get_mut_show_fps_signal(&mut self) -> &mut Option<Signal<bool>>
pub fn set_show_fps_signal(&mut self, val: Option<Signal<bool>>) -> &mut Self
pub fn get_mut_theme(&mut self) -> &mut Option<UiThemeState>
pub fn set_theme(&mut self, val: Option<UiThemeState>) -> &mut Self
pub fn get_mut_page_padding(&mut self) -> &mut Option<Signal<Edges>>
pub fn set_page_padding(&mut self, val: Option<Signal<Edges>>) -> &mut Self
pub fn get_auto_hide_chrome_on_scroll(&self) -> bool
pub fn get_mut_auto_hide_chrome_on_scroll(&mut self) -> &mut bool
pub fn set_auto_hide_chrome_on_scroll(&mut self, val: bool) -> &mut Self
pub fn get_mut_auto_hide_chrome_signal(&mut self) -> &mut Option<Signal<bool>>
pub fn set_auto_hide_chrome_signal( &mut self, val: Option<Signal<bool>>, ) -> &mut Self
pub fn get_mut_brand_url(&mut self) -> &mut Option<String>
pub fn set_brand_url(&mut self, val: Option<String>) -> &mut Self
pub fn get_mut_on_brand_click(&mut self) -> &mut Option<Rc<dyn Fn(&UiEvent)>>
pub fn set_on_brand_click( &mut self, val: Option<Rc<dyn Fn(&UiEvent)>>, ) -> &mut Self
pub fn get_mut_brand_logo(&mut self) -> &mut Option<ImageBuffer>
pub fn set_brand_logo(&mut self, val: Option<ImageBuffer>) -> &mut Self
pub fn get_mut_drawer_open(&mut self) -> &mut Option<Signal<bool>>
pub fn set_drawer_open(&mut self, val: Option<Signal<bool>>) -> &mut Self
pub fn get_mut_layout_mode(&mut self) -> &mut Option<Signal<EuvShellLayoutMode>>
pub fn set_layout_mode( &mut self, val: Option<Signal<EuvShellLayoutMode>>, ) -> &mut Self
Source§impl EuvAppShell
impl EuvAppShell
Source§impl EuvAppShell
Implements impl #impl_generics #ident #ty_generics #where_clause.
impl EuvAppShell
Implements impl #impl_generics #ident #ty_generics #where_clause.
pub fn brand<__EuvStr>(self, value: __EuvStr) -> Self
pub fn main_content(self, value: NodeId) -> Self
pub fn tokens(self, value: ThemeTokens) -> Self
pub fn route_signal(self, value: Option<Signal<String>>) -> Self
Trait Implementations§
Source§impl Clone for EuvAppShell
impl Clone for EuvAppShell
Source§impl Component for EuvAppShell
Implements impl #impl_generics ::euv::Component for #self_ty #where_clause.
impl Component for EuvAppShell
Implements impl #impl_generics ::euv::Component for #self_ty #where_clause.
Source§impl ComponentProps for EuvAppShell
Implements impl #impl_generics ::euv::ComponentProps for #ident #ty_generics #where_clause.
impl ComponentProps for EuvAppShell
Implements impl #impl_generics ::euv::ComponentProps for #ident #ty_generics #where_clause.
Source§fn init_props() -> Self
fn init_props() -> Self
Implements the init_props operation on Self.
Source§impl Debug for EuvAppShell
impl Debug for EuvAppShell
Source§impl Lifecycle for EuvAppShell
Implements impl #impl_generics ::euv::Lifecycle for #self_ty #where_clause.
impl Lifecycle for EuvAppShell
Implements impl #impl_generics ::euv::Lifecycle for #self_ty #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