pub struct Text {
pub text_box_trim: T,
pub text_overflow: T,
pub text_decoration_line: T,
pub text_decoration_color: T,
pub text_decoration_inset: T,
pub initial_letter: T,
pub text_decoration_thickness: T,
pub unicode_bidi: T,
pub text_decoration_style: T,
}Expand description
The Text style struct.
Fields§
§text_box_trim: TThe text-box-trim computed value.
text_overflow: TThe text-overflow computed value.
text_decoration_line: TThe text-decoration-line computed value.
text_decoration_color: TThe text-decoration-color computed value.
text_decoration_inset: TThe text-decoration-inset computed value.
initial_letter: TThe initial-letter computed value.
text_decoration_thickness: TThe text-decoration-thickness computed value.
unicode_bidi: TThe unicode-bidi computed value.
text_decoration_style: TThe text-decoration-style computed value.
Implementations§
Source§impl Text
impl Text
Sourcepub fn set_text_box_trim(&mut self, v: T)
pub fn set_text_box_trim(&mut self, v: T)
Set text-box-trim.
Sourcepub fn copy_text_box_trim_from(&mut self, other: &Self)
pub fn copy_text_box_trim_from(&mut self, other: &Self)
Set text-box-trim from other struct.
Sourcepub fn reset_text_box_trim(&mut self, other: &Self)
pub fn reset_text_box_trim(&mut self, other: &Self)
Reset text-box-trim from the initial struct.
Sourcepub fn get_text_box_trim(&self) -> &T
pub fn get_text_box_trim(&self) -> &T
Get a reference to the computed value for text-box-trim.
Sourcepub fn slow_clone_text_box_trim(&self) -> T
pub fn slow_clone_text_box_trim(&self) -> T
Clone the computed value for text-box-trim. Prefer
get_text_box_trim where a reference is enough.
Sourcepub fn text_box_trim_equals(&self, other: &Self) -> bool
pub fn text_box_trim_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-box-trim.
Sourcepub fn set_text_overflow(&mut self, v: T)
pub fn set_text_overflow(&mut self, v: T)
Set text-overflow.
Sourcepub fn copy_text_overflow_from(&mut self, other: &Self)
pub fn copy_text_overflow_from(&mut self, other: &Self)
Set text-overflow from other struct.
Sourcepub fn reset_text_overflow(&mut self, other: &Self)
pub fn reset_text_overflow(&mut self, other: &Self)
Reset text-overflow from the initial struct.
Sourcepub fn get_text_overflow(&self) -> &T
pub fn get_text_overflow(&self) -> &T
Get a reference to the computed value for text-overflow.
Sourcepub fn slow_clone_text_overflow(&self) -> T
pub fn slow_clone_text_overflow(&self) -> T
Clone the computed value for text-overflow. Prefer
get_text_overflow where a reference is enough.
Sourcepub fn text_overflow_equals(&self, other: &Self) -> bool
pub fn text_overflow_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-overflow.
Sourcepub fn set_text_decoration_line(&mut self, v: T)
pub fn set_text_decoration_line(&mut self, v: T)
Set text-decoration-line.
Sourcepub fn copy_text_decoration_line_from(&mut self, other: &Self)
pub fn copy_text_decoration_line_from(&mut self, other: &Self)
Set text-decoration-line from other struct.
Sourcepub fn reset_text_decoration_line(&mut self, other: &Self)
pub fn reset_text_decoration_line(&mut self, other: &Self)
Reset text-decoration-line from the initial struct.
Sourcepub fn get_text_decoration_line(&self) -> &T
pub fn get_text_decoration_line(&self) -> &T
Get a reference to the computed value for text-decoration-line.
Sourcepub fn slow_clone_text_decoration_line(&self) -> T
pub fn slow_clone_text_decoration_line(&self) -> T
Clone the computed value for text-decoration-line. Prefer
get_text_decoration_line where a reference is enough.
Sourcepub fn text_decoration_line_equals(&self, other: &Self) -> bool
pub fn text_decoration_line_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-decoration-line.
Sourcepub fn set_text_decoration_color(&mut self, v: T)
pub fn set_text_decoration_color(&mut self, v: T)
Set text-decoration-color.
Sourcepub fn copy_text_decoration_color_from(&mut self, other: &Self)
pub fn copy_text_decoration_color_from(&mut self, other: &Self)
Set text-decoration-color from other struct.
Sourcepub fn reset_text_decoration_color(&mut self, other: &Self)
pub fn reset_text_decoration_color(&mut self, other: &Self)
Reset text-decoration-color from the initial struct.
Sourcepub fn get_text_decoration_color(&self) -> &T
pub fn get_text_decoration_color(&self) -> &T
Get a reference to the computed value for text-decoration-color.
Sourcepub fn slow_clone_text_decoration_color(&self) -> T
pub fn slow_clone_text_decoration_color(&self) -> T
Clone the computed value for text-decoration-color. Prefer
get_text_decoration_color where a reference is enough.
Sourcepub fn text_decoration_color_equals(&self, other: &Self) -> bool
pub fn text_decoration_color_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-decoration-color.
Sourcepub fn set_text_decoration_inset(&mut self, v: T)
pub fn set_text_decoration_inset(&mut self, v: T)
Set text-decoration-inset.
Sourcepub fn copy_text_decoration_inset_from(&mut self, other: &Self)
pub fn copy_text_decoration_inset_from(&mut self, other: &Self)
Set text-decoration-inset from other struct.
Sourcepub fn reset_text_decoration_inset(&mut self, other: &Self)
pub fn reset_text_decoration_inset(&mut self, other: &Self)
Reset text-decoration-inset from the initial struct.
Sourcepub fn get_text_decoration_inset(&self) -> &T
pub fn get_text_decoration_inset(&self) -> &T
Get a reference to the computed value for text-decoration-inset.
Sourcepub fn slow_clone_text_decoration_inset(&self) -> T
pub fn slow_clone_text_decoration_inset(&self) -> T
Clone the computed value for text-decoration-inset. Prefer
get_text_decoration_inset where a reference is enough.
Sourcepub fn text_decoration_inset_equals(&self, other: &Self) -> bool
pub fn text_decoration_inset_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-decoration-inset.
Sourcepub fn set_initial_letter(&mut self, v: T)
pub fn set_initial_letter(&mut self, v: T)
Set initial-letter.
Sourcepub fn copy_initial_letter_from(&mut self, other: &Self)
pub fn copy_initial_letter_from(&mut self, other: &Self)
Set initial-letter from other struct.
Sourcepub fn reset_initial_letter(&mut self, other: &Self)
pub fn reset_initial_letter(&mut self, other: &Self)
Reset initial-letter from the initial struct.
Sourcepub fn get_initial_letter(&self) -> &T
pub fn get_initial_letter(&self) -> &T
Get a reference to the computed value for initial-letter.
Sourcepub fn slow_clone_initial_letter(&self) -> T
pub fn slow_clone_initial_letter(&self) -> T
Clone the computed value for initial-letter. Prefer
get_initial_letter where a reference is enough.
Sourcepub fn initial_letter_equals(&self, other: &Self) -> bool
pub fn initial_letter_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for initial-letter.
Sourcepub fn set_text_decoration_thickness(&mut self, v: T)
pub fn set_text_decoration_thickness(&mut self, v: T)
Set text-decoration-thickness.
Sourcepub fn copy_text_decoration_thickness_from(&mut self, other: &Self)
pub fn copy_text_decoration_thickness_from(&mut self, other: &Self)
Set text-decoration-thickness from other struct.
Sourcepub fn reset_text_decoration_thickness(&mut self, other: &Self)
pub fn reset_text_decoration_thickness(&mut self, other: &Self)
Reset text-decoration-thickness from the initial struct.
Sourcepub fn get_text_decoration_thickness(&self) -> &T
pub fn get_text_decoration_thickness(&self) -> &T
Get a reference to the computed value for text-decoration-thickness.
Sourcepub fn slow_clone_text_decoration_thickness(&self) -> T
pub fn slow_clone_text_decoration_thickness(&self) -> T
Clone the computed value for text-decoration-thickness. Prefer
get_text_decoration_thickness where a reference is enough.
Sourcepub fn text_decoration_thickness_equals(&self, other: &Self) -> bool
pub fn text_decoration_thickness_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-decoration-thickness.
Sourcepub fn set_unicode_bidi(&mut self, v: T)
pub fn set_unicode_bidi(&mut self, v: T)
Set unicode-bidi.
Sourcepub fn copy_unicode_bidi_from(&mut self, other: &Self)
pub fn copy_unicode_bidi_from(&mut self, other: &Self)
Set unicode-bidi from other struct.
Sourcepub fn reset_unicode_bidi(&mut self, other: &Self)
pub fn reset_unicode_bidi(&mut self, other: &Self)
Reset unicode-bidi from the initial struct.
Sourcepub fn get_unicode_bidi(&self) -> &T
pub fn get_unicode_bidi(&self) -> &T
Get a reference to the computed value for unicode-bidi.
Sourcepub fn slow_clone_unicode_bidi(&self) -> T
pub fn slow_clone_unicode_bidi(&self) -> T
Clone the computed value for unicode-bidi. Prefer
get_unicode_bidi where a reference is enough.
Sourcepub fn unicode_bidi_equals(&self, other: &Self) -> bool
pub fn unicode_bidi_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for unicode-bidi.
Sourcepub fn set_text_decoration_style(&mut self, v: T)
pub fn set_text_decoration_style(&mut self, v: T)
Set text-decoration-style.
Sourcepub fn copy_text_decoration_style_from(&mut self, other: &Self)
pub fn copy_text_decoration_style_from(&mut self, other: &Self)
Set text-decoration-style from other struct.
Sourcepub fn reset_text_decoration_style(&mut self, other: &Self)
pub fn reset_text_decoration_style(&mut self, other: &Self)
Reset text-decoration-style from the initial struct.
Sourcepub fn get_text_decoration_style(&self) -> &T
pub fn get_text_decoration_style(&self) -> &T
Get a reference to the computed value for text-decoration-style.
Sourcepub fn slow_clone_text_decoration_style(&self) -> T
pub fn slow_clone_text_decoration_style(&self) -> T
Clone the computed value for text-decoration-style. Prefer
get_text_decoration_style where a reference is enough.
Sourcepub fn text_decoration_style_equals(&self, other: &Self) -> bool
pub fn text_decoration_style_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for text-decoration-style.
Trait Implementations§
Source§impl MallocSizeOf for Text
impl MallocSizeOf for Text
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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