Struct windows::Win32::Graphics::Direct2D::ID2D1Factory
#[repr(transparent)]pub struct ID2D1Factory(_);
Expand description
Required features: "Win32_Graphics_Direct2D"
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 CreateRectangleGeometry(
&self,
rectangle: *const D2D_RECT_F
) -> Result<ID2D1RectangleGeometry>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreateRoundedRectangleGeometry(
&self,
roundedrectangle: *const D2D1_ROUNDED_RECT
) -> Result<ID2D1RoundedRectangleGeometry>
pub unsafe fn CreateRoundedRectangleGeometry(
&self,
roundedrectangle: *const D2D1_ROUNDED_RECT
) -> Result<ID2D1RoundedRectangleGeometry>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreateEllipseGeometry(
&self,
ellipse: *const D2D1_ELLIPSE
) -> Result<ID2D1EllipseGeometry>
pub unsafe fn CreateEllipseGeometry(
&self,
ellipse: *const D2D1_ELLIPSE
) -> Result<ID2D1EllipseGeometry>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreateGeometryGroup(
&self,
fillmode: D2D1_FILL_MODE,
geometries: &[Option<ID2D1Geometry>]
) -> Result<ID2D1GeometryGroup>
pub unsafe fn CreateGeometryGroup(
&self,
fillmode: D2D1_FILL_MODE,
geometries: &[Option<ID2D1Geometry>]
) -> Result<ID2D1GeometryGroup>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreatePathGeometry(&self) -> Result<ID2D1PathGeometry>
pub unsafe fn CreateStrokeStyle(
&self,
strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES,
dashes: Option<&[f32]>
) -> Result<ID2D1StrokeStyle>
Trait Implementations§
§impl Clone for ID2D1Factory
impl Clone for ID2D1Factory
§impl Debug for ID2D1Factory
impl Debug for ID2D1Factory
§impl<'a> From<&'a ID2D1Factory> for &'a IUnknown
impl<'a> From<&'a ID2D1Factory> for &'a IUnknown
§fn from(value: &'a ID2D1Factory) -> Self
fn from(value: &'a ID2D1Factory) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory1> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory1> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory1) -> Self
fn from(value: &'a ID2D1Factory1) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory2> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory2> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory2) -> Self
fn from(value: &'a ID2D1Factory2) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory3> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory3> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory3) -> Self
fn from(value: &'a ID2D1Factory3) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory4> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory4> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory4) -> Self
fn from(value: &'a ID2D1Factory4) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory5> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory5> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory5) -> Self
fn from(value: &'a ID2D1Factory5) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory6> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory6> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory6) -> Self
fn from(value: &'a ID2D1Factory6) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Factory7> for &'a ID2D1Factory
impl<'a> From<&'a ID2D1Factory7> for &'a ID2D1Factory
§fn from(value: &'a ID2D1Factory7) -> Self
fn from(value: &'a ID2D1Factory7) -> 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<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 Interface for ID2D1Factory
impl Interface for ID2D1Factory
§impl PartialEq<ID2D1Factory> for ID2D1Factory
impl PartialEq<ID2D1Factory> for ID2D1Factory
§impl Vtable for ID2D1Factory
impl Vtable for ID2D1Factory
type Vtable = ID2D1Factory_Vtbl
§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.