Struct style::properties::generated::style_structs::Text
source · pub struct Text {
pub text_overflow: T,
pub unicode_bidi: T,
pub text_decoration_line: T,
pub text_decoration_style: T,
pub text_decoration_color: T,
}
Expand description
The Text style struct.
Fields§
§text_overflow: T
The text-overflow computed value.
unicode_bidi: T
The unicode-bidi computed value.
text_decoration_line: T
The text-decoration-line computed value.
text_decoration_style: T
The text-decoration-style computed value.
text_decoration_color: T
The text-decoration-color computed value.
Implementations§
source§impl Text
impl Text
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 clone_text_overflow(&self) -> T
pub fn clone_text_overflow(&self) -> T
Get the computed value for text-overflow.
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 clone_unicode_bidi(&self) -> T
pub fn clone_unicode_bidi(&self) -> T
Get the computed value for unicode-bidi.
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 clone_text_decoration_line(&self) -> T
pub fn clone_text_decoration_line(&self) -> T
Get the computed value for text-decoration-line.
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 clone_text_decoration_style(&self) -> T
pub fn clone_text_decoration_style(&self) -> T
Get the computed value for text-decoration-style.
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 clone_text_decoration_color(&self) -> T
pub fn clone_text_decoration_color(&self) -> T
Get the computed value for text-decoration-color.
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 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§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