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.
impl ShowcasePage
Construction helper for ShowcasePage.
Sourcepub fn new(
route: &'static str,
state: ShowcaseState,
tokens: ThemeTokens,
) -> Self
pub fn new( route: &'static str, state: ShowcaseState, tokens: ThemeTokens, ) -> Self
Source§impl ShowcasePage
impl ShowcasePage
pub fn get_route(&self) -> &'static str
pub fn get_state(&self) -> &ShowcaseState
pub fn get_tokens(&self) -> ThemeTokens
Trait Implementations§
Source§impl Clone for ShowcasePage
impl Clone for ShowcasePage
Source§impl Component for ShowcasePage
Implements impl #impl_generics ::euv::Component for #self_ty #where_clause.
impl Component for ShowcasePage
Implements impl #impl_generics ::euv::Component for #self_ty #where_clause.
Source§impl Lifecycle for ShowcasePage
Implements impl #impl_generics ::euv::Lifecycle for #self_ty #where_clause.
impl Lifecycle for ShowcasePage
Implements impl #impl_generics ::euv::Lifecycle for #self_ty #where_clause.
Source§fn retention_policy(&self) -> PageRetention
fn retention_policy(&self) -> PageRetention
Body of the retention_policy free function.
§Returns
::euv::PageRetention- A::euv::PageRetentionvalue.
Source§fn on_mount(&self, _node: NodeId)
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)
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)
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)
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)
fn on_destroy(&self)
Records final disposal and ensures embedded game engines are paused.
§Arguments
&Self- Page component reference.
Source§fn on_create(&self)
fn on_create(&self)
render pass executes. Read more