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§

const NEEDS_LIFECYCLE: bool = true

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 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
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 ShowcasePage

§

impl !Send for ShowcasePage

§

impl !Sync for ShowcasePage

§

impl !UnwindSafe for ShowcasePage

§

impl Forget for ShowcasePage

§

impl Freeze for ShowcasePage
where &'static str: Freeze, PhantomData<fn() -> String>: Freeze, PhantomData<fn() -> DesignScheme>: Freeze, PhantomData<fn() -> ThemeMode>: Freeze, PhantomData<fn() -> ThemeTokens>: Freeze, *const RcInner<RefCell<FrameClock>> is !null: Freeze, PhantomData<RcInner<RefCell<FrameClock>>>: Freeze, *const RcInner<RefCell<InputState>> is !null: Freeze, PhantomData<RcInner<RefCell<InputState>>>: Freeze, *const RcInner<RefCell<dyn GameScene>> is !null: Freeze, PhantomData<RcInner<RefCell<dyn GameScene>>>: Freeze, *const RcInner<RefCell<Vec<(SceneHandle, NodeId)>>> is !null: Freeze, PhantomData<RcInner<RefCell<Vec<(SceneHandle, NodeId)>>>>: Freeze, *const RcInner<RefCell<Option<GpuCompositeDescriptor>>> is !null: Freeze, PhantomData<RcInner<RefCell<Option<GpuCompositeDescriptor>>>>: Freeze, *const RcInner<Cell<bool>> is !null: Freeze, PhantomData<RcInner<Cell<bool>>>: Freeze, *const RcInner<RefCell<Option<GyroLiquidGameScene>>> is !null: Freeze, PhantomData<RcInner<RefCell<Option<GyroLiquidGameScene>>>>: Freeze, *const RcInner<RefCell<DynamicHubState>> is !null: Freeze, PhantomData<RcInner<RefCell<DynamicHubState>>>: Freeze, *const RcInner<RefCell<HashMap<String, RegistryWasmRecord>>> is !null: Freeze, PhantomData<RcInner<RefCell<HashMap<String, RegistryWasmRecord>>>>: Freeze, *const RcInner<RefCell<bool>> is !null: Freeze, PhantomData<RcInner<RefCell<bool>>>: Freeze, *const RcInner<RefCell<WasmDynamicManagerState>> is !null: Freeze, PhantomData<RcInner<RefCell<WasmDynamicManagerState>>>: Freeze, PhantomData<fn() -> bool>: Freeze, PhantomData<fn() -> u64>: Freeze, PhantomData<fn() -> usize>: Freeze, PhantomData<fn() -> Vec<EuvRouteLifecycleEntry>>: Freeze, *const RcInner<RefCell<EuvRouterInner>> is !null: Freeze, PhantomData<RcInner<RefCell<EuvRouterInner>>>: Freeze, *const RcInner<RefCell<RetainedLayerRegistry>> is !null: Freeze, PhantomData<RcInner<RefCell<RetainedLayerRegistry>>>: Freeze, PhantomData<fn() -> u32>: Freeze, PhantomData<fn() -> Vec<String>>: Freeze, *const RcInner<Cell<usize>> is !null: Freeze, PhantomData<RcInner<Cell<usize>>>: Freeze, *const RcInner<Cell<Option<ReactiveSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<ReactiveSignals>>>>: Freeze, *const RcInner<Cell<Option<RenderWindowSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<RenderWindowSignals>>>>: Freeze, *const RcInner<Cell<Option<FormsSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<FormsSignals>>>>: Freeze, *const RcInner<Cell<Option<OverlaysSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<OverlaysSignals>>>>: Freeze, *const RcInner<Cell<Option<DataSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<DataSignals>>>>: Freeze, *const RcInner<Cell<Option<Engine3dSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<Engine3dSignals>>>>: Freeze, *const RcInner<Cell<Option<DynamicSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<DynamicSignals>>>>: Freeze, *const RcInner<Cell<Option<LabSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<LabSignals>>>>: Freeze, *const RcInner<Cell<Option<MediaSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<MediaSignals>>>>: Freeze, *const RcInner<Cell<Option<MarkdownSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<MarkdownSignals>>>>: Freeze, *const RcInner<Cell<Option<StressSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<StressSignals>>>>: Freeze, *const RcInner<Cell<Option<ChartsSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<ChartsSignals>>>>: Freeze, *const RcInner<Cell<Option<WaterSignals>>> is !null: Freeze, PhantomData<RcInner<Cell<Option<WaterSignals>>>>: Freeze,

§

impl Move for ShowcasePage

§

impl Unpin for ShowcasePage

§

impl UnsafeUnpin for ShowcasePage
where &'static str: UnsafeUnpin, PhantomData<fn() -> String>: UnsafeUnpin, PhantomData<fn() -> DesignScheme>: UnsafeUnpin, PhantomData<fn() -> ThemeMode>: UnsafeUnpin, PhantomData<fn() -> ThemeTokens>: UnsafeUnpin, *const RcInner<RefCell<FrameClock>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<FrameClock>>>: UnsafeUnpin, *const RcInner<RefCell<InputState>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<InputState>>>: UnsafeUnpin, *const RcInner<RefCell<dyn GameScene>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<dyn GameScene>>>: UnsafeUnpin, *const RcInner<RefCell<Vec<(SceneHandle, NodeId)>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Vec<(SceneHandle, NodeId)>>>>: UnsafeUnpin, *const RcInner<RefCell<Option<GpuCompositeDescriptor>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Option<GpuCompositeDescriptor>>>>: UnsafeUnpin, *const RcInner<Cell<bool>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<bool>>>: UnsafeUnpin, *const RcInner<RefCell<Option<GyroLiquidGameScene>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Option<GyroLiquidGameScene>>>>: UnsafeUnpin, *const RcInner<RefCell<DynamicHubState>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<DynamicHubState>>>: UnsafeUnpin, *const RcInner<RefCell<HashMap<String, RegistryWasmRecord>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<HashMap<String, RegistryWasmRecord>>>>: UnsafeUnpin, *const RcInner<RefCell<bool>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<bool>>>: UnsafeUnpin, *const RcInner<RefCell<WasmDynamicManagerState>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<WasmDynamicManagerState>>>: UnsafeUnpin, PhantomData<fn() -> bool>: UnsafeUnpin, PhantomData<fn() -> u64>: UnsafeUnpin, PhantomData<fn() -> usize>: UnsafeUnpin, PhantomData<fn() -> Vec<EuvRouteLifecycleEntry>>: UnsafeUnpin, *const RcInner<RefCell<EuvRouterInner>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<EuvRouterInner>>>: UnsafeUnpin, *const RcInner<RefCell<RetainedLayerRegistry>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<RetainedLayerRegistry>>>: UnsafeUnpin, PhantomData<fn() -> u32>: UnsafeUnpin, PhantomData<fn() -> Vec<String>>: UnsafeUnpin, *const RcInner<Cell<usize>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<usize>>>: UnsafeUnpin, *const RcInner<Cell<Option<ReactiveSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<ReactiveSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<RenderWindowSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<RenderWindowSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<FormsSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<FormsSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<OverlaysSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<OverlaysSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<DataSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<DataSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<Engine3dSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<Engine3dSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<DynamicSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<DynamicSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<LabSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<LabSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<MediaSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<MediaSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<MarkdownSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<MarkdownSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<StressSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<StressSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<ChartsSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<ChartsSignals>>>>: UnsafeUnpin, *const RcInner<Cell<Option<WaterSignals>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<WaterSignals>>>>: UnsafeUnpin,

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.