pub struct TextTransformMix<P>(/* private fields */);Expand description
m Text transform properties.
All properties in this mixin affects Text! nodes inside the widget where they are set.
Implementations§
Source§impl TextTransformMix<()>
impl TextTransformMix<()>
Sourcepub fn context_vars_set(set: &mut ContextValueSet)
pub fn context_vars_set(set: &mut ContextValueSet)
Insert context variables used by properties in this mixin.
Source§impl<P: WidgetImpl> TextTransformMix<P>
impl<P: WidgetImpl> TextTransformMix<P>
Sourcepub fn white_space(&self, transform: impl IntoVar<WhiteSpace>)
pub fn white_space(&self, transform: impl IntoVar<WhiteSpace>)
P Text white space transform.
Can be used to collapse a sequence of spaces into a single one, or to ignore line-breaks.
Is WhiteSpace::Preserve by default.
This property is not applied when the text is txt_editable.
Sets the WHITE_SPACE_VAR.
Source§impl<P: WidgetImpl> TextTransformMix<P>
impl<P: WidgetImpl> TextTransformMix<P>
Sourcepub fn txt_transform(&self, transform: impl IntoVar<TextTransformFn>)
pub fn txt_transform(&self, transform: impl IntoVar<TextTransformFn>)
P Text transform, character replacement applied to the text before it is processed by the text widget.
This property is not applied when the text is txt_editable.
Sets the TEXT_TRANSFORM_VAR.
Trait Implementations§
Source§impl<P> Deref for TextTransformMix<P>
impl<P> Deref for TextTransformMix<P>
Auto Trait Implementations§
impl<P> Freeze for TextTransformMix<P>where
P: Freeze,
impl<P> RefUnwindSafe for TextTransformMix<P>where
P: RefUnwindSafe,
impl<P> Send for TextTransformMix<P>where
P: Send,
impl<P> Sync for TextTransformMix<P>where
P: Sync,
impl<P> Unpin for TextTransformMix<P>where
P: Unpin,
impl<P> UnwindSafe for TextTransformMix<P>where
P: UnwindSafe,
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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