windows::Win32::Graphics::Direct2D

Trait ID2D1CommandSink_Impl

pub trait ID2D1CommandSink_Impl: IUnknownImpl {
Show 25 methods // Required methods fn BeginDraw(&self) -> Result<()>; fn EndDraw(&self) -> Result<()>; fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE) -> Result<()>; fn SetTags(&self, tag1: u64, tag2: u64) -> Result<()>; fn SetTextAntialiasMode( &self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE, ) -> Result<()>; fn SetTextRenderingParams( &self, textrenderingparams: Ref<'_, IDWriteRenderingParams>, ) -> Result<()>; fn SetTransform(&self, transform: *const Matrix3x2) -> Result<()>; fn SetPrimitiveBlend( &self, primitiveblend: D2D1_PRIMITIVE_BLEND, ) -> Result<()>; fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE) -> Result<()>; fn Clear(&self, color: *const D2D1_COLOR_F) -> Result<()>; fn DrawGlyphRun( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: Ref<'_, ID2D1Brush>, measuringmode: DWRITE_MEASURING_MODE, ) -> Result<()>; fn DrawLine( &self, point0: &D2D_POINT_2F, point1: &D2D_POINT_2F, brush: Ref<'_, ID2D1Brush>, strokewidth: f32, strokestyle: Ref<'_, ID2D1StrokeStyle>, ) -> Result<()>; fn DrawGeometry( &self, geometry: Ref<'_, ID2D1Geometry>, brush: Ref<'_, ID2D1Brush>, strokewidth: f32, strokestyle: Ref<'_, ID2D1StrokeStyle>, ) -> Result<()>; fn DrawRectangle( &self, rect: *const D2D_RECT_F, brush: Ref<'_, ID2D1Brush>, strokewidth: f32, strokestyle: Ref<'_, ID2D1StrokeStyle>, ) -> Result<()>; fn DrawBitmap( &self, bitmap: Ref<'_, ID2D1Bitmap>, destinationrectangle: *const D2D_RECT_F, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: *const D2D_RECT_F, perspectivetransform: *const D2D_MATRIX_4X4_F, ) -> Result<()>; fn DrawImage( &self, image: Ref<'_, ID2D1Image>, targetoffset: *const D2D_POINT_2F, imagerectangle: *const D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: D2D1_COMPOSITE_MODE, ) -> Result<()>; fn DrawGdiMetafile( &self, gdimetafile: Ref<'_, ID2D1GdiMetafile>, targetoffset: *const D2D_POINT_2F, ) -> Result<()>; fn FillMesh( &self, mesh: Ref<'_, ID2D1Mesh>, brush: Ref<'_, ID2D1Brush>, ) -> Result<()>; fn FillOpacityMask( &self, opacitymask: Ref<'_, ID2D1Bitmap>, brush: Ref<'_, ID2D1Brush>, destinationrectangle: *const D2D_RECT_F, sourcerectangle: *const D2D_RECT_F, ) -> Result<()>; fn FillGeometry( &self, geometry: Ref<'_, ID2D1Geometry>, brush: Ref<'_, ID2D1Brush>, opacitybrush: Ref<'_, ID2D1Brush>, ) -> Result<()>; fn FillRectangle( &self, rect: *const D2D_RECT_F, brush: Ref<'_, ID2D1Brush>, ) -> Result<()>; fn PushAxisAlignedClip( &self, cliprect: *const D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE, ) -> Result<()>; fn PushLayer( &self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: Ref<'_, ID2D1Layer>, ) -> Result<()>; fn PopAxisAlignedClip(&self) -> Result<()>; fn PopLayer(&self) -> Result<()>;
}

Required Methods§

fn BeginDraw(&self) -> Result<()>

fn EndDraw(&self) -> Result<()>

fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE) -> Result<()>

fn SetTags(&self, tag1: u64, tag2: u64) -> Result<()>

fn SetTextAntialiasMode( &self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE, ) -> Result<()>

fn SetTextRenderingParams( &self, textrenderingparams: Ref<'_, IDWriteRenderingParams>, ) -> Result<()>

fn SetTransform(&self, transform: *const Matrix3x2) -> Result<()>

fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND) -> Result<()>

fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE) -> Result<()>

fn Clear(&self, color: *const D2D1_COLOR_F) -> Result<()>

fn DrawGlyphRun( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, foregroundbrush: Ref<'_, ID2D1Brush>, measuringmode: DWRITE_MEASURING_MODE, ) -> Result<()>

fn DrawLine( &self, point0: &D2D_POINT_2F, point1: &D2D_POINT_2F, brush: Ref<'_, ID2D1Brush>, strokewidth: f32, strokestyle: Ref<'_, ID2D1StrokeStyle>, ) -> Result<()>

fn DrawGeometry( &self, geometry: Ref<'_, ID2D1Geometry>, brush: Ref<'_, ID2D1Brush>, strokewidth: f32, strokestyle: Ref<'_, ID2D1StrokeStyle>, ) -> Result<()>

fn DrawRectangle( &self, rect: *const D2D_RECT_F, brush: Ref<'_, ID2D1Brush>, strokewidth: f32, strokestyle: Ref<'_, ID2D1StrokeStyle>, ) -> Result<()>

fn DrawBitmap( &self, bitmap: Ref<'_, ID2D1Bitmap>, destinationrectangle: *const D2D_RECT_F, opacity: f32, interpolationmode: D2D1_INTERPOLATION_MODE, sourcerectangle: *const D2D_RECT_F, perspectivetransform: *const D2D_MATRIX_4X4_F, ) -> Result<()>

fn DrawImage( &self, image: Ref<'_, ID2D1Image>, targetoffset: *const D2D_POINT_2F, imagerectangle: *const D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: D2D1_COMPOSITE_MODE, ) -> Result<()>

fn DrawGdiMetafile( &self, gdimetafile: Ref<'_, ID2D1GdiMetafile>, targetoffset: *const D2D_POINT_2F, ) -> Result<()>

fn FillMesh( &self, mesh: Ref<'_, ID2D1Mesh>, brush: Ref<'_, ID2D1Brush>, ) -> Result<()>

fn FillOpacityMask( &self, opacitymask: Ref<'_, ID2D1Bitmap>, brush: Ref<'_, ID2D1Brush>, destinationrectangle: *const D2D_RECT_F, sourcerectangle: *const D2D_RECT_F, ) -> Result<()>

fn FillGeometry( &self, geometry: Ref<'_, ID2D1Geometry>, brush: Ref<'_, ID2D1Brush>, opacitybrush: Ref<'_, ID2D1Brush>, ) -> Result<()>

fn FillRectangle( &self, rect: *const D2D_RECT_F, brush: Ref<'_, ID2D1Brush>, ) -> Result<()>

fn PushAxisAlignedClip( &self, cliprect: *const D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE, ) -> Result<()>

fn PushLayer( &self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: Ref<'_, ID2D1Layer>, ) -> Result<()>

fn PopAxisAlignedClip(&self) -> Result<()>

fn PopLayer(&self) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§