[−][src]Struct directwrite::inline_object::InlineObject
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]
factory: &Factory,
format: &TextFormat
) -> DWResult<InlineObject>
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(&self) -> 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
unsafe fn get_raw(&self) -> *mut IDWriteInlineObject
[src]
unsafe fn from_raw(ptr: *mut IDWriteInlineObject) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDWriteInlineObject
[src]
unsafe fn from_ptr(ptr: ComPtr<IDWriteInlineObject>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDWriteInlineObject>
[src]
Blanket Implementations
impl<T> FontKey for T where
T: Send + Sync + 'static + ?Sized,
[src]
T: Send + Sync + 'static + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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>,