[−][src]Struct directwrite::text_renderer::TextRenderer
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]
&mut self,
context: &DrawStrikethrough
) -> DWResult<()>
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.
fn deref(&self) -> &PixelSnapping
[src]
impl ComWrapper for TextRenderer
[src]
type Interface = IDWriteTextRenderer
The raw interface type from winapi
unsafe fn get_raw(&self) -> *mut IDWriteTextRenderer
[src]
unsafe fn from_raw(ptr: *mut IDWriteTextRenderer) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDWriteTextRenderer
[src]
unsafe fn from_ptr(ptr: ComPtr<IDWriteTextRenderer>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDWriteTextRenderer>
[src]
Auto Trait Implementations
impl !Sync for TextRenderer
Blanket Implementations
impl<T> FontKey for T where
T: Send + Sync + 'static + ?Sized,
[src]
T: Send + Sync + 'static + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,