#[non_exhaustive]pub struct ResolvedText {
pub txt: Var<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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.txt: Var<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: SegmentedTextText transformed, white space corrected and segmented.
faces: FontFaceListQueried font faces.
synthesis: FontSynthesisFont synthesis allowed by the text context and required to render the best font match.
pending_layout: PendingLayoutLayout 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: boolText modification is scheduled, caret info will only be valid after update.
caret: CaretInfoCaret index and animation.
selection_by: SelectionBySource of the current selection.
selection_toolbar_is_open: boolIf 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