Struct windows::Win32::Graphics::DirectWrite::IDWriteTextFormat
pub struct IDWriteTextFormat(/* private fields */);
Implementations§
§impl IDWriteTextFormat
impl IDWriteTextFormat
pub unsafe fn SetTextAlignment( &self, textalignment: DWRITE_TEXT_ALIGNMENT, ) -> Result<()>
pub unsafe fn SetParagraphAlignment( &self, paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT, ) -> Result<()>
pub unsafe fn SetWordWrapping( &self, wordwrapping: DWRITE_WORD_WRAPPING, ) -> Result<()>
pub unsafe fn SetReadingDirection( &self, readingdirection: DWRITE_READING_DIRECTION, ) -> Result<()>
pub unsafe fn SetFlowDirection( &self, flowdirection: DWRITE_FLOW_DIRECTION, ) -> Result<()>
pub unsafe fn SetIncrementalTabStop( &self, incrementaltabstop: f32, ) -> Result<()>
pub unsafe fn SetTrimming<P0>(
&self,
trimmingoptions: *const DWRITE_TRIMMING,
trimmingsign: P0,
) -> Result<()>where
P0: Param<IDWriteInlineObject>,
pub unsafe fn SetLineSpacing( &self, linespacingmethod: DWRITE_LINE_SPACING_METHOD, linespacing: f32, baseline: f32, ) -> Result<()>
pub unsafe fn GetTextAlignment(&self) -> DWRITE_TEXT_ALIGNMENT
pub unsafe fn GetParagraphAlignment(&self) -> DWRITE_PARAGRAPH_ALIGNMENT
pub unsafe fn GetWordWrapping(&self) -> DWRITE_WORD_WRAPPING
pub unsafe fn GetReadingDirection(&self) -> DWRITE_READING_DIRECTION
pub unsafe fn GetFlowDirection(&self) -> DWRITE_FLOW_DIRECTION
pub unsafe fn GetIncrementalTabStop(&self) -> f32
pub unsafe fn GetTrimming( &self, trimmingoptions: *mut DWRITE_TRIMMING, trimmingsign: *mut Option<IDWriteInlineObject>, ) -> Result<()>
pub unsafe fn GetLineSpacing( &self, linespacingmethod: *mut DWRITE_LINE_SPACING_METHOD, linespacing: *mut f32, baseline: *mut f32, ) -> Result<()>
pub unsafe fn GetFontCollection(&self) -> Result<IDWriteFontCollection>
pub unsafe fn GetFontFamilyNameLength(&self) -> u32
pub unsafe fn GetFontFamilyName(&self, fontfamilyname: &mut [u16]) -> Result<()>
pub unsafe fn GetFontWeight(&self) -> DWRITE_FONT_WEIGHT
pub unsafe fn GetFontStyle(&self) -> DWRITE_FONT_STYLE
pub unsafe fn GetFontStretch(&self) -> DWRITE_FONT_STRETCH
pub unsafe fn GetFontSize(&self) -> f32
pub unsafe fn GetLocaleNameLength(&self) -> u32
pub unsafe fn GetLocaleName(&self, localename: &mut [u16]) -> Result<()>
Trait Implementations§
§impl CanInto<IDWriteTextFormat> for IDWriteTextFormat1
impl CanInto<IDWriteTextFormat> for IDWriteTextFormat1
§impl CanInto<IDWriteTextFormat> for IDWriteTextFormat2
impl CanInto<IDWriteTextFormat> for IDWriteTextFormat2
§impl CanInto<IDWriteTextFormat> for IDWriteTextFormat3
impl CanInto<IDWriteTextFormat> for IDWriteTextFormat3
§impl CanInto<IDWriteTextFormat> for IDWriteTextLayout
impl CanInto<IDWriteTextFormat> for IDWriteTextLayout
§impl CanInto<IDWriteTextFormat> for IDWriteTextLayout1
impl CanInto<IDWriteTextFormat> for IDWriteTextLayout1
§impl CanInto<IDWriteTextFormat> for IDWriteTextLayout2
impl CanInto<IDWriteTextFormat> for IDWriteTextLayout2
§impl CanInto<IDWriteTextFormat> for IDWriteTextLayout3
impl CanInto<IDWriteTextFormat> for IDWriteTextLayout3
§impl CanInto<IDWriteTextFormat> for IDWriteTextLayout4
impl CanInto<IDWriteTextFormat> for IDWriteTextLayout4
§impl CanInto<IUnknown> for IDWriteTextFormat
impl CanInto<IUnknown> for IDWriteTextFormat
§impl Clone for IDWriteTextFormat
impl Clone for IDWriteTextFormat
§fn clone(&self) -> IDWriteTextFormat
fn clone(&self) -> IDWriteTextFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IDWriteTextFormat
impl Debug for IDWriteTextFormat
§impl Deref for IDWriteTextFormat
impl Deref for IDWriteTextFormat
§impl From<&IDWriteTextFormat> for &IUnknown
impl From<&IDWriteTextFormat> for &IUnknown
§fn from(value: &IDWriteTextFormat) -> Self
fn from(value: &IDWriteTextFormat) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextFormat1> for &IDWriteTextFormat
impl From<&IDWriteTextFormat1> for &IDWriteTextFormat
§fn from(value: &IDWriteTextFormat1) -> Self
fn from(value: &IDWriteTextFormat1) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextFormat2> for &IDWriteTextFormat
impl From<&IDWriteTextFormat2> for &IDWriteTextFormat
§fn from(value: &IDWriteTextFormat2) -> Self
fn from(value: &IDWriteTextFormat2) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextFormat3> for &IDWriteTextFormat
impl From<&IDWriteTextFormat3> for &IDWriteTextFormat
§fn from(value: &IDWriteTextFormat3) -> Self
fn from(value: &IDWriteTextFormat3) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextLayout> for &IDWriteTextFormat
impl From<&IDWriteTextLayout> for &IDWriteTextFormat
§fn from(value: &IDWriteTextLayout) -> Self
fn from(value: &IDWriteTextLayout) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextLayout1> for &IDWriteTextFormat
impl From<&IDWriteTextLayout1> for &IDWriteTextFormat
§fn from(value: &IDWriteTextLayout1) -> Self
fn from(value: &IDWriteTextLayout1) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextLayout2> for &IDWriteTextFormat
impl From<&IDWriteTextLayout2> for &IDWriteTextFormat
§fn from(value: &IDWriteTextLayout2) -> Self
fn from(value: &IDWriteTextLayout2) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextLayout3> for &IDWriteTextFormat
impl From<&IDWriteTextLayout3> for &IDWriteTextFormat
§fn from(value: &IDWriteTextLayout3) -> Self
fn from(value: &IDWriteTextLayout3) -> Self
Converts to this type from the input type.
§impl From<&IDWriteTextLayout4> for &IDWriteTextFormat
impl From<&IDWriteTextLayout4> for &IDWriteTextFormat
§fn from(value: &IDWriteTextLayout4) -> Self
fn from(value: &IDWriteTextLayout4) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextFormat> for IUnknown
impl From<IDWriteTextFormat> for IUnknown
§fn from(value: IDWriteTextFormat) -> Self
fn from(value: IDWriteTextFormat) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextFormat1> for IDWriteTextFormat
impl From<IDWriteTextFormat1> for IDWriteTextFormat
§fn from(value: IDWriteTextFormat1) -> Self
fn from(value: IDWriteTextFormat1) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextFormat2> for IDWriteTextFormat
impl From<IDWriteTextFormat2> for IDWriteTextFormat
§fn from(value: IDWriteTextFormat2) -> Self
fn from(value: IDWriteTextFormat2) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextFormat3> for IDWriteTextFormat
impl From<IDWriteTextFormat3> for IDWriteTextFormat
§fn from(value: IDWriteTextFormat3) -> Self
fn from(value: IDWriteTextFormat3) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextLayout> for IDWriteTextFormat
impl From<IDWriteTextLayout> for IDWriteTextFormat
§fn from(value: IDWriteTextLayout) -> Self
fn from(value: IDWriteTextLayout) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextLayout1> for IDWriteTextFormat
impl From<IDWriteTextLayout1> for IDWriteTextFormat
§fn from(value: IDWriteTextLayout1) -> Self
fn from(value: IDWriteTextLayout1) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextLayout2> for IDWriteTextFormat
impl From<IDWriteTextLayout2> for IDWriteTextFormat
§fn from(value: IDWriteTextLayout2) -> Self
fn from(value: IDWriteTextLayout2) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextLayout3> for IDWriteTextFormat
impl From<IDWriteTextLayout3> for IDWriteTextFormat
§fn from(value: IDWriteTextLayout3) -> Self
fn from(value: IDWriteTextLayout3) -> Self
Converts to this type from the input type.
§impl From<IDWriteTextLayout4> for IDWriteTextFormat
impl From<IDWriteTextLayout4> for IDWriteTextFormat
§fn from(value: IDWriteTextLayout4) -> Self
fn from(value: IDWriteTextLayout4) -> Self
Converts to this type from the input type.
§impl Interface for IDWriteTextFormat
impl Interface for IDWriteTextFormat
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IDWriteTextFormat
impl PartialEq for IDWriteTextFormat
§fn eq(&self, other: &IDWriteTextFormat) -> bool
fn eq(&self, other: &IDWriteTextFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDWriteTextFormat
impl Send for IDWriteTextFormat
impl StructuralPartialEq for IDWriteTextFormat
impl Sync for IDWriteTextFormat
Auto Trait Implementations§
impl Freeze for IDWriteTextFormat
impl RefUnwindSafe for IDWriteTextFormat
impl Unpin for IDWriteTextFormat
impl UnwindSafe for IDWriteTextFormat
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)