pub struct StyleFrame(/* private fields */);Expand description
Presented style tracks with Kit-native conversion and engine status getters.
Implementations§
Source§impl StyleFrame
impl StyleFrame
Sourcepub fn apply<E: Styled>(self, element: E) -> E
pub fn apply<E: Styled>(self, element: E) -> E
Applies Kit-supported tracks, panicking if a filter track is declared. Only introduced properties are replaced; layout properties reflow.
§Panics
Panics when element or backdrop blur is declared. Use try_apply for
portable declarations that may contain unsupported filter tracks.
Sourcepub fn try_apply<E: Styled>(self, element: E) -> Result<E, UnsupportedStyle>
pub fn try_apply<E: Styled>(self, element: E) -> Result<E, UnsupportedStyle>
Applies introduced colors, spacing, borders, corners and one outer shadow.
Returns UnsupportedStyle before applying anything if element/backdrop blur
is declared, including a zero radius. Kit has no public filter hook.
§Errors
Returns UnsupportedStyle for element/backdrop blur, before mutating the element.
Methods from Deref<Target = StyleFrame>§
Sourcepub fn target(self) -> StyleTarget
pub fn target(self) -> StyleTarget
Presented style destination, with clamped readers.
Sourcepub fn is_animating(self) -> bool
pub fn is_animating(self) -> bool
Whether another sample is needed.
Sourcepub fn just_completed(self) -> bool
pub fn just_completed(self) -> bool
Completion edge when every active scalar/color finishes.
Trait Implementations§
Source§impl Clone for StyleFrame
impl Clone for StyleFrame
impl Copy for StyleFrame
Source§impl Debug for StyleFrame
impl Debug for StyleFrame
Source§impl Deref for StyleFrame
impl Deref for StyleFrame
Source§impl From<StyleFrame> for StyleFrame
impl From<StyleFrame> for StyleFrame
Source§fn from(frame: StyleFrame) -> Self
fn from(frame: StyleFrame) -> Self
Auto Trait Implementations§
impl Freeze for StyleFrame
impl RefUnwindSafe for StyleFrame
impl Send for StyleFrame
impl Sync for StyleFrame
impl Unpin for StyleFrame
impl UnsafeUnpin for StyleFrame
impl UnwindSafe for StyleFrame
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more