pub struct ComputedStyle {
pub style: Style,
pub layout_style: LayoutStyle,
pub hash: u64,
pub is_animatable: bool,
pub computed_at: Instant,
}
Expand description
Computed style represents the final resolved style values
Fields§
§style: Style
Final computed style properties
layout_style: LayoutStyle
Layout style for layout engine integration
hash: u64
Hash of the computed result for caching
is_animatable: bool
Whether this style is animatable
computed_at: Instant
Timestamp when computed
Implementations§
Source§impl ComputedStyle
impl ComputedStyle
Sourcepub fn is_expired(&self, max_age_ms: u128) -> bool
pub fn is_expired(&self, max_age_ms: u128) -> bool
Check if this computed style is expired (for cache invalidation)
Sourcepub fn get_property(&self, name: &str) -> Option<String>
pub fn get_property(&self, name: &str) -> Option<String>
Get a specific property value from the computed style
Trait Implementations§
Source§impl Clone for ComputedStyle
impl Clone for ComputedStyle
Source§fn clone(&self) -> ComputedStyle
fn clone(&self) -> ComputedStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComputedStyle
impl Debug for ComputedStyle
Source§impl PartialEq for ComputedStyle
impl PartialEq for ComputedStyle
impl StructuralPartialEq for ComputedStyle
Auto Trait Implementations§
impl Freeze for ComputedStyle
impl RefUnwindSafe for ComputedStyle
impl Send for ComputedStyle
impl Sync for ComputedStyle
impl Unpin for ComputedStyle
impl UnwindSafe for ComputedStyle
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting