pub trait ID2D1DeviceContext_Impl: Sized + ID2D1RenderTarget_Impl {
Show 35 methods // Required methods fn CreateBitmap( &self, size: &D2D_SIZE_U, sourcedata: *const c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, ) -> Result<ID2D1Bitmap1>; fn CreateBitmapFromWicBitmap( &self, wicbitmapsource: Option<&IWICBitmapSource>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, ) -> Result<ID2D1Bitmap1>; fn CreateColorContext( &self, space: D2D1_COLOR_SPACE, profile: *const u8, profilesize: u32, ) -> Result<ID2D1ColorContext>; fn CreateColorContextFromFilename( &self, filename: &PCWSTR, ) -> Result<ID2D1ColorContext>; fn CreateColorContextFromWicColorContext( &self, wiccolorcontext: Option<&IWICColorContext>, ) -> Result<ID2D1ColorContext>; fn CreateBitmapFromDxgiSurface( &self, surface: Option<&IDXGISurface>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, ) -> Result<ID2D1Bitmap1>; fn CreateEffect(&self, effectid: *const GUID) -> Result<ID2D1Effect>; fn CreateGradientStopCollection( &self, straightalphagradientstops: *const D2D1_GRADIENT_STOP, straightalphagradientstopscount: u32, preinterpolationspace: D2D1_COLOR_SPACE, postinterpolationspace: D2D1_COLOR_SPACE, bufferprecision: D2D1_BUFFER_PRECISION, extendmode: D2D1_EXTEND_MODE, colorinterpolationmode: D2D1_COLOR_INTERPOLATION_MODE, ) -> Result<ID2D1GradientStopCollection1>; fn CreateImageBrush( &self, image: Option<&ID2D1Image>, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, ) -> Result<ID2D1ImageBrush>; fn CreateBitmapBrush( &self, bitmap: Option<&ID2D1Bitmap>, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushproperties: *const D2D1_BRUSH_PROPERTIES, ) -> Result<ID2D1BitmapBrush1>; fn CreateCommandList(&self) -> Result<ID2D1CommandList>; fn IsDxgiFormatSupported(&self, format: DXGI_FORMAT) -> BOOL; fn IsBufferPrecisionSupported( &self, bufferprecision: D2D1_BUFFER_PRECISION, ) -> BOOL; fn GetImageLocalBounds( &self, image: Option<&ID2D1Image>, ) -> Result<D2D_RECT_F>; fn GetImageWorldBounds( &self, image: Option<&ID2D1Image>, ) -> Result<D2D_RECT_F>; fn GetGlyphRunWorldBounds( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, ) -> Result<D2D_RECT_F>; fn GetDevice(&self, device: *mut Option<ID2D1Device>); fn SetTarget(&self, image: Option<&ID2D1Image>); fn GetTarget(&self, image: *mut Option<ID2D1Image>); fn SetRenderingControls( &self, renderingcontrols: *const D2D1_RENDERING_CONTROLS, ); fn GetRenderingControls( &self, renderingcontrols: *mut D2D1_RENDERING_CONTROLS, ); fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND); fn GetPrimitiveBlend(&self) -> D2D1_PRIMITIVE_BLEND; fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE); fn GetUnitMode(&self) -> D2D1_UNIT_MODE; 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, ); fn DrawImage( &self, image: Option<&ID2D1Image>, targetoffset: *const D2D_POINT_2F, imagerectangle: *const D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: D2D1_COMPOSITE_MODE, ); fn DrawGdiMetafile( &self, gdimetafile: Option<&ID2D1GdiMetafile>, targetoffset: *const D2D_POINT_2F, ); 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, ); fn PushLayer( &self, layerparameters: *const D2D1_LAYER_PARAMETERS1, layer: Option<&ID2D1Layer>, ); fn InvalidateEffectInputRectangle( &self, effect: Option<&ID2D1Effect>, input: u32, inputrectangle: *const D2D_RECT_F, ) -> Result<()>; fn GetEffectInvalidRectangleCount( &self, effect: Option<&ID2D1Effect>, ) -> Result<u32>; fn GetEffectInvalidRectangles( &self, effect: Option<&ID2D1Effect>, rectangles: *mut D2D_RECT_F, rectanglescount: u32, ) -> Result<()>; fn GetEffectRequiredInputRectangles( &self, rendereffect: Option<&ID2D1Effect>, renderimagerectangle: *const D2D_RECT_F, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut D2D_RECT_F, inputcount: u32, ) -> Result<()>; fn FillOpacityMask( &self, opacitymask: Option<&ID2D1Bitmap>, brush: Option<&ID2D1Brush>, destinationrectangle: *const D2D_RECT_F, sourcerectangle: *const D2D_RECT_F, );
}

Required Methods§

fn CreateBitmap( &self, size: &D2D_SIZE_U, sourcedata: *const c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, ) -> Result<ID2D1Bitmap1>

fn CreateBitmapFromWicBitmap( &self, wicbitmapsource: Option<&IWICBitmapSource>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, ) -> Result<ID2D1Bitmap1>

fn CreateColorContext( &self, space: D2D1_COLOR_SPACE, profile: *const u8, profilesize: u32, ) -> Result<ID2D1ColorContext>

fn CreateColorContextFromFilename( &self, filename: &PCWSTR, ) -> Result<ID2D1ColorContext>

fn CreateColorContextFromWicColorContext( &self, wiccolorcontext: Option<&IWICColorContext>, ) -> Result<ID2D1ColorContext>

fn CreateBitmapFromDxgiSurface( &self, surface: Option<&IDXGISurface>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES1, ) -> Result<ID2D1Bitmap1>

fn CreateEffect(&self, effectid: *const GUID) -> Result<ID2D1Effect>

fn CreateGradientStopCollection( &self, straightalphagradientstops: *const D2D1_GRADIENT_STOP, straightalphagradientstopscount: u32, preinterpolationspace: D2D1_COLOR_SPACE, postinterpolationspace: D2D1_COLOR_SPACE, bufferprecision: D2D1_BUFFER_PRECISION, extendmode: D2D1_EXTEND_MODE, colorinterpolationmode: D2D1_COLOR_INTERPOLATION_MODE, ) -> Result<ID2D1GradientStopCollection1>

fn CreateImageBrush( &self, image: Option<&ID2D1Image>, imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, ) -> Result<ID2D1ImageBrush>

fn CreateBitmapBrush( &self, bitmap: Option<&ID2D1Bitmap>, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushproperties: *const D2D1_BRUSH_PROPERTIES, ) -> Result<ID2D1BitmapBrush1>

fn CreateCommandList(&self) -> Result<ID2D1CommandList>

fn IsDxgiFormatSupported(&self, format: DXGI_FORMAT) -> BOOL

fn IsBufferPrecisionSupported( &self, bufferprecision: D2D1_BUFFER_PRECISION, ) -> BOOL

fn GetImageLocalBounds(&self, image: Option<&ID2D1Image>) -> Result<D2D_RECT_F>

fn GetImageWorldBounds(&self, image: Option<&ID2D1Image>) -> Result<D2D_RECT_F>

fn GetGlyphRunWorldBounds( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, measuringmode: DWRITE_MEASURING_MODE, ) -> Result<D2D_RECT_F>

fn GetDevice(&self, device: *mut Option<ID2D1Device>)

fn SetTarget(&self, image: Option<&ID2D1Image>)

fn GetTarget(&self, image: *mut Option<ID2D1Image>)

fn SetRenderingControls( &self, renderingcontrols: *const D2D1_RENDERING_CONTROLS, )

fn GetRenderingControls(&self, renderingcontrols: *mut D2D1_RENDERING_CONTROLS)

fn SetPrimitiveBlend(&self, primitiveblend: D2D1_PRIMITIVE_BLEND)

fn GetPrimitiveBlend(&self) -> D2D1_PRIMITIVE_BLEND

fn SetUnitMode(&self, unitmode: D2D1_UNIT_MODE)

fn GetUnitMode(&self) -> D2D1_UNIT_MODE

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, )

fn DrawImage( &self, image: Option<&ID2D1Image>, targetoffset: *const D2D_POINT_2F, imagerectangle: *const D2D_RECT_F, interpolationmode: D2D1_INTERPOLATION_MODE, compositemode: D2D1_COMPOSITE_MODE, )

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

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, )

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

fn InvalidateEffectInputRectangle( &self, effect: Option<&ID2D1Effect>, input: u32, inputrectangle: *const D2D_RECT_F, ) -> Result<()>

fn GetEffectInvalidRectangleCount( &self, effect: Option<&ID2D1Effect>, ) -> Result<u32>

fn GetEffectInvalidRectangles( &self, effect: Option<&ID2D1Effect>, rectangles: *mut D2D_RECT_F, rectanglescount: u32, ) -> Result<()>

fn GetEffectRequiredInputRectangles( &self, rendereffect: Option<&ID2D1Effect>, renderimagerectangle: *const D2D_RECT_F, inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredinputrects: *mut D2D_RECT_F, inputcount: u32, ) -> Result<()>

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

Object Safety§

This trait is not object safe.

Implementors§