⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

ComputedStyle

Struct ComputedStyle 

Source
pub struct ComputedStyle {
Show 44 fields pub display: Display, pub position: Position, pub width: Option<FixedPoint>, pub height: Option<FixedPoint>, pub min_width: FixedPoint, pub min_height: FixedPoint, pub max_width: Option<FixedPoint>, pub max_height: Option<FixedPoint>, pub margin_top: FixedPoint, pub margin_right: FixedPoint, pub margin_bottom: FixedPoint, pub margin_left: FixedPoint, pub padding_top: FixedPoint, pub padding_right: FixedPoint, pub padding_bottom: FixedPoint, pub padding_left: FixedPoint, pub color: u32, pub background_color: u32, pub font_size: FixedPoint, pub font_weight: u16, pub text_align: TextAlign, pub line_height: FixedPoint, pub border_top_width: FixedPoint, pub border_right_width: FixedPoint, pub border_bottom_width: FixedPoint, pub border_left_width: FixedPoint, pub border_top_color: u32, pub border_right_color: u32, pub border_bottom_color: u32, pub border_left_color: u32, pub border_top_style: BorderStyle, pub border_right_style: BorderStyle, pub border_bottom_style: BorderStyle, pub border_left_style: BorderStyle, pub overflow: Overflow, pub visibility: Visibility, pub opacity: u8, pub float: Float, pub clear: Clear, pub z_index: i32, pub text_decoration_underline: bool, pub text_decoration_line_through: bool, pub white_space: WhiteSpace, pub list_style_type: Option<String>,
}
Expand description

Computed style for a DOM node (all values resolved to final values)

Fields§

§display: Display§position: Position§width: Option<FixedPoint>§height: Option<FixedPoint>§min_width: FixedPoint§min_height: FixedPoint§max_width: Option<FixedPoint>§max_height: Option<FixedPoint>§margin_top: FixedPoint§margin_right: FixedPoint§margin_bottom: FixedPoint§margin_left: FixedPoint§padding_top: FixedPoint§padding_right: FixedPoint§padding_bottom: FixedPoint§padding_left: FixedPoint§color: u32§background_color: u32§font_size: FixedPoint§font_weight: u16§text_align: TextAlign§line_height: FixedPoint§border_top_width: FixedPoint§border_right_width: FixedPoint§border_bottom_width: FixedPoint§border_left_width: FixedPoint§border_top_color: u32§border_right_color: u32§border_bottom_color: u32§border_left_color: u32§border_top_style: BorderStyle§border_right_style: BorderStyle§border_bottom_style: BorderStyle§border_left_style: BorderStyle§overflow: Overflow§visibility: Visibility§opacity: u8§float: Float§clear: Clear§z_index: i32§text_decoration_underline: bool§text_decoration_line_through: bool§white_space: WhiteSpace§list_style_type: Option<String>

Trait Implementations§

Source§

impl Clone for ComputedStyle

Source§

fn clone(&self) -> ComputedStyle

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComputedStyle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ComputedStyle

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.