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

Implementations§

§

impl ID2D1Factory3

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: IntoParam<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: IntoParam<IDWriteRenderingParams>,

pub unsafe fn CreateWicBitmapRenderTarget<P0>( &self, target: P0, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES ) -> Result<ID2D1RenderTarget>
where P0: IntoParam<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: IntoParam<IDXGISurface>,

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

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

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

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

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

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

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

pub unsafe fn RegisterEffectFromString<P0>( &self, classid: *const GUID, propertyxml: P0, bindings: Option<&[D2D1_PROPERTY_BINDING]>, effectfactory: PD2D1_EFFECT_FACTORY ) -> Result<()>
where P0: IntoParam<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>

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

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

Trait Implementations§

§

impl Clone for ID2D1Factory3

§

fn clone(&self) -> ID2D1Factory3

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 ID2D1Factory3

§

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

Formats the value using the given formatter. Read more
§

impl From<&ID2D1Factory3> for &ID2D1Factory

§

fn from(value: &ID2D1Factory3) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory3> for &ID2D1Factory1

§

fn from(value: &ID2D1Factory3) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory3> for &ID2D1Factory2

§

fn from(value: &ID2D1Factory3) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory3> for &IUnknown

§

fn from(value: &ID2D1Factory3) -> 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<&ID2D1Factory5> for &ID2D1Factory3

§

fn from(value: &ID2D1Factory5) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory6> for &ID2D1Factory3

§

fn from(value: &ID2D1Factory6) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory7> for &ID2D1Factory3

§

fn from(value: &ID2D1Factory7) -> Self

Converts to this type from the input type.
§

impl From<&ID2D1Factory8> for &ID2D1Factory3

§

fn from(value: &ID2D1Factory8) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory3> for ID2D1Factory

§

fn from(value: ID2D1Factory3) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory3> for ID2D1Factory1

§

fn from(value: ID2D1Factory3) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory3> for ID2D1Factory2

§

fn from(value: ID2D1Factory3) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory3> for IUnknown

§

fn from(value: ID2D1Factory3) -> 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<ID2D1Factory5> for ID2D1Factory3

§

fn from(value: ID2D1Factory5) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory6> for ID2D1Factory3

§

fn from(value: ID2D1Factory6) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory7> for ID2D1Factory3

§

fn from(value: ID2D1Factory7) -> Self

Converts to this type from the input type.
§

impl From<ID2D1Factory8> for ID2D1Factory3

§

fn from(value: ID2D1Factory8) -> Self

Converts to this type from the input type.
§

impl Interface for ID2D1Factory3

§

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

impl PartialEq for ID2D1Factory3

§

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

§

impl Send for ID2D1Factory3

§

impl StructuralPartialEq for ID2D1Factory3

§

impl Sync for ID2D1Factory3

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