[][src]Struct directwrite::inline_object::InlineObject

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

Inline text object that can be layed out in the middle of text. Can be implemented custom by an application or an implementation provided by another library.

Methods

impl InlineObject[src]

pub fn create_custom(object: impl CustomInlineObject) -> InlineObject[src]

Create an InlineObject from a Rust application-implemented object.

pub fn create_trimming_ellipsis(
    factory: &Factory,
    format: &TextFormat
) -> DWResult<InlineObject>
[src]

Creates an inline object for trimming, using an ellipsis as the ommission sign.

pub fn metrics(&self) -> InlineObjectMetrics[src]

Get the metrics reported by this inline object.

pub fn overhang_metrics(&self) -> OverhangMetrics[src]

Get the overhang reported by this inline object.

pub fn break_conditions(&self) -> BreakConditions[src]

Get the object's requested line breaking behavior.

pub fn draw(&self, context: &DrawingContext) -> DWResult<()>[src]

Requests the inline object to draw itself.

Trait Implementations

impl Clone for InlineObject[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for InlineObject[src]

impl Sync for InlineObject[src]

impl ComWrapper for InlineObject[src]

type Interface = IDWriteInlineObject

The raw interface type from winapi

Blanket Implementations

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

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

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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> Any for T where
    T: 'static + ?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.