Skip to main content

EuvAppShell

Struct EuvAppShell 

Source
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.

Source

pub fn route(self, route_signal: Signal<String>) -> Self

Binds an active route signal so compact mobile navigation drawers auto-close on route change.

§Arguments
  • Self - Source app shell.
  • Signal<String> - Active route path signal.
§Returns
  • Self - Updated app shell.
Source

pub fn top_bar_actions(self, actions: NodeId) -> Self

Attaches global header actions (e.g. Command Palette button, Theme Toggle) to the persistent top chrome bar.

§Arguments
  • Self - Source app shell.
  • NodeId - Mounted header actions row node.
§Returns
  • Self - Updated app shell.
Source

pub fn mobile_header_actions(self, actions: NodeId) -> Self

Attaches compact inline actions rendered beside the mobile header Menu button.

§Arguments
  • Self - Source app shell.
  • NodeId - Mounted compact actions node.
§Returns
  • Self - Updated app shell.

Attaches a footer widget (e.g. theme/DPI indicator) pinned below the sidebar navigation list.

§Arguments
  • Self - Source app shell.
  • NodeId - Mounted sidebar footer node.
§Returns
  • Self - Updated app shell.
Source

pub fn breadcrumb(self, breadcrumb: Signal<String>) -> Self

Binds a reactive breadcrumb string displayed in the persistent desktop/tablet top header bar.

§Arguments
  • Self - Source app shell.
  • Signal<String> - Reactive breadcrumb text signal.
§Returns
  • Self - Updated app shell.
Source

pub fn bottom_nav(self, bottom_bar: NodeId) -> Self

Attaches a mobile bottom navigation bar displayed exclusively on Mobile (< 960px) and hidden with zero bottom reservation on Desktop (>= 960px).

§Arguments
  • Self - Source app shell.
  • NodeId - Mounted bottom navigation bar node (typically EuvBottomNav).
§Returns
  • Self - Updated app shell.
Source

pub fn swipe_routes(self, routes: Vec<String>) -> Self

Configures ordered route paths navigated directly via horizontal left/right viewport swipes.

§Arguments
  • Self - Source app shell.
  • Vec<String> - Ordered route path list.
§Returns
  • Self - Updated app shell.
Source

pub fn show_fps(self, show: bool) -> Self

Enables or disables the live real-time FPS telemetry badge in the top navigation bar.

§Arguments
  • Self - Source app shell.
  • bool - Whether the live FPS badge is displayed.
§Returns
  • Self - Updated app shell.
Source

pub fn theme(self, theme: UiThemeState) -> Self

Connects a reactive UiThemeState so toggling Light/Dark or switching schemes updates shell chrome in-place without tearing down mounted pages.

§Arguments
  • Self - Source app shell.
  • UiThemeState - Reactive theme controller.
§Returns
  • Self - Updated app shell.
Source

pub fn page_padding(self, padding: Signal<Edges>) -> Self

Connects a shared reactive Signal<Edges> updated with the shell’s responsive page padding (including safe area and bottom-nav clearance).

§Arguments
  • Self - Source app shell.
  • Signal<Edges> - Shared page padding signal consumed by EuvRouterOutlet::with_page_padding.
§Returns
  • Self - Updated app shell.
Source

pub fn auto_hide_chrome_on_scroll(self, enabled: bool) -> Self

Enables or disables Twitter/X-style animated auto-hide and reveal of the top bar and bottom navigation bar during vertical scrolling.

§Arguments
  • Self - Source app shell.
  • bool - true to hide chrome when scrolling down and reveal on upward scroll.
§Returns
  • Self - Updated app shell.
Source

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.
Source

pub fn show_fps_signal(self, show: Signal<bool>) -> Self

Binds a reactive signal that toggles visibility of the live FPS telemetry pill in the top navigation bar.

§Arguments
  • Self - Source app shell.
  • Signal<bool> - Reactive FPS pill visibility signal.
§Returns
  • Self - Updated app shell.
Source

pub fn swipe_routes_enabled(self, enabled: Signal<bool>) -> Self

Binds a reactive signal that enables or disables horizontal swipe route navigation live.

§Arguments
  • Self - Source app shell.
  • Signal<bool> - Reactive horizontal swipe navigation toggle.
§Returns
  • Self - Updated app shell.
Source

pub fn brand_url(self, url: impl Into<String>) -> Self

Sets an explicit external URL opened via open_url when clicking the brand header (by default clicking the brand opens the left sidebar drawer).

§Arguments
  • Self - Source app shell.
  • impl Into<String> - Target URL string.
§Returns
  • Self - Updated app shell.
Source

pub fn on_brand_click<CallbackFn>(self, handler: CallbackFn) -> Self
where CallbackFn: Fn(&UiEvent) + 'static,

Registers an explicit click handler overriding the default brand click action (by default clicking the brand opens the mobile drawer on Mobile).

§Arguments
  • Self - Source app shell.
  • CallbackFn - Click callback invoked when the brand emblem or title is clicked.
§Returns
  • Self - Updated app shell.

Sets an explicit raster logo image rendered inside the topbar and drawer brand badge instead of a fallback text initial.

§Arguments
  • Self - Source app shell.
  • ImageBuffer - Raster brand logo image buffer (for example euv_brand_logo_image()).
§Returns
  • Self - Updated app shell.
Source

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.
Source

pub fn layout_mode(self, mode: Signal<EuvShellLayoutMode>) -> Self

Binds a reactive output signal synchronized with the shell’s active EuvShellLayoutMode (Desktop >= 960px, Mobile < 960px).

§Arguments
  • Self - Source app shell.
  • Signal<EuvShellLayoutMode> - Reactive layout mode signal.
§Returns
  • Self - Updated app shell.
Source§

impl EuvAppShell

Source

pub fn get_brand(&self) -> &String

Source

pub fn get_mut_brand(&mut self) -> &mut String

Source

pub fn set_brand(&mut self, val: String) -> &mut Self

Source

pub fn get_sidebar(&self) -> NodeId

Source

pub fn get_mut_sidebar(&mut self) -> &mut NodeId

Source

pub fn set_sidebar(&mut self, val: NodeId) -> &mut Self

Source

pub fn get_main_content(&self) -> NodeId

Source

pub fn get_mut_main_content(&mut self) -> &mut NodeId

Source

pub fn set_main_content(&mut self, val: NodeId) -> &mut Self

Source

pub fn get_tokens(&self) -> ThemeTokens

Source

pub fn get_mut_tokens(&mut self) -> &mut ThemeTokens

Source

pub fn set_tokens(&mut self, val: ThemeTokens) -> &mut Self

Source

pub fn get_mut_route_signal(&mut self) -> &mut Option<Signal<String>>

Source

pub fn set_route_signal(&mut self, val: Option<Signal<String>>) -> &mut Self

Source

pub fn get_mut_top_bar_actions(&mut self) -> &mut Option<NodeId>

Source

pub fn set_top_bar_actions(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_mut_mobile_header_actions(&mut self) -> &mut Option<NodeId>

Source

pub fn set_mobile_header_actions(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_mut_breadcrumb(&mut self) -> &mut Option<Signal<String>>

Source

pub fn set_breadcrumb(&mut self, val: Option<Signal<String>>) -> &mut Self

Source

pub fn get_mut_bottom_nav(&mut self) -> &mut Option<NodeId>

Source

pub fn set_bottom_nav(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_swipe_routes(&self) -> &Vec<String>

Source

pub fn get_mut_swipe_routes(&mut self) -> &mut Vec<String>

Source

pub fn set_swipe_routes(&mut self, val: Vec<String>) -> &mut Self

Source

pub fn get_mut_swipe_routes_enabled(&mut self) -> &mut Option<Signal<bool>>

Source

pub fn set_swipe_routes_enabled( &mut self, val: Option<Signal<bool>>, ) -> &mut Self

Source

pub fn get_show_fps(&self) -> bool

Source

pub fn get_mut_show_fps(&mut self) -> &mut bool

Source

pub fn set_show_fps(&mut self, val: bool) -> &mut Self

Source

pub fn get_mut_show_fps_signal(&mut self) -> &mut Option<Signal<bool>>

Source

pub fn set_show_fps_signal(&mut self, val: Option<Signal<bool>>) -> &mut Self

Source

pub fn get_mut_theme(&mut self) -> &mut Option<UiThemeState>

Source

pub fn set_theme(&mut self, val: Option<UiThemeState>) -> &mut Self

Source

pub fn get_mut_page_padding(&mut self) -> &mut Option<Signal<Edges>>

Source

pub fn set_page_padding(&mut self, val: Option<Signal<Edges>>) -> &mut Self

Source

pub fn get_auto_hide_chrome_on_scroll(&self) -> bool

Source

pub fn get_mut_auto_hide_chrome_on_scroll(&mut self) -> &mut bool

Source

pub fn set_auto_hide_chrome_on_scroll(&mut self, val: bool) -> &mut Self

Source

pub fn get_mut_auto_hide_chrome_signal(&mut self) -> &mut Option<Signal<bool>>

Source

pub fn set_auto_hide_chrome_signal( &mut self, val: Option<Signal<bool>>, ) -> &mut Self

Source

pub fn get_mut_brand_url(&mut self) -> &mut Option<String>

Source

pub fn set_brand_url(&mut self, val: Option<String>) -> &mut Self

Source

pub fn get_mut_on_brand_click(&mut self) -> &mut Option<Rc<dyn Fn(&UiEvent)>>

Source

pub fn set_on_brand_click( &mut self, val: Option<Rc<dyn Fn(&UiEvent)>>, ) -> &mut Self

Source

pub fn get_mut_drawer_open(&mut self) -> &mut Option<Signal<bool>>

Source

pub fn set_drawer_open(&mut self, val: Option<Signal<bool>>) -> &mut Self

Source

pub fn get_mut_layout_mode(&mut self) -> &mut Option<Signal<EuvShellLayoutMode>>

Source

pub fn set_layout_mode( &mut self, val: Option<Signal<EuvShellLayoutMode>>, ) -> &mut Self

Source§

impl EuvAppShell

Source

pub fn new( brand: String, sidebar: NodeId, main_content: NodeId, tokens: ThemeTokens, ) -> Self

Source§

impl EuvAppShell

Implements impl #impl_generics #struct_ident #ty_generics #where_clause.

Source

pub fn brand<StringValue>(self, value: StringValue) -> Self
where StringValue: Into<String>,

Source

pub fn sidebar(self, value: NodeId) -> Self

Source

pub fn main_content(self, value: NodeId) -> Self

Source

pub fn tokens(self, value: ThemeTokens) -> Self

Source

pub fn route_signal(self, value: Option<Signal<String>>) -> Self

Trait Implementations§

Source§

impl Clone for EuvAppShell

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Component for EuvAppShell

Implements impl #impl_generics ::euv::Component for #self_type #where_clause.

Source§

fn render(&self) -> NodeId

Renders EuvAppShell into the ambient framework-managed Context.

§Arguments
  • &Self - Component descriptor reference.
§Returns
  • NodeId - Mounted root scene node handle.
Source§

const NEEDS_LIFECYCLE: bool = false

Compile-time opt-in flag indicating whether this component overrides lifecycle hooks or retention policy and requires Rc<Self> observer registration on mount.
Source§

fn mount(self) -> NodeId

Mounts this component through the complete framework lifecycle (on_create -> render -> on_mount) and registers its Lifecycle observer on the mounted node. Read more
Source§

impl ComponentProps for EuvAppShell

Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.

Source§

fn init_props() -> Self

Implements the init_props operation on Self.

Source§

impl Debug for EuvAppShell

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the struct fields as a debug struct, skipping excluded fields.

§Arguments
  • &mut ::std::fmt::Formatter<'_> - The formatter to write the representation into.
§Returns
  • ::std::fmt::Result - Success or failure of the formatting operation.
Source§

impl Lifecycle for EuvAppShell

Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.

Source§

fn retention_policy(&self) -> PageRetention

Declares how the framework retains this page or component when navigating away. Read more
Source§

fn on_create(&self)

Invoked once immediately before the component’s initial render pass executes. Read more
Source§

fn on_mount(&self, _node: NodeId)

Invoked once immediately after render attaches the root NodeId to the scene tree. Read more
Source§

fn on_update(&self, _node: NodeId)

Invoked when external props, theme tokens, or cross-page state trigger a component update. Read more
Source§

fn on_activate(&self, _node: NodeId)

Invoked whenever this component or routed page becomes the active visible view. Read more
Source§

fn on_freeze(&self, _node: NodeId)

Invoked when the router or parent suspends this subtree under PageRetention::Freeze. Read more
Source§

fn on_resume(&self, _node: NodeId)

Invoked when a previously frozen subtree resumes and coalesced cross-page updates flush. Read more
Source§

fn on_unmount(&self, _node: NodeId)

Invoked immediately before the subtree is detached and its reactive scope is disposed. Read more
Source§

fn on_destroy(&self)

Invoked after the component’s reactive scope and child nodes have been fully destroyed. Read more
Source§

fn on_error(&self, _error: &str)

Invoked when an error boundary or runtime fault surfaces inside this component subtree. Read more
Source§

fn on_appear(&self)

Invoked when this component, routed page, or application window becomes visually presented. Read more
Source§

fn on_disappear(&self)

Invoked when this component, routed page, or application window ceases to be visually presented. Read more
Source§

fn on_foreground(&self)

Invoked when the application returns to active foreground execution. Read more
Source§

fn on_background(&self)

Invoked when the application enters suspended/hidden background execution. Read more
Source§

fn on_inactive(&self)

Invoked when the application enters inactive status (occluded, app switcher, or deactivated). Read more
Source§

fn on_terminate(&self)

Invoked when the application is terminating gracefully. Read more
Source§

fn on_system_event(&self, _event: &SystemEvent)

Invoked for every normalized cross-platform SystemEvent delivered while this component is active. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for EuvAppShell

§

impl !Send for EuvAppShell

§

impl !Sync for EuvAppShell

§

impl !UnwindSafe for EuvAppShell

§

impl Forget for EuvAppShell

§

impl Freeze for EuvAppShell

§

impl Move for EuvAppShell

§

impl Unpin for EuvAppShell
where *const u8 is !null: Unpin, Rc<dyn Fn(&UiEvent)>: Unpin, Arc<[u8]>: Unpin,

§

impl UnsafeUnpin for EuvAppShell

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.