Struct style::properties::style_structs::InheritedText
source · pub struct InheritedText {Show 14 fields
pub color: T,
pub line_height: T,
pub text_transform: T,
pub text_indent: T,
pub overflow_wrap: T,
pub word_break: T,
pub text_justify: T,
pub text_align: T,
pub letter_spacing: T,
pub word_spacing: T,
pub white_space: T,
pub text_shadow: T,
pub text_rendering: T,
pub text_decorations_in_effect: TextDecorationsInEffect,
}
Expand description
The InheritedText style struct.
Fields§
§color: T
The color computed value.
line_height: T
The line-height 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: T
The text-align computed value.
letter_spacing: T
The letter-spacing computed value.
word_spacing: T
The word-spacing computed value.
white_space: T
The white-space computed value.
text_shadow: T
The text-shadow computed value.
text_rendering: T
The text-rendering 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_line_height(&mut self, v: T)
pub fn set_line_height(&mut self, v: T)
Set line-height.
sourcepub fn copy_line_height_from(&mut self, other: &Self)
pub fn copy_line_height_from(&mut self, other: &Self)
Set line-height from other struct.
sourcepub fn reset_line_height(&mut self, other: &Self)
pub fn reset_line_height(&mut self, other: &Self)
Reset line-height from the initial struct.
sourcepub fn clone_line_height(&self) -> T
pub fn clone_line_height(&self) -> T
Get the computed value for line-height.
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(&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(&mut self, v: T)
pub fn set_white_space(&mut self, v: T)
Set white-space.
sourcepub fn copy_white_space_from(&mut self, other: &Self)
pub fn copy_white_space_from(&mut self, other: &Self)
Set white-space from other struct.
sourcepub fn reset_white_space(&mut self, other: &Self)
pub fn reset_white_space(&mut self, other: &Self)
Reset white-space from the initial struct.
sourcepub fn clone_white_space(&self) -> T
pub fn clone_white_space(&self) -> T
Get the computed value for white-space.
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.
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<InheritedText> for InheritedText
impl PartialEq<InheritedText> for InheritedText
source§fn eq(&self, other: &InheritedText) -> bool
fn eq(&self, other: &InheritedText) -> bool
self
and other
values to be equal, and is used
by ==
.