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
impl Clone for ComputedStyle
Source§fn clone(&self) -> ComputedStyle
fn clone(&self) -> ComputedStyle
Returns a duplicate of the value. Read more
1.0.0§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
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 Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)