Trait windows::Win32::Graphics::Direct2D::ID2D1CommandSink_Impl

pub trait ID2D1CommandSink_Impl: Sized {
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: Option<&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: Option<&ID2D1Brush>, measuringmode: DWRITE_MEASURING_MODE, ) -> Result<()>; fn DrawLine( &self, point0: &D2D_POINT_2F, point1: &D2D_POINT_2F, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle>, ) -> Result<()>; fn DrawGeometry( &self, geometry: Option<&ID2D1Geometry>, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle>, ) -> Result<()>; fn DrawRectangle( &self, rect: *const D2D_RECT_F, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle>, ) -> Result<()>; fn DrawBitmap( &self, bitmap: Option<&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: Option<&ID2D1Image>, targetoffset: *const D2D_POINT_2F, imagerectangle: *const D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: D2D1_COMPOSITE_MODE, ) -> Result<()>; fn DrawGdiMetafile( &self, gdimetafile: Option<&ID2D1GdiMetafile>, targetoffset: *const D2D_POINT_2F, ) -> Result<()>; fn FillMesh( &self, mesh: Option<&ID2D1Mesh>, brush: Option<&ID2D1Brush>, ) -> Result<()>; fn FillOpacityMask( &self, opacitymask: Option<&ID2D1Bitmap>, brush: Option<&ID2D1Brush>, destinationrectangle: *const D2D_RECT_F, sourcerectangle: *const D2D_RECT_F, ) -> Result<()>; fn FillGeometry( &self, geometry: Option<&ID2D1Geometry>, brush: Option<&ID2D1Brush>, opacitybrush: Option<&ID2D1Brush>, ) -> Result<()>; fn FillRectangle( &self, rect: *const D2D_RECT_F, brush: Option<&ID2D1Brush>, ) -> Result<()>; fn PushAxisAlignedClip( &self, cliprect: *const D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE, ) -> Result<()>; fn PushLayer( &self, layerparameters1: *const D2D1_LAYER_PARAMETERS1, layer: Option<&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: Option<&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: Option<&ID2D1Brush>, measuringmode: DWRITE_MEASURING_MODE, ) -> Result<()>

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

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

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

fn DrawBitmap( &self, bitmap: Option<&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: Option<&ID2D1Image>, targetoffset: *const D2D_POINT_2F, imagerectangle: *const D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: D2D1_COMPOSITE_MODE, ) -> Result<()>

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

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

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

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

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

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

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

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

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

Object Safety§

This trait is not object safe.

Implementors§