Struct windows::Win32::Graphics::Direct2D::ID2D1Factory4

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

Implementations§

§

impl ID2D1Factory4

pub unsafe fn CreateDevice<P0>(&self, dxgidevice: P0) -> Result<ID2D1Device3>
where P0: Param<IDXGIDevice>,

Methods from Deref<Target = ID2D1Factory3>§

pub unsafe fn CreateDevice<P0>(&self, dxgidevice: P0) -> Result<ID2D1Device2>
where P0: Param<IDXGIDevice>,

Methods from Deref<Target = ID2D1Factory2>§

pub unsafe fn CreateDevice<P0>(&self, dxgidevice: P0) -> Result<ID2D1Device1>
where P0: Param<IDXGIDevice>,

Methods from Deref<Target = ID2D1Factory1>§

pub unsafe fn CreateDevice<P0>(&self, dxgidevice: P0) -> Result<ID2D1Device>
where P0: Param<IDXGIDevice>,

pub unsafe fn CreateStrokeStyle( &self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES1, dashes: Option<&[f32]>, ) -> Result<ID2D1StrokeStyle1>

pub unsafe fn CreatePathGeometry(&self) -> Result<ID2D1PathGeometry1>

pub unsafe fn CreateDrawingStateBlock<P0>( &self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION1>, textrenderingparams: P0, ) -> Result<ID2D1DrawingStateBlock1>
where P0: Param<IDWriteRenderingParams>,

pub unsafe fn CreateGdiMetafile<P0>( &self, metafilestream: P0, ) -> Result<ID2D1GdiMetafile>
where P0: Param<IStream>,

pub unsafe fn RegisterEffectFromStream<P0>( &self, classid: *const GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY, ) -> Result<()>
where P0: Param<IStream>,

pub unsafe fn RegisterEffectFromString<P0>( &self, classid: *const GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY, ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn UnregisterEffect(&self, classid: *const GUID) -> Result<()>

pub unsafe fn GetRegisteredEffects( &self, effects: Option<&mut [GUID]>, effectsreturned: Option<*mut u32>, effectsregistered: Option<*mut u32>, ) -> Result<()>

pub unsafe fn GetEffectProperties( &self, effectid: *const GUID, ) -> Result<ID2D1Properties>

Methods from Deref<Target = ID2D1Factory>§

pub unsafe fn ReloadSystemMetrics(&self) -> Result<()>

pub unsafe fn GetDesktopDpi(&self, dpix: *mut f32, dpiy: *mut f32)

pub unsafe fn CreateRectangleGeometry( &self, rectangle: *const D2D_RECT_F, ) -> Result<ID2D1RectangleGeometry>

pub unsafe fn CreateRoundedRectangleGeometry( &self, roundedrectangle: *const D2D1_ROUNDED_RECT, ) -> Result<ID2D1RoundedRectangleGeometry>

pub unsafe fn CreateEllipseGeometry( &self, ellipse: *const D2D1_ELLIPSE, ) -> Result<ID2D1EllipseGeometry>

pub unsafe fn CreateGeometryGroup( &self, fillmode: D2D1_FILL_MODE, geometries: &[Option<ID2D1Geometry>], ) -> Result<ID2D1GeometryGroup>

pub unsafe fn CreateTransformedGeometry<P0>( &self, sourcegeometry: P0, transform: *const Matrix3x2, ) -> Result<ID2D1TransformedGeometry>
where P0: Param<ID2D1Geometry>,

pub unsafe fn CreatePathGeometry(&self) -> Result<ID2D1PathGeometry>

pub unsafe fn CreateStrokeStyle( &self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES, dashes: Option<&[f32]>, ) -> Result<ID2D1StrokeStyle>

pub unsafe fn CreateDrawingStateBlock<P0>( &self, drawingstatedescription: Option<*const D2D1_DRAWING_STATE_DESCRIPTION>, textrenderingparams: P0, ) -> Result<ID2D1DrawingStateBlock>
where P0: Param<IDWriteRenderingParams>,

pub unsafe fn CreateWicBitmapRenderTarget<P0>( &self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1RenderTarget>
where P0: Param<IWICBitmap>,

pub unsafe fn CreateHwndRenderTarget( &self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, hwndrendertargetproperties: *const D2D1_HWND_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1HwndRenderTarget>

pub unsafe fn CreateDxgiSurfaceRenderTarget<P0>( &self, dxgisurface: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1RenderTarget>
where P0: Param<IDXGISurface>,

pub unsafe fn CreateDCRenderTarget( &self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1DCRenderTarget>

Trait Implementations§

§

impl CanInto<ID2D1Factory> for ID2D1Factory4

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory1> for ID2D1Factory4

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory2> for ID2D1Factory4

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory3> for ID2D1Factory4

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory4> for ID2D1Factory5

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory4> for ID2D1Factory6

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory4> for ID2D1Factory7

§

const QUERY: bool = false

§

impl CanInto<ID2D1Factory4> for ID2D1Factory8

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for ID2D1Factory4

§

const QUERY: bool = false

§

impl Clone for ID2D1Factory4

§

fn clone(&self) -> ID2D1Factory4

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 ID2D1Factory4

§

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

Formats the value using the given formatter. Read more
§

impl Deref for ID2D1Factory4

§

type Target = ID2D1Factory3

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl From<&ID2D1Factory4> for &ID2D1Factory

§

fn from(value: &ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory4> for &ID2D1Factory1

§

fn from(value: &ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory4> for &ID2D1Factory2

§

fn from(value: &ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory4> for &ID2D1Factory3

§

fn from(value: &ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory4> for &IUnknown

§

fn from(value: &ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory5> for &ID2D1Factory4

§

fn from(value: &ID2D1Factory5) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory6> for &ID2D1Factory4

§

fn from(value: &ID2D1Factory6) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory7> for &ID2D1Factory4

§

fn from(value: &ID2D1Factory7) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory8> for &ID2D1Factory4

§

fn from(value: &ID2D1Factory8) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory4> for ID2D1Factory

§

fn from(value: ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory4> for ID2D1Factory1

§

fn from(value: ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory4> for ID2D1Factory2

§

fn from(value: ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory4> for ID2D1Factory3

§

fn from(value: ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory4> for IUnknown

§

fn from(value: ID2D1Factory4) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory5> for ID2D1Factory4

§

fn from(value: ID2D1Factory5) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory6> for ID2D1Factory4

§

fn from(value: ID2D1Factory6) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory7> for ID2D1Factory4

§

fn from(value: ID2D1Factory7) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory8> for ID2D1Factory4

§

fn from(value: ID2D1Factory8) -> Self

Converts to this type from the input type.
§

impl Interface for ID2D1Factory4

§

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 ID2D1Factory4

§

fn eq(&self, other: &ID2D1Factory4) -> 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 ID2D1Factory4

§

impl Send for ID2D1Factory4

§

impl StructuralPartialEq for ID2D1Factory4

§

impl Sync for ID2D1Factory4

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.