pub trait ID2D1RenderTarget_Impl: Sized + ID2D1Resource_Impl {
Show 53 methods // Required methods fn CreateBitmap( &self, size: &D2D_SIZE_U, srcdata: *const c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES ) -> Result<ID2D1Bitmap>; fn CreateBitmapFromWicBitmap( &self, wicbitmapsource: Option<&IWICBitmapSource>, bitmapproperties: *const D2D1_BITMAP_PROPERTIES ) -> Result<ID2D1Bitmap>; fn CreateSharedBitmap( &self, riid: *const GUID, data: *mut c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut Option<ID2D1Bitmap> ) -> Result<()>; fn CreateBitmapBrush( &self, bitmap: Option<&ID2D1Bitmap>, bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES ) -> Result<ID2D1BitmapBrush>; fn CreateSolidColorBrush( &self, color: *const D2D1_COLOR_F, brushproperties: *const D2D1_BRUSH_PROPERTIES ) -> Result<ID2D1SolidColorBrush>; fn CreateGradientStopCollection( &self, gradientstops: *const D2D1_GRADIENT_STOP, gradientstopscount: u32, colorinterpolationgamma: D2D1_GAMMA, extendmode: D2D1_EXTEND_MODE ) -> Result<ID2D1GradientStopCollection>; fn CreateLinearGradientBrush( &self, lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: Option<&ID2D1GradientStopCollection> ) -> Result<ID2D1LinearGradientBrush>; fn CreateRadialGradientBrush( &self, radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: Option<&ID2D1GradientStopCollection> ) -> Result<ID2D1RadialGradientBrush>; fn CreateCompatibleRenderTarget( &self, desiredsize: *const D2D_SIZE_F, desiredpixelsize: *const D2D_SIZE_U, desiredformat: *const D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ) -> Result<ID2D1BitmapRenderTarget>; fn CreateLayer(&self, size: *const D2D_SIZE_F) -> Result<ID2D1Layer>; fn CreateMesh(&self) -> Result<ID2D1Mesh>; fn DrawLine( &self, point0: &D2D_POINT_2F, point1: &D2D_POINT_2F, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> ); fn DrawRectangle( &self, rect: *const D2D_RECT_F, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> ); fn FillRectangle(&self, rect: *const D2D_RECT_F, brush: Option<&ID2D1Brush>); fn DrawRoundedRectangle( &self, roundedrect: *const D2D1_ROUNDED_RECT, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> ); fn FillRoundedRectangle( &self, roundedrect: *const D2D1_ROUNDED_RECT, brush: Option<&ID2D1Brush> ); fn DrawEllipse( &self, ellipse: *const D2D1_ELLIPSE, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> ); fn FillEllipse( &self, ellipse: *const D2D1_ELLIPSE, brush: Option<&ID2D1Brush> ); fn DrawGeometry( &self, geometry: Option<&ID2D1Geometry>, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> ); fn FillGeometry( &self, geometry: Option<&ID2D1Geometry>, brush: Option<&ID2D1Brush>, opacitybrush: Option<&ID2D1Brush> ); fn FillMesh(&self, mesh: Option<&ID2D1Mesh>, brush: Option<&ID2D1Brush>); fn FillOpacityMask( &self, opacitymask: Option<&ID2D1Bitmap>, brush: Option<&ID2D1Brush>, content: D2D1_OPACITY_MASK_CONTENT, destinationrectangle: *const D2D_RECT_F, sourcerectangle: *const D2D_RECT_F ); fn DrawBitmap( &self, bitmap: Option<&ID2D1Bitmap>, destinationrectangle: *const D2D_RECT_F, opacity: f32, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, sourcerectangle: *const D2D_RECT_F ); fn DrawText( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, layoutrect: *const D2D_RECT_F, defaultfillbrush: Option<&ID2D1Brush>, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: DWRITE_MEASURING_MODE ); fn DrawTextLayout( &self, origin: &D2D_POINT_2F, textlayout: Option<&IDWriteTextLayout>, defaultfillbrush: Option<&ID2D1Brush>, options: D2D1_DRAW_TEXT_OPTIONS ); fn DrawGlyphRun( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, foregroundbrush: Option<&ID2D1Brush>, measuringmode: DWRITE_MEASURING_MODE ); fn SetTransform(&self, transform: *const Matrix3x2); fn GetTransform(&self, transform: *mut Matrix3x2); fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE); fn GetAntialiasMode(&self) -> D2D1_ANTIALIAS_MODE; fn SetTextAntialiasMode(&self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE); fn GetTextAntialiasMode(&self) -> D2D1_TEXT_ANTIALIAS_MODE; fn SetTextRenderingParams( &self, textrenderingparams: Option<&IDWriteRenderingParams> ); fn GetTextRenderingParams( &self, textrenderingparams: *mut Option<IDWriteRenderingParams> ); fn SetTags(&self, tag1: u64, tag2: u64); fn GetTags(&self, tag1: *mut u64, tag2: *mut u64); fn PushLayer( &self, layerparameters: *const D2D1_LAYER_PARAMETERS, layer: Option<&ID2D1Layer> ); fn PopLayer(&self); fn Flush(&self, tag1: *mut u64, tag2: *mut u64) -> Result<()>; fn SaveDrawingState( &self, drawingstateblock: Option<&ID2D1DrawingStateBlock> ); fn RestoreDrawingState( &self, drawingstateblock: Option<&ID2D1DrawingStateBlock> ); fn PushAxisAlignedClip( &self, cliprect: *const D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE ); fn PopAxisAlignedClip(&self); fn Clear(&self, clearcolor: *const D2D1_COLOR_F); fn BeginDraw(&self); fn EndDraw(&self, tag1: *mut u64, tag2: *mut u64) -> Result<()>; fn GetPixelFormat(&self) -> D2D1_PIXEL_FORMAT; fn SetDpi(&self, dpix: f32, dpiy: f32); fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32); fn GetSize(&self) -> D2D_SIZE_F; fn GetPixelSize(&self) -> D2D_SIZE_U; fn GetMaximumBitmapSize(&self) -> u32; fn IsSupported( &self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES ) -> BOOL;
}

Required Methods§

fn CreateBitmap( &self, size: &D2D_SIZE_U, srcdata: *const c_void, pitch: u32, bitmapproperties: *const D2D1_BITMAP_PROPERTIES ) -> Result<ID2D1Bitmap>

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

fn CreateSharedBitmap( &self, riid: *const GUID, data: *mut c_void, bitmapproperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut Option<ID2D1Bitmap> ) -> Result<()>

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

fn CreateSolidColorBrush( &self, color: *const D2D1_COLOR_F, brushproperties: *const D2D1_BRUSH_PROPERTIES ) -> Result<ID2D1SolidColorBrush>

fn CreateGradientStopCollection( &self, gradientstops: *const D2D1_GRADIENT_STOP, gradientstopscount: u32, colorinterpolationgamma: D2D1_GAMMA, extendmode: D2D1_EXTEND_MODE ) -> Result<ID2D1GradientStopCollection>

fn CreateLinearGradientBrush( &self, lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: Option<&ID2D1GradientStopCollection> ) -> Result<ID2D1LinearGradientBrush>

fn CreateRadialGradientBrush( &self, radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushproperties: *const D2D1_BRUSH_PROPERTIES, gradientstopcollection: Option<&ID2D1GradientStopCollection> ) -> Result<ID2D1RadialGradientBrush>

fn CreateCompatibleRenderTarget( &self, desiredsize: *const D2D_SIZE_F, desiredpixelsize: *const D2D_SIZE_U, desiredformat: *const D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ) -> Result<ID2D1BitmapRenderTarget>

fn CreateLayer(&self, size: *const D2D_SIZE_F) -> Result<ID2D1Layer>

fn CreateMesh(&self) -> Result<ID2D1Mesh>

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

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

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

fn DrawRoundedRectangle( &self, roundedrect: *const D2D1_ROUNDED_RECT, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> )

fn FillRoundedRectangle( &self, roundedrect: *const D2D1_ROUNDED_RECT, brush: Option<&ID2D1Brush> )

fn DrawEllipse( &self, ellipse: *const D2D1_ELLIPSE, brush: Option<&ID2D1Brush>, strokewidth: f32, strokestyle: Option<&ID2D1StrokeStyle> )

fn FillEllipse(&self, ellipse: *const D2D1_ELLIPSE, brush: Option<&ID2D1Brush>)

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

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

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

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

fn DrawBitmap( &self, bitmap: Option<&ID2D1Bitmap>, destinationrectangle: *const D2D_RECT_F, opacity: f32, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, sourcerectangle: *const D2D_RECT_F )

fn DrawText( &self, string: &PCWSTR, stringlength: u32, textformat: Option<&IDWriteTextFormat>, layoutrect: *const D2D_RECT_F, defaultfillbrush: Option<&ID2D1Brush>, options: D2D1_DRAW_TEXT_OPTIONS, measuringmode: DWRITE_MEASURING_MODE )

fn DrawTextLayout( &self, origin: &D2D_POINT_2F, textlayout: Option<&IDWriteTextLayout>, defaultfillbrush: Option<&ID2D1Brush>, options: D2D1_DRAW_TEXT_OPTIONS )

fn DrawGlyphRun( &self, baselineorigin: &D2D_POINT_2F, glyphrun: *const DWRITE_GLYPH_RUN, foregroundbrush: Option<&ID2D1Brush>, measuringmode: DWRITE_MEASURING_MODE )

fn SetTransform(&self, transform: *const Matrix3x2)

fn GetTransform(&self, transform: *mut Matrix3x2)

fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE)

fn GetAntialiasMode(&self) -> D2D1_ANTIALIAS_MODE

fn SetTextAntialiasMode(&self, textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE)

fn GetTextAntialiasMode(&self) -> D2D1_TEXT_ANTIALIAS_MODE

fn SetTextRenderingParams( &self, textrenderingparams: Option<&IDWriteRenderingParams> )

fn GetTextRenderingParams( &self, textrenderingparams: *mut Option<IDWriteRenderingParams> )

fn SetTags(&self, tag1: u64, tag2: u64)

fn GetTags(&self, tag1: *mut u64, tag2: *mut u64)

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

fn PopLayer(&self)

fn Flush(&self, tag1: *mut u64, tag2: *mut u64) -> Result<()>

fn SaveDrawingState(&self, drawingstateblock: Option<&ID2D1DrawingStateBlock>)

fn RestoreDrawingState( &self, drawingstateblock: Option<&ID2D1DrawingStateBlock> )

fn PushAxisAlignedClip( &self, cliprect: *const D2D_RECT_F, antialiasmode: D2D1_ANTIALIAS_MODE )

fn PopAxisAlignedClip(&self)

fn Clear(&self, clearcolor: *const D2D1_COLOR_F)

fn BeginDraw(&self)

fn EndDraw(&self, tag1: *mut u64, tag2: *mut u64) -> Result<()>

fn GetPixelFormat(&self) -> D2D1_PIXEL_FORMAT

fn SetDpi(&self, dpix: f32, dpiy: f32)

fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32)

fn GetSize(&self) -> D2D_SIZE_F

fn GetPixelSize(&self) -> D2D_SIZE_U

fn GetMaximumBitmapSize(&self) -> u32

fn IsSupported( &self, rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES ) -> BOOL

Object Safety§

This trait is not object safe.

Implementors§