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

source

pub fn set_color(&mut self, v: T)

Set color.

source

pub fn copy_color_from(&mut self, other: &Self)

Set color from other struct.

source

pub fn reset_color(&mut self, other: &Self)

Reset color from the initial struct.

source

pub fn clone_color(&self) -> T

Get the computed value for color.

source

pub fn set_text_transform(&mut self, v: T)

Set text-transform.

source

pub fn copy_text_transform_from(&mut self, other: &Self)

Set text-transform from other struct.

source

pub fn reset_text_transform(&mut self, other: &Self)

Reset text-transform from the initial struct.

source

pub fn clone_text_transform(&self) -> T

Get the computed value for text-transform.

source

pub fn set_text_indent(&mut self, v: T)

Set text-indent.

source

pub fn copy_text_indent_from(&mut self, other: &Self)

Set text-indent from other struct.

source

pub fn reset_text_indent(&mut self, other: &Self)

Reset text-indent from the initial struct.

source

pub fn clone_text_indent(&self) -> T

Get the computed value for text-indent.

source

pub fn set_overflow_wrap(&mut self, v: T)

Set overflow-wrap.

source

pub fn copy_overflow_wrap_from(&mut self, other: &Self)

Set overflow-wrap from other struct.

source

pub fn reset_overflow_wrap(&mut self, other: &Self)

Reset overflow-wrap from the initial struct.

source

pub fn clone_overflow_wrap(&self) -> T

Get the computed value for overflow-wrap.

source

pub fn set_word_break(&mut self, v: T)

Set word-break.

source

pub fn copy_word_break_from(&mut self, other: &Self)

Set word-break from other struct.

source

pub fn reset_word_break(&mut self, other: &Self)

Reset word-break from the initial struct.

source

pub fn clone_word_break(&self) -> T

Get the computed value for word-break.

source

pub fn set_text_justify(&mut self, v: T)

Set text-justify.

source

pub fn copy_text_justify_from(&mut self, other: &Self)

Set text-justify from other struct.

source

pub fn reset_text_justify(&mut self, other: &Self)

Reset text-justify from the initial struct.

source

pub fn clone_text_justify(&self) -> T

Get the computed value for text-justify.

source

pub fn set_text_align_last(&mut self, v: T)

Set text-align-last.

source

pub fn copy_text_align_last_from(&mut self, other: &Self)

Set text-align-last from other struct.

source

pub fn reset_text_align_last(&mut self, other: &Self)

Reset text-align-last from the initial struct.

source

pub fn clone_text_align_last(&self) -> T

Get the computed value for text-align-last.

source

pub fn set_text_align(&mut self, v: T)

Set text-align.

source

pub fn copy_text_align_from(&mut self, other: &Self)

Set text-align from other struct.

source

pub fn reset_text_align(&mut self, other: &Self)

Reset text-align from the initial struct.

source

pub fn clone_text_align(&self) -> T

Get the computed value for text-align.

source

pub fn set_letter_spacing(&mut self, v: T)

Set letter-spacing.

source

pub fn copy_letter_spacing_from(&mut self, other: &Self)

Set letter-spacing from other struct.

source

pub fn reset_letter_spacing(&mut self, other: &Self)

Reset letter-spacing from the initial struct.

source

pub fn clone_letter_spacing(&self) -> T

Get the computed value for letter-spacing.

source

pub fn set_word_spacing(&mut self, v: T)

Set word-spacing.

source

pub fn copy_word_spacing_from(&mut self, other: &Self)

Set word-spacing from other struct.

source

pub fn reset_word_spacing(&mut self, other: &Self)

Reset word-spacing from the initial struct.

source

pub fn clone_word_spacing(&self) -> T

Get the computed value for word-spacing.

source

pub fn set_white_space_collapse(&mut self, v: T)

Set white-space-collapse.

source

pub fn copy_white_space_collapse_from(&mut self, other: &Self)

Set white-space-collapse from other struct.

source

pub fn reset_white_space_collapse(&mut self, other: &Self)

Reset white-space-collapse from the initial struct.

source

pub fn clone_white_space_collapse(&self) -> T

Get the computed value for white-space-collapse.

source

pub fn set_text_shadow(&mut self, v: T)

Set text-shadow.

source

pub fn copy_text_shadow_from(&mut self, other: &Self)

Set text-shadow from other struct.

source

pub fn reset_text_shadow(&mut self, other: &Self)

Reset text-shadow from the initial struct.

source

pub fn clone_text_shadow(&self) -> T

Get the computed value for text-shadow.

source

pub fn set_text_rendering(&mut self, v: T)

Set text-rendering.

source

pub fn copy_text_rendering_from(&mut self, other: &Self)

Set text-rendering from other struct.

source

pub fn reset_text_rendering(&mut self, other: &Self)

Reset text-rendering from the initial struct.

source

pub fn clone_text_rendering(&self) -> T

Get the computed value for text-rendering.

source

pub fn set_text_wrap_mode(&mut self, v: T)

Set text-wrap-mode.

source

pub fn copy_text_wrap_mode_from(&mut self, other: &Self)

Set text-wrap-mode from other struct.

source

pub fn reset_text_wrap_mode(&mut self, other: &Self)

Reset text-wrap-mode from the initial struct.

source

pub fn clone_text_wrap_mode(&self) -> T

Get the computed value for text-wrap-mode.

Trait Implementations§

source§

impl Clone for InheritedText

source§

fn clone(&self) -> InheritedText

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InheritedText

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl MallocSizeOf for InheritedText

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl PartialEq for InheritedText

source§

fn eq(&self, other: &InheritedText) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for InheritedText

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> MaybeBoxed<Box<T>> for T

source§

fn maybe_boxed(self) -> Box<T>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T