pub struct FlexibleTextLayout {
pub(crate) buffer: Buffer,
metrics: WispTextMetrics,
}Expand description
Result of FlexibleTextEngine::layout — a shaped cosmic-text
Buffer plus metrics.
The buffer is held privately so callers can’t reach into the
cosmic-text API through this struct. The renderer (M-TEXT.3) uses
the crate-private buffer() accessor.
Fields§
§buffer: BufferUnderlying cosmic-text buffer. Crate-public so the
FlexibleTextRenderer (glyphon) can read it without a
downcast; not exposed outside the crate.
metrics: WispTextMetricsTrait Implementations§
Source§impl Debug for FlexibleTextLayout
impl Debug for FlexibleTextLayout
Source§impl WispTextLayout for FlexibleTextLayout
impl WispTextLayout for FlexibleTextLayout
Source§fn metrics(&self) -> WispTextMetrics
fn metrics(&self) -> WispTextMetrics
Per-layout metrics.
Auto Trait Implementations§
impl Freeze for FlexibleTextLayout
impl RefUnwindSafe for FlexibleTextLayout
impl Send for FlexibleTextLayout
impl Sync for FlexibleTextLayout
impl Unpin for FlexibleTextLayout
impl UnsafeUnpin for FlexibleTextLayout
impl UnwindSafe for FlexibleTextLayout
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