Struct style::properties::generated::style_structs::InheritedText
source · pub struct InheritedText {Show 15 fields
pub color: T,
pub text_transform: T,
pub text_indent: T,
pub overflow_wrap: T,
pub word_break: T,
pub text_justify: T,
pub text_align_last: T,
pub text_align: T,
pub letter_spacing: T,
pub word_spacing: T,
pub white_space_collapse: T,
pub text_shadow: T,
pub text_rendering: T,
pub text_wrap_mode: T,
pub text_decorations_in_effect: TextDecorationsInEffect,
}
Expand description
The InheritedText style struct.
Fields§
§color: T
The color computed value.
text_transform: T
The text-transform computed value.
text_indent: T
The text-indent computed value.
overflow_wrap: T
The overflow-wrap computed value.
word_break: T
The word-break computed value.
text_justify: T
The text-justify computed value.
text_align_last: T
The text-align-last computed value.
text_align: T
The text-align computed value.
letter_spacing: T
The letter-spacing computed value.
word_spacing: T
The word-spacing computed value.
white_space_collapse: T
The white-space-collapse computed value.
text_shadow: T
The text-shadow computed value.
text_rendering: T
The text-rendering computed value.
text_wrap_mode: T
The text-wrap-mode computed value.
text_decorations_in_effect: TextDecorationsInEffect
The “used” text-decorations that apply to this box.
FIXME(emilio): This is technically a box-tree concept, and would be nice to move away from style.
Implementations§
source§impl InheritedText
impl InheritedText
sourcepub fn copy_color_from(&mut self, other: &Self)
pub fn copy_color_from(&mut self, other: &Self)
Set color from other struct.
sourcepub fn reset_color(&mut self, other: &Self)
pub fn reset_color(&mut self, other: &Self)
Reset color from the initial struct.
sourcepub fn clone_color(&self) -> T
pub fn clone_color(&self) -> T
Get the computed value for color.
sourcepub fn set_text_transform(&mut self, v: T)
pub fn set_text_transform(&mut self, v: T)
Set text-transform.
sourcepub fn copy_text_transform_from(&mut self, other: &Self)
pub fn copy_text_transform_from(&mut self, other: &Self)
Set text-transform from other struct.
sourcepub fn reset_text_transform(&mut self, other: &Self)
pub fn reset_text_transform(&mut self, other: &Self)
Reset text-transform from the initial struct.
sourcepub fn clone_text_transform(&self) -> T
pub fn clone_text_transform(&self) -> T
Get the computed value for text-transform.
sourcepub fn set_text_indent(&mut self, v: T)
pub fn set_text_indent(&mut self, v: T)
Set text-indent.
sourcepub fn copy_text_indent_from(&mut self, other: &Self)
pub fn copy_text_indent_from(&mut self, other: &Self)
Set text-indent from other struct.
sourcepub fn reset_text_indent(&mut self, other: &Self)
pub fn reset_text_indent(&mut self, other: &Self)
Reset text-indent from the initial struct.
sourcepub fn clone_text_indent(&self) -> T
pub fn clone_text_indent(&self) -> T
Get the computed value for text-indent.
sourcepub fn set_overflow_wrap(&mut self, v: T)
pub fn set_overflow_wrap(&mut self, v: T)
Set overflow-wrap.
sourcepub fn copy_overflow_wrap_from(&mut self, other: &Self)
pub fn copy_overflow_wrap_from(&mut self, other: &Self)
Set overflow-wrap from other struct.
sourcepub fn reset_overflow_wrap(&mut self, other: &Self)
pub fn reset_overflow_wrap(&mut self, other: &Self)
Reset overflow-wrap from the initial struct.
sourcepub fn clone_overflow_wrap(&self) -> T
pub fn clone_overflow_wrap(&self) -> T
Get the computed value for overflow-wrap.
sourcepub fn set_word_break(&mut self, v: T)
pub fn set_word_break(&mut self, v: T)
Set word-break.
sourcepub fn copy_word_break_from(&mut self, other: &Self)
pub fn copy_word_break_from(&mut self, other: &Self)
Set word-break from other struct.
sourcepub fn reset_word_break(&mut self, other: &Self)
pub fn reset_word_break(&mut self, other: &Self)
Reset word-break from the initial struct.
sourcepub fn clone_word_break(&self) -> T
pub fn clone_word_break(&self) -> T
Get the computed value for word-break.
sourcepub fn set_text_justify(&mut self, v: T)
pub fn set_text_justify(&mut self, v: T)
Set text-justify.
sourcepub fn copy_text_justify_from(&mut self, other: &Self)
pub fn copy_text_justify_from(&mut self, other: &Self)
Set text-justify from other struct.
sourcepub fn reset_text_justify(&mut self, other: &Self)
pub fn reset_text_justify(&mut self, other: &Self)
Reset text-justify from the initial struct.
sourcepub fn clone_text_justify(&self) -> T
pub fn clone_text_justify(&self) -> T
Get the computed value for text-justify.
sourcepub fn set_text_align_last(&mut self, v: T)
pub fn set_text_align_last(&mut self, v: T)
Set text-align-last.
sourcepub fn copy_text_align_last_from(&mut self, other: &Self)
pub fn copy_text_align_last_from(&mut self, other: &Self)
Set text-align-last from other struct.
sourcepub fn reset_text_align_last(&mut self, other: &Self)
pub fn reset_text_align_last(&mut self, other: &Self)
Reset text-align-last from the initial struct.
sourcepub fn clone_text_align_last(&self) -> T
pub fn clone_text_align_last(&self) -> T
Get the computed value for text-align-last.
sourcepub fn set_text_align(&mut self, v: T)
pub fn set_text_align(&mut self, v: T)
Set text-align.
sourcepub fn copy_text_align_from(&mut self, other: &Self)
pub fn copy_text_align_from(&mut self, other: &Self)
Set text-align from other struct.
sourcepub fn reset_text_align(&mut self, other: &Self)
pub fn reset_text_align(&mut self, other: &Self)
Reset text-align from the initial struct.
sourcepub fn clone_text_align(&self) -> T
pub fn clone_text_align(&self) -> T
Get the computed value for text-align.
sourcepub fn set_letter_spacing(&mut self, v: T)
pub fn set_letter_spacing(&mut self, v: T)
Set letter-spacing.
sourcepub fn copy_letter_spacing_from(&mut self, other: &Self)
pub fn copy_letter_spacing_from(&mut self, other: &Self)
Set letter-spacing from other struct.
sourcepub fn reset_letter_spacing(&mut self, other: &Self)
pub fn reset_letter_spacing(&mut self, other: &Self)
Reset letter-spacing from the initial struct.
sourcepub fn clone_letter_spacing(&self) -> T
pub fn clone_letter_spacing(&self) -> T
Get the computed value for letter-spacing.
sourcepub fn set_word_spacing(&mut self, v: T)
pub fn set_word_spacing(&mut self, v: T)
Set word-spacing.
sourcepub fn copy_word_spacing_from(&mut self, other: &Self)
pub fn copy_word_spacing_from(&mut self, other: &Self)
Set word-spacing from other struct.
sourcepub fn reset_word_spacing(&mut self, other: &Self)
pub fn reset_word_spacing(&mut self, other: &Self)
Reset word-spacing from the initial struct.
sourcepub fn clone_word_spacing(&self) -> T
pub fn clone_word_spacing(&self) -> T
Get the computed value for word-spacing.
sourcepub fn set_white_space_collapse(&mut self, v: T)
pub fn set_white_space_collapse(&mut self, v: T)
Set white-space-collapse.
sourcepub fn copy_white_space_collapse_from(&mut self, other: &Self)
pub fn copy_white_space_collapse_from(&mut self, other: &Self)
Set white-space-collapse from other struct.
sourcepub fn reset_white_space_collapse(&mut self, other: &Self)
pub fn reset_white_space_collapse(&mut self, other: &Self)
Reset white-space-collapse from the initial struct.
sourcepub fn clone_white_space_collapse(&self) -> T
pub fn clone_white_space_collapse(&self) -> T
Get the computed value for white-space-collapse.
sourcepub fn set_text_shadow(&mut self, v: T)
pub fn set_text_shadow(&mut self, v: T)
Set text-shadow.
sourcepub fn copy_text_shadow_from(&mut self, other: &Self)
pub fn copy_text_shadow_from(&mut self, other: &Self)
Set text-shadow from other struct.
sourcepub fn reset_text_shadow(&mut self, other: &Self)
pub fn reset_text_shadow(&mut self, other: &Self)
Reset text-shadow from the initial struct.
sourcepub fn clone_text_shadow(&self) -> T
pub fn clone_text_shadow(&self) -> T
Get the computed value for text-shadow.
sourcepub fn set_text_rendering(&mut self, v: T)
pub fn set_text_rendering(&mut self, v: T)
Set text-rendering.
sourcepub fn copy_text_rendering_from(&mut self, other: &Self)
pub fn copy_text_rendering_from(&mut self, other: &Self)
Set text-rendering from other struct.
sourcepub fn reset_text_rendering(&mut self, other: &Self)
pub fn reset_text_rendering(&mut self, other: &Self)
Reset text-rendering from the initial struct.
sourcepub fn clone_text_rendering(&self) -> T
pub fn clone_text_rendering(&self) -> T
Get the computed value for text-rendering.
sourcepub fn set_text_wrap_mode(&mut self, v: T)
pub fn set_text_wrap_mode(&mut self, v: T)
Set text-wrap-mode.
sourcepub fn copy_text_wrap_mode_from(&mut self, other: &Self)
pub fn copy_text_wrap_mode_from(&mut self, other: &Self)
Set text-wrap-mode from other struct.
sourcepub fn reset_text_wrap_mode(&mut self, other: &Self)
pub fn reset_text_wrap_mode(&mut self, other: &Self)
Reset text-wrap-mode from the initial struct.
sourcepub fn clone_text_wrap_mode(&self) -> T
pub fn clone_text_wrap_mode(&self) -> T
Get the computed value for text-wrap-mode.
Trait Implementations§
source§impl Clone for InheritedText
impl Clone for InheritedText
source§fn clone(&self) -> InheritedText
fn clone(&self) -> InheritedText
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InheritedText
impl Debug for InheritedText
source§impl MallocSizeOf for InheritedText
impl MallocSizeOf for InheritedText
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for InheritedText
impl PartialEq for InheritedText
impl StructuralPartialEq for InheritedText
Auto Trait Implementations§
impl Freeze for InheritedText
impl RefUnwindSafe for InheritedText
impl Send for InheritedText
impl Sync for InheritedText
impl Unpin for InheritedText
impl UnwindSafe for InheritedText
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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