Struct windows::Win32::Graphics::DirectWrite::IDWriteFactory1

pub struct IDWriteFactory1(/* private fields */);

Implementations§

§

impl IDWriteFactory1

pub unsafe fn GetEudcFontCollection<P0>( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: P0, ) -> Result<()>
where P0: Param<BOOL>,

pub unsafe fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, ) -> Result<IDWriteRenderingParams1>

Methods from Deref<Target = IDWriteFactory>§

pub unsafe fn GetSystemFontCollection<P0>( &self, fontcollection: *mut Option<IDWriteFontCollection>, checkforupdates: P0, ) -> Result<()>
where P0: Param<BOOL>,

pub unsafe fn CreateCustomFontCollection<P0>( &self, collectionloader: P0, collectionkey: *const c_void, collectionkeysize: u32, ) -> Result<IDWriteFontCollection>
where P0: Param<IDWriteFontCollectionLoader>,

pub unsafe fn RegisterFontCollectionLoader<P0>( &self, fontcollectionloader: P0, ) -> Result<()>
where P0: Param<IDWriteFontCollectionLoader>,

pub unsafe fn UnregisterFontCollectionLoader<P0>( &self, fontcollectionloader: P0, ) -> Result<()>
where P0: Param<IDWriteFontCollectionLoader>,

pub unsafe fn CreateFontFileReference<P0>( &self, filepath: P0, lastwritetime: Option<*const FILETIME>, ) -> Result<IDWriteFontFile>
where P0: Param<PCWSTR>,

pub unsafe fn CreateCustomFontFileReference<P0>( &self, fontfilereferencekey: *const c_void, fontfilereferencekeysize: u32, fontfileloader: P0, ) -> Result<IDWriteFontFile>
where P0: Param<IDWriteFontFileLoader>,

pub unsafe fn CreateFontFace( &self, fontfacetype: DWRITE_FONT_FACE_TYPE, fontfiles: &[Option<IDWriteFontFile>], faceindex: u32, fontfacesimulationflags: DWRITE_FONT_SIMULATIONS, ) -> Result<IDWriteFontFace>

pub unsafe fn CreateRenderingParams(&self) -> Result<IDWriteRenderingParams>

pub unsafe fn CreateMonitorRenderingParams<P0>( &self, monitor: P0, ) -> Result<IDWriteRenderingParams>
where P0: Param<HMONITOR>,

pub unsafe fn CreateCustomRenderingParams( &self, gamma: f32, enhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, ) -> Result<IDWriteRenderingParams>

pub unsafe fn RegisterFontFileLoader<P0>( &self, fontfileloader: P0, ) -> Result<()>
where P0: Param<IDWriteFontFileLoader>,

pub unsafe fn UnregisterFontFileLoader<P0>( &self, fontfileloader: P0, ) -> Result<()>
where P0: Param<IDWriteFontFileLoader>,

pub unsafe fn CreateTextFormat<P0, P1, P2>( &self, fontfamilyname: P0, fontcollection: P1, fontweight: DWRITE_FONT_WEIGHT, fontstyle: DWRITE_FONT_STYLE, fontstretch: DWRITE_FONT_STRETCH, fontsize: f32, localename: P2, ) -> Result<IDWriteTextFormat>
where P0: Param<PCWSTR>, P1: Param<IDWriteFontCollection>, P2: Param<PCWSTR>,

pub unsafe fn CreateTypography(&self) -> Result<IDWriteTypography>

pub unsafe fn GetGdiInterop(&self) -> Result<IDWriteGdiInterop>

pub unsafe fn CreateTextLayout<P0>( &self, string: &[u16], textformat: P0, maxwidth: f32, maxheight: f32, ) -> Result<IDWriteTextLayout>
where P0: Param<IDWriteTextFormat>,

pub unsafe fn CreateGdiCompatibleTextLayout<P0, P1>( &self, string: &[u16], textformat: P0, layoutwidth: f32, layoutheight: f32, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, usegdinatural: P1, ) -> Result<IDWriteTextLayout>
where P0: Param<IDWriteTextFormat>, P1: Param<BOOL>,

pub unsafe fn CreateEllipsisTrimmingSign<P0>( &self, textformat: P0, ) -> Result<IDWriteInlineObject>
where P0: Param<IDWriteTextFormat>,

pub unsafe fn CreateTextAnalyzer(&self) -> Result<IDWriteTextAnalyzer>

pub unsafe fn CreateNumberSubstitution<P0, P1>( &self, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: P0, ignoreuseroverride: P1, ) -> Result<IDWriteNumberSubstitution>
where P0: Param<PCWSTR>, P1: Param<BOOL>,

pub unsafe fn CreateGlyphRunAnalysis( &self, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: Option<*const DWRITE_MATRIX>, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32, ) -> Result<IDWriteGlyphRunAnalysis>

Trait Implementations§

§

impl CanInto<IDWriteFactory> for IDWriteFactory1

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory2

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory3

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory4

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory5

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory6

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory7

§

const QUERY: bool = false

§

impl CanInto<IDWriteFactory1> for IDWriteFactory8

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for IDWriteFactory1

§

const QUERY: bool = false

§

impl Clone for IDWriteFactory1

§

fn clone(&self) -> IDWriteFactory1

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for IDWriteFactory1

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Deref for IDWriteFactory1

§

type Target = IDWriteFactory

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl From<&IDWriteFactory1> for &IDWriteFactory

§

fn from(value: &IDWriteFactory1) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory1> for &IUnknown

§

fn from(value: &IDWriteFactory1) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory2> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory2) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory3> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory3) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory4> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory4) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory5> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory5) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory6> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory6) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory7> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory7) -> Self

Converts to this type from the input type.
§

impl From<&IDWriteFactory8> for &IDWriteFactory1

§

fn from(value: &IDWriteFactory8) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory1> for IDWriteFactory

§

fn from(value: IDWriteFactory1) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory1> for IUnknown

§

fn from(value: IDWriteFactory1) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory2> for IDWriteFactory1

§

fn from(value: IDWriteFactory2) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory3> for IDWriteFactory1

§

fn from(value: IDWriteFactory3) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory4> for IDWriteFactory1

§

fn from(value: IDWriteFactory4) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory5> for IDWriteFactory1

§

fn from(value: IDWriteFactory5) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory6> for IDWriteFactory1

§

fn from(value: IDWriteFactory6) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory7> for IDWriteFactory1

§

fn from(value: IDWriteFactory7) -> Self

Converts to this type from the input type.
§

impl From<IDWriteFactory8> for IDWriteFactory1

§

fn from(value: IDWriteFactory8) -> Self

Converts to this type from the input type.
§

impl Interface for IDWriteFactory1

§

const IID: GUID = _

The GUID associated with the interface.
§

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

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

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>,

This casts the given COM interface to [&dyn Any]. Read more
§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. Read more
§

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>,

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>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

fn to_ref(&self) -> InterfaceRef<'_, Self>

Creates an InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically, and eliminates the need for dynamic reference count adjustments (AddRef/Release).
§

impl PartialEq for IDWriteFactory1

§

fn eq(&self, other: &IDWriteFactory1) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IDWriteFactory1

§

impl Send for IDWriteFactory1

§

impl StructuralPartialEq for IDWriteFactory1

§

impl Sync for IDWriteFactory1

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.