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