[][src]Struct directwrite::text_renderer::TextRenderer

#[repr(transparent)]
pub struct TextRenderer { /* fields omitted */ }

A generic Text Renderer object.

Methods

impl TextRenderer[src]

pub fn new(renderer: impl CustomTextRenderer) -> TextRenderer[src]

Create a text renderer from an application-implemented interface.

pub fn draw_glyph_run(&mut self, context: &DrawGlyphRun) -> DWResult<()>[src]

Draws a run of glyphs using this text renderer. Normally you won't call this directly, but it will be called indirectly from TextLayout::draw

pub fn draw_underline(&mut self, context: &DrawUnderline) -> DWResult<()>[src]

Draws a section of underline using this text renderer. Normally you won't call this directly, but it will be called indirectly from TextLayout::draw

pub fn draw_strikethrough(
    &mut self,
    context: &DrawStrikethrough
) -> DWResult<()>
[src]

Draws a section of strikethrough using this text renderer. Normally you won't call this directly, but it will be called indirectly from TextLayout::draw

pub fn draw_inline_object(&mut self, context: &DrawInlineObject) -> DWResult<()>[src]

Draws an inline object using this text renderer. Normally you won't call this directly, but it will be called indirectly from TextLayout::draw

Methods from Deref<Target = PixelSnapping>

pub fn pixel_snapping_disabled(&self, context: &DrawContext) -> DWResult<bool>[src]

Determines whether this object wants pixel snapping to be disabled.

pub fn current_transform(&self, context: &DrawContext) -> DWResult<Matrix3x2f>[src]

Gets the transform that should be applied to this text.

pub fn pixels_per_dip(&self, context: &DrawContext) -> DWResult<f32>[src]

Gets the number of physical pixels per DIP currently being used in this renderer.

Trait Implementations

impl Send for TextRenderer[src]

impl Deref for TextRenderer[src]

type Target = PixelSnapping

The resulting type after dereferencing.

impl ComWrapper for TextRenderer[src]

type Interface = IDWriteTextRenderer

The raw interface type from winapi

Auto Trait Implementations

impl !Sync for TextRenderer

Blanket Implementations

impl<T> FontKey for T where
    T: Send + Sync + 'static + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]