Struct components::painting::TextSpan
source · [−]pub struct TextSpan {
pub children: Vec<Box<dyn InlineSpan>>,
pub cursor: MouseCursor,
pub locale: Option<Locale>,
pub mouse_cursor: MouseCursor,
pub on_enter: PointerEnterEventListener,
pub on_exit: PointerExitEventListener,
pub recognizer: GestureRecognizer,
pub semantics_label: String,
pub spell_out: bool,
pub style: TextStyle,
pub text: String,
pub valid_for_mouse_tracker: bool,
}
Fields
children: Vec<Box<dyn InlineSpan>>
cursor: MouseCursor
locale: Option<Locale>
mouse_cursor: MouseCursor
on_enter: PointerEnterEventListener
on_exit: PointerExitEventListener
recognizer: GestureRecognizer
semantics_label: String
spell_out: bool
style: TextStyle
text: String
valid_for_mouse_tracker: bool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TextSpan
impl !Send for TextSpan
impl !Sync for TextSpan
impl Unpin for TextSpan
impl !UnwindSafe for TextSpan
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.