Skip to main content

ShowcasePage

Struct ShowcasePage 

Source
pub struct ShowcasePage { /* private fields */ }
Expand description

Typed Component + Lifecycle page wrapper enforcing PageRetention::Freeze for every showcase route.

Implementations§

Source§

impl ShowcasePage

Construction helper for ShowcasePage.

Source

pub fn new( route: &'static str, state: ShowcaseState, tokens: ThemeTokens, ) -> Self

Creates a typed ShowcasePage component bound to route with PageRetention::Freeze lifecycle semantics.

§Arguments
  • &'static str - Normalized route path.
  • ShowcaseState - Shared showcase reactive state.
  • ThemeTokens - Active design tokens.
§Returns
  • Self - Configured lazy page component.
Source§

impl ShowcasePage

Source

pub fn get_route(&self) -> &'static str

Source

pub fn get_state(&self) -> &ShowcaseState

Source

pub fn get_tokens(&self) -> ThemeTokens

Trait Implementations§

Source§

impl Clone for ShowcasePage

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 ShowcasePage

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

Source§

fn render(&self) -> NodeId

Renders this showcase route lazily inside the ambient framework-managed Context.

§Arguments
  • &Self - Page component reference.
§Returns
  • NodeId - Mounted page node handle.
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 Lifecycle for ShowcasePage

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

Source§

fn retention_policy(&self) -> PageRetention

Body of the retention_policy free function.

§Returns
  • ::euv::PageRetention - A ::euv::PageRetention value.
Source§

fn on_mount(&self, _node: NodeId)

Records lazy page creation and activates embedded game engines only when their page is displayed.

§Arguments
  • &Self - Page component reference.
  • NodeId - Mounted page root node handle.
Source§

fn on_activate(&self, _node: NodeId)

Ensures the active page’s embedded game engine runs exclusively while visible.

§Arguments
  • &Self - Page component reference.
  • NodeId - Mounted page root node handle.
Source§

fn on_freeze(&self, _node: NodeId)

Freezes the departed page’s reactive effects and pauses embedded 2D/3D engines at zero CPU cost.

§Arguments
  • &Self - Page component reference.
  • NodeId - Frozen page root node handle.
Source§

fn on_resume(&self, _node: NodeId)

Resumes a previously frozen page and atomically flushes coalesced cross-page signal updates.

§Arguments
  • &Self - Page component reference.
  • NodeId - Resumed page root node handle.
Source§

fn on_destroy(&self)

Records final disposal and ensures embedded game engines are paused.

§Arguments
  • &Self - Page component reference.
Source§

fn on_create(&self)

Invoked once immediately before the component’s initial render pass executes. 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_unmount(&self, _node: NodeId)

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

fn on_error(&self, _error: &str)

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

Auto Trait Implementations§

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.