Struct windows::Win32::Graphics::Direct2D::ID2D1Factory6
pub struct ID2D1Factory6(/* private fields */);
Implementations§
§impl ID2D1Factory6
impl ID2D1Factory6
pub unsafe fn CreateDevice<P0>(&self, dxgidevice: P0) -> Result<ID2D1Device5>where
P0: Param<IDXGIDevice>,
Methods from Deref<Target = ID2D1Factory5>§
pub unsafe fn CreateDevice<P0>(&self, dxgidevice: P0) -> Result<ID2D1Device4>where
P0: Param<IDXGIDevice>,
Methods from Deref<Target = 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 ID2D1Factory6
impl CanInto<ID2D1Factory> for ID2D1Factory6
§impl CanInto<ID2D1Factory1> for ID2D1Factory6
impl CanInto<ID2D1Factory1> for ID2D1Factory6
§impl CanInto<ID2D1Factory2> for ID2D1Factory6
impl CanInto<ID2D1Factory2> for ID2D1Factory6
§impl CanInto<ID2D1Factory3> for ID2D1Factory6
impl CanInto<ID2D1Factory3> for ID2D1Factory6
§impl CanInto<ID2D1Factory4> for ID2D1Factory6
impl CanInto<ID2D1Factory4> for ID2D1Factory6
§impl CanInto<ID2D1Factory5> for ID2D1Factory6
impl CanInto<ID2D1Factory5> for ID2D1Factory6
§impl CanInto<ID2D1Factory6> for ID2D1Factory7
impl CanInto<ID2D1Factory6> for ID2D1Factory7
§impl CanInto<ID2D1Factory6> for ID2D1Factory8
impl CanInto<ID2D1Factory6> for ID2D1Factory8
§impl CanInto<IUnknown> for ID2D1Factory6
impl CanInto<IUnknown> for ID2D1Factory6
§impl Clone for ID2D1Factory6
impl Clone for ID2D1Factory6
§fn clone(&self) -> ID2D1Factory6
fn clone(&self) -> ID2D1Factory6
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 ID2D1Factory6
impl Debug for ID2D1Factory6
§impl Deref for ID2D1Factory6
impl Deref for ID2D1Factory6
§impl From<&ID2D1Factory6> for &ID2D1Factory
impl From<&ID2D1Factory6> for &ID2D1Factory
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory6> for &ID2D1Factory1
impl From<&ID2D1Factory6> for &ID2D1Factory1
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory6> for &ID2D1Factory2
impl From<&ID2D1Factory6> for &ID2D1Factory2
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory6> for &ID2D1Factory3
impl From<&ID2D1Factory6> for &ID2D1Factory3
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory6> for &ID2D1Factory4
impl From<&ID2D1Factory6> for &ID2D1Factory4
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory6> for &ID2D1Factory5
impl From<&ID2D1Factory6> for &ID2D1Factory5
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory6> for &IUnknown
impl From<&ID2D1Factory6> for &IUnknown
§fn from(value: &ID2D1Factory6) -> Self
fn from(value: &ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory7> for &ID2D1Factory6
impl From<&ID2D1Factory7> for &ID2D1Factory6
§fn from(value: &ID2D1Factory7) -> Self
fn from(value: &ID2D1Factory7) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Factory8> for &ID2D1Factory6
impl From<&ID2D1Factory8> for &ID2D1Factory6
§fn from(value: &ID2D1Factory8) -> Self
fn from(value: &ID2D1Factory8) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for ID2D1Factory
impl From<ID2D1Factory6> for ID2D1Factory
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for ID2D1Factory1
impl From<ID2D1Factory6> for ID2D1Factory1
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for ID2D1Factory2
impl From<ID2D1Factory6> for ID2D1Factory2
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for ID2D1Factory3
impl From<ID2D1Factory6> for ID2D1Factory3
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for ID2D1Factory4
impl From<ID2D1Factory6> for ID2D1Factory4
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for ID2D1Factory5
impl From<ID2D1Factory6> for ID2D1Factory5
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory6> for IUnknown
impl From<ID2D1Factory6> for IUnknown
§fn from(value: ID2D1Factory6) -> Self
fn from(value: ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory7> for ID2D1Factory6
impl From<ID2D1Factory7> for ID2D1Factory6
§fn from(value: ID2D1Factory7) -> Self
fn from(value: ID2D1Factory7) -> Self
Converts to this type from the input type.
§impl From<ID2D1Factory8> for ID2D1Factory6
impl From<ID2D1Factory8> for ID2D1Factory6
§fn from(value: ID2D1Factory8) -> Self
fn from(value: ID2D1Factory8) -> Self
Converts to this type from the input type.
§impl Interface for ID2D1Factory6
impl Interface for ID2D1Factory6
§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 ID2D1Factory6
impl PartialEq for ID2D1Factory6
§fn eq(&self, other: &ID2D1Factory6) -> bool
fn eq(&self, other: &ID2D1Factory6) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ID2D1Factory6
impl Send for ID2D1Factory6
impl StructuralPartialEq for ID2D1Factory6
impl Sync for ID2D1Factory6
Auto Trait Implementations§
impl Freeze for ID2D1Factory6
impl RefUnwindSafe for ID2D1Factory6
impl Unpin for ID2D1Factory6
impl UnwindSafe for ID2D1Factory6
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
)