pub struct DiagnosticGlyphRun {
pub bounds: Rect,
pub platform_impl: Arc<dyn IGlyphRunImpl>,
}Expand description
A glyph run as needed by DiagnosticTextRenderer.
Fields§
§bounds: RectThe layout bounds of the run (the C# GlyphRun.Bounds: advance width
by line height), which is what text is measured and advanced with.
This is not the ink bounding box reported by
IGlyphRunImpl::bounds.
platform_impl: Arc<dyn IGlyphRunImpl>The platform glyph run that gets drawn.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DiagnosticGlyphRun
impl !UnwindSafe for DiagnosticGlyphRun
impl Freeze for DiagnosticGlyphRun
impl Send for DiagnosticGlyphRun
impl Sync for DiagnosticGlyphRun
impl Unpin for DiagnosticGlyphRun
impl UnsafeUnpin for DiagnosticGlyphRun
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more