Struct zng_wgt_text::node::ResolvedText
source · pub struct ResolvedText {
pub txt: BoxedVar<Txt>,
pub ime_preview: Option<ImePreview>,
pub segmented_text: SegmentedText,
pub faces: FontFaceList,
pub synthesis: FontSynthesis,
pub pending_layout: PendingLayout,
pub pending_edit: bool,
pub caret: CaretInfo,
pub selection_by: SelectionBy,
pub selection_toolbar_is_open: bool,
}
Expand description
Represents the resolved fonts and the transformed, white space corrected and segmented text.
Use TEXT
to get.
Fields§
§txt: BoxedVar<Txt>
The text source variable.
ime_preview: Option<ImePreview>
IME text edit that is not committed yet. Only the text in the segmented and shaped text is edited, the text variable is not updated yet and undo is not tracking these changes.
segmented_text: SegmentedText
Text transformed, white space corrected and segmented.
faces: FontFaceList
Queried font faces.
synthesis: FontSynthesis
Font synthesis allowed by the text context and required to render the best font match.
pending_layout: PendingLayout
Layout that needs to be recomputed as identified by the text resolver node.
This is added to the layout invalidation by the layout node itself. When set a layout must be requested for the widget.
pending_edit: bool
Text modification is scheduled, caret info will only be valid after update.
caret: CaretInfo
Caret index and animation.
selection_by: SelectionBy
Source of the current selection.
selection_toolbar_is_open: bool
If the selection toolbar is open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedText
impl !RefUnwindSafe for ResolvedText
impl Send for ResolvedText
impl Sync for ResolvedText
impl Unpin for ResolvedText
impl !UnwindSafe for ResolvedText
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> FsChangeNote for T
impl<T> FsChangeNote for T
§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>
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