pub struct AnimatedPaxLogo {
pub background_mode: Property<LogoBackgroundMode>,
pub fill: Property<Paint>,
pub letter_fill: Property<Paint>,
pub progress: Property<f64>,
pub click_to_replay: Property<bool>,
}Expand description
The animated Pax logo, with a normalized playhead and optional click replay.
Bind progress to coordinate a slider or a parent-owned timeline. The
component does not start playback on mount or paint its surrounding surface.
Scale an enclosing Group from the original 920.72 × 463.95 coordinate system.
Fields§
§background_mode: Property<LogoBackgroundMode>Selects the contrasting signboard palette. Defaults to Light to preserve
existing consumers; Dark exchanges fill and letter_fill throughout.
fill: Property<Paint>Signboard/post fill in Light mode, lettering/counters in Dark mode.
letter_fill: Property<Paint>Lettering/backing fill in Light mode, signboard/post in Dark mode.
progress: Property<f64>Normalized animation position from the initial pose (0.0) to the
finished logo (1.0). Bind this property for coordinated playback. Clicking
restarts it unless click_to_replay is false.
click_to_replay: Property<bool>Restart the 1440ms animation when clicked or tapped. Defaults to true. Disable for externally driven playback or a noninteractive still logo.
Implementations§
Source§impl AnimatedPaxLogo
impl AnimatedPaxLogo
pub fn replay(&mut self, _: &NodeContext, _: Event<Click>)
pub fn hover(&mut self, ctx: &NodeContext, _: Event<MouseOver>)
pub fn leave(&mut self, ctx: &NodeContext, _: Event<MouseOut>)
Trait Implementations§
Source§impl Clone for AnimatedPaxLogo
impl Clone for AnimatedPaxLogo
Source§fn clone(&self) -> AnimatedPaxLogo
fn clone(&self) -> AnimatedPaxLogo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CoercionRules for AnimatedPaxLogo
impl CoercionRules for AnimatedPaxLogo
Source§fn is_identity_roundtrip() -> bool
fn is_identity_roundtrip() -> bool
Self preserves the semantics of converting that clone
through ToPaxValue and back with try_coerce. Read moreSource§fn try_coerce(value: PaxValue) -> Result<AnimatedPaxLogo, String>
fn try_coerce(value: PaxValue) -> Result<AnimatedPaxLogo, String>
value into Self.Source§fn allows_singleton_stack() -> bool
fn allows_singleton_stack() -> bool
Source§impl Debug for AnimatedPaxLogo
impl Debug for AnimatedPaxLogo
Source§impl Default for AnimatedPaxLogo
impl Default for AnimatedPaxLogo
Source§fn default() -> AnimatedPaxLogo
fn default() -> AnimatedPaxLogo
Source§impl<'de> Deserialize<'de> for AnimatedPaxLogo
impl<'de> Deserialize<'de> for AnimatedPaxLogo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnimatedPaxLogo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnimatedPaxLogo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl HelperFunctions for AnimatedPaxLogo
impl HelperFunctions for AnimatedPaxLogo
Source§fn register_all_functions()
fn register_all_functions()
impl ImplToFromPaxAny for AnimatedPaxLogo
Source§impl Interpolatable for AnimatedPaxLogo
impl Interpolatable for AnimatedPaxLogo
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl Serialize for AnimatedPaxLogo
impl Serialize for AnimatedPaxLogo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToPaxValue for AnimatedPaxLogo
impl ToPaxValue for AnimatedPaxLogo
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
PaxValue.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Self::to_pax_value reads published value snapshots.Auto Trait Implementations§
impl Freeze for AnimatedPaxLogo
impl RefUnwindSafe for AnimatedPaxLogo
impl Send for AnimatedPaxLogo
impl Sync for AnimatedPaxLogo
impl Unpin for AnimatedPaxLogo
impl UnsafeUnpin for AnimatedPaxLogo
impl UnwindSafe for AnimatedPaxLogo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
PaxAny.