Struct accessibility_tree::style::properties::ComputedValues
source · 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: Display
Implementations§
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 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 moreAuto Trait Implementations§
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