Trait windows::Win32::Graphics::Direct2D::ID2D1Factory_Impl
pub trait ID2D1Factory_Impl: Sized {
Show 14 methods
// Required methods
fn ReloadSystemMetrics(&self) -> Result<()>;
fn GetDesktopDpi(&self, dpix: *mut f32, dpiy: *mut f32);
fn CreateRectangleGeometry(
&self,
rectangle: *const D2D_RECT_F,
) -> Result<ID2D1RectangleGeometry>;
fn CreateRoundedRectangleGeometry(
&self,
roundedrectangle: *const D2D1_ROUNDED_RECT,
) -> Result<ID2D1RoundedRectangleGeometry>;
fn CreateEllipseGeometry(
&self,
ellipse: *const D2D1_ELLIPSE,
) -> Result<ID2D1EllipseGeometry>;
fn CreateGeometryGroup(
&self,
fillmode: D2D1_FILL_MODE,
geometries: *const Option<ID2D1Geometry>,
geometriescount: u32,
) -> Result<ID2D1GeometryGroup>;
fn CreateTransformedGeometry(
&self,
sourcegeometry: Option<&ID2D1Geometry>,
transform: *const Matrix3x2,
) -> Result<ID2D1TransformedGeometry>;
fn CreatePathGeometry(&self) -> Result<ID2D1PathGeometry>;
fn CreateStrokeStyle(
&self,
strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES,
dashes: *const f32,
dashescount: u32,
) -> Result<ID2D1StrokeStyle>;
fn CreateDrawingStateBlock(
&self,
drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION,
textrenderingparams: Option<&IDWriteRenderingParams>,
) -> Result<ID2D1DrawingStateBlock>;
fn CreateWicBitmapRenderTarget(
&self,
target: Option<&IWICBitmap>,
rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES,
) -> Result<ID2D1RenderTarget>;
fn CreateHwndRenderTarget(
&self,
rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES,
hwndrendertargetproperties: *const D2D1_HWND_RENDER_TARGET_PROPERTIES,
) -> Result<ID2D1HwndRenderTarget>;
fn CreateDxgiSurfaceRenderTarget(
&self,
dxgisurface: Option<&IDXGISurface>,
rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES,
) -> Result<ID2D1RenderTarget>;
fn CreateDCRenderTarget(
&self,
rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES,
) -> Result<ID2D1DCRenderTarget>;
}
Required Methods§
fn ReloadSystemMetrics(&self) -> Result<()>
fn GetDesktopDpi(&self, dpix: *mut f32, dpiy: *mut f32)
fn CreateRectangleGeometry( &self, rectangle: *const D2D_RECT_F, ) -> Result<ID2D1RectangleGeometry>
fn CreateRoundedRectangleGeometry( &self, roundedrectangle: *const D2D1_ROUNDED_RECT, ) -> Result<ID2D1RoundedRectangleGeometry>
fn CreateEllipseGeometry( &self, ellipse: *const D2D1_ELLIPSE, ) -> Result<ID2D1EllipseGeometry>
fn CreateGeometryGroup( &self, fillmode: D2D1_FILL_MODE, geometries: *const Option<ID2D1Geometry>, geometriescount: u32, ) -> Result<ID2D1GeometryGroup>
fn CreateTransformedGeometry( &self, sourcegeometry: Option<&ID2D1Geometry>, transform: *const Matrix3x2, ) -> Result<ID2D1TransformedGeometry>
fn CreatePathGeometry(&self) -> Result<ID2D1PathGeometry>
fn CreateStrokeStyle( &self, strokestyleproperties: *const D2D1_STROKE_STYLE_PROPERTIES, dashes: *const f32, dashescount: u32, ) -> Result<ID2D1StrokeStyle>
fn CreateDrawingStateBlock( &self, drawingstatedescription: *const D2D1_DRAWING_STATE_DESCRIPTION, textrenderingparams: Option<&IDWriteRenderingParams>, ) -> Result<ID2D1DrawingStateBlock>
fn CreateWicBitmapRenderTarget( &self, target: Option<&IWICBitmap>, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1RenderTarget>
fn CreateHwndRenderTarget( &self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, hwndrendertargetproperties: *const D2D1_HWND_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1HwndRenderTarget>
fn CreateDxgiSurfaceRenderTarget( &self, dxgisurface: Option<&IDXGISurface>, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1RenderTarget>
fn CreateDCRenderTarget( &self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> Result<ID2D1DCRenderTarget>
Object Safety§
This trait is not object safe.