pub struct InheritedBox {
pub image_rendering: T,
pub writing_mode: T,
pub visibility: T,
pub direction: T,
pub text_orientation: T,
pub dominant_baseline: T,
}Expand description
The InheritedBox style struct.
Fields§
§image_rendering: TThe image-rendering computed value.
writing_mode: TThe writing-mode computed value.
visibility: TThe visibility computed value.
direction: TThe direction computed value.
text_orientation: TThe text-orientation computed value.
dominant_baseline: TThe dominant-baseline computed value.
Implementations§
Source§impl InheritedBox
impl InheritedBox
Sourcepub fn set_image_rendering(&mut self, v: T)
pub fn set_image_rendering(&mut self, v: T)
Set image-rendering.
Sourcepub fn copy_image_rendering_from(&mut self, other: &Self)
pub fn copy_image_rendering_from(&mut self, other: &Self)
Set image-rendering from other struct.
Sourcepub fn reset_image_rendering(&mut self, other: &Self)
pub fn reset_image_rendering(&mut self, other: &Self)
Reset image-rendering from the initial struct.
Sourcepub fn get_image_rendering(&self) -> &T
pub fn get_image_rendering(&self) -> &T
Get a reference to the computed value for image-rendering.
Sourcepub fn slow_clone_image_rendering(&self) -> T
pub fn slow_clone_image_rendering(&self) -> T
Clone the computed value for image-rendering. Prefer
get_image_rendering where a reference is enough.
Sourcepub fn image_rendering_equals(&self, other: &Self) -> bool
pub fn image_rendering_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for image-rendering.
Sourcepub fn set_writing_mode(&mut self, v: T)
pub fn set_writing_mode(&mut self, v: T)
Set writing-mode.
Sourcepub fn copy_writing_mode_from(&mut self, other: &Self)
pub fn copy_writing_mode_from(&mut self, other: &Self)
Set writing-mode from other struct.
Sourcepub fn reset_writing_mode(&mut self, other: &Self)
pub fn reset_writing_mode(&mut self, other: &Self)
Reset writing-mode from the initial struct.
Sourcepub fn get_writing_mode(&self) -> &T
pub fn get_writing_mode(&self) -> &T
Get a reference to the computed value for writing-mode.
Sourcepub fn slow_clone_writing_mode(&self) -> T
pub fn slow_clone_writing_mode(&self) -> T
Clone the computed value for writing-mode. Prefer
get_writing_mode where a reference is enough.
Sourcepub fn writing_mode_equals(&self, other: &Self) -> bool
pub fn writing_mode_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for writing-mode.
Sourcepub fn set_visibility(&mut self, v: T)
pub fn set_visibility(&mut self, v: T)
Set visibility.
Sourcepub fn copy_visibility_from(&mut self, other: &Self)
pub fn copy_visibility_from(&mut self, other: &Self)
Set visibility from other struct.
Sourcepub fn reset_visibility(&mut self, other: &Self)
pub fn reset_visibility(&mut self, other: &Self)
Reset visibility from the initial struct.
Sourcepub fn get_visibility(&self) -> &T
pub fn get_visibility(&self) -> &T
Get a reference to the computed value for visibility.
Sourcepub fn slow_clone_visibility(&self) -> T
pub fn slow_clone_visibility(&self) -> T
Clone the computed value for visibility. Prefer
get_visibility where a reference is enough.
Sourcepub fn visibility_equals(&self, other: &Self) -> bool
pub fn visibility_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for visibility.
Sourcepub fn set_direction(&mut self, v: T)
pub fn set_direction(&mut self, v: T)
Set direction.
Sourcepub fn copy_direction_from(&mut self, other: &Self)
pub fn copy_direction_from(&mut self, other: &Self)
Set direction from other struct.
Sourcepub fn reset_direction(&mut self, other: &Self)
pub fn reset_direction(&mut self, other: &Self)
Reset direction from the initial struct.
Sourcepub fn get_direction(&self) -> &T
pub fn get_direction(&self) -> &T
Get a reference to the computed value for direction.
Sourcepub fn slow_clone_direction(&self) -> T
pub fn slow_clone_direction(&self) -> T
Clone the computed value for direction. Prefer
get_direction where a reference is enough.
Sourcepub fn direction_equals(&self, other: &Self) -> bool
pub fn direction_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for direction.
Sourcepub fn set_text_orientation(&mut self, v: T)
pub fn set_text_orientation(&mut self, v: T)
Set text-orientation.
Sourcepub fn copy_text_orientation_from(&mut self, other: &Self)
pub fn copy_text_orientation_from(&mut self, other: &Self)
Set text-orientation from other struct.
Sourcepub fn reset_text_orientation(&mut self, other: &Self)
pub fn reset_text_orientation(&mut self, other: &Self)
Reset text-orientation from the initial struct.
Sourcepub fn get_text_orientation(&self) -> &T
pub fn get_text_orientation(&self) -> &T
Get a reference to the computed value for text-orientation.
Sourcepub fn slow_clone_text_orientation(&self) -> T
pub fn slow_clone_text_orientation(&self) -> T
Clone the computed value for text-orientation. Prefer
get_text_orientation where a reference is enough.
Sourcepub fn text_orientation_equals(&self, other: &Self) -> bool
pub fn text_orientation_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-orientation.
Sourcepub fn set_dominant_baseline(&mut self, v: T)
pub fn set_dominant_baseline(&mut self, v: T)
Set dominant-baseline.
Sourcepub fn copy_dominant_baseline_from(&mut self, other: &Self)
pub fn copy_dominant_baseline_from(&mut self, other: &Self)
Set dominant-baseline from other struct.
Sourcepub fn reset_dominant_baseline(&mut self, other: &Self)
pub fn reset_dominant_baseline(&mut self, other: &Self)
Reset dominant-baseline from the initial struct.
Sourcepub fn get_dominant_baseline(&self) -> &T
pub fn get_dominant_baseline(&self) -> &T
Get a reference to the computed value for dominant-baseline.
Sourcepub fn slow_clone_dominant_baseline(&self) -> T
pub fn slow_clone_dominant_baseline(&self) -> T
Clone the computed value for dominant-baseline. Prefer
get_dominant_baseline where a reference is enough.
Sourcepub fn dominant_baseline_equals(&self, other: &Self) -> bool
pub fn dominant_baseline_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for dominant-baseline.
Trait Implementations§
Source§impl Clone for InheritedBox
impl Clone for InheritedBox
Source§fn clone(&self) -> InheritedBox
fn clone(&self) -> InheritedBox
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InheritedBox
impl Debug for InheritedBox
Source§impl MallocSizeOf for InheritedBox
impl MallocSizeOf for InheritedBox
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl PartialEq for InheritedBox
impl PartialEq for InheritedBox
Source§fn eq(&self, other: &InheritedBox) -> bool
fn eq(&self, other: &InheritedBox) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InheritedBox
Auto Trait Implementations§
impl Freeze for InheritedBox
impl RefUnwindSafe for InheritedBox
impl Send for InheritedBox
impl Sync for InheritedBox
impl Unpin for InheritedBox
impl UnsafeUnpin for InheritedBox
impl UnwindSafe for InheritedBox
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
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>
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>
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