pub struct ComputedValues {
pub font: Arc<font>,
pub color: Arc<color>,
pub box_: Arc<box_>,
pub margin: Arc<margin>,
pub padding: Arc<padding>,
pub border: Arc<border>,
pub background: Arc<background>,
pub specified_display: Display,
}Fields§
§font: Arc<font>§color: Arc<color>§box_: Arc<box_>§margin: Arc<margin>§padding: Arc<padding>§border: Arc<border>§background: Arc<background>§specified_display: DisplayImplementations§
Source§impl ComputedValues
impl ComputedValues
pub fn anonymous_inheriting_from(parent_style: Option<&Self>) -> Arc<Self>
pub fn post_cascade_fixups(&mut self)
pub fn writing_mode(&self) -> (WritingMode, Direction)
pub fn box_offsets(&self) -> Sides<LengthOrPercentageOrAuto>
pub fn box_size(&self) -> Vec2<LengthOrPercentageOrAuto>
pub fn padding(&self) -> Sides<LengthOrPercentage>
pub fn border_width(&self) -> Sides<LengthOrPercentage>
pub fn margin(&self) -> Sides<LengthOrPercentageOrAuto>
pub fn to_rgba(&self, color: Color) -> RGBA
Trait Implementations§
Source§impl Clone for ComputedValues
impl Clone for ComputedValues
Source§fn clone(&self) -> ComputedValues
fn clone(&self) -> ComputedValues
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ComputedValues
impl RefUnwindSafe for ComputedValues
impl Send for ComputedValues
impl Sync for ComputedValues
impl Unpin for ComputedValues
impl UnwindSafe for ComputedValues
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> 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>
Converts
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>
Converts
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