#[repr(C)]pub struct ID2D1DeviceContextVtbl {Show 36 fields
pub parent: ID2D1RenderTargetVtbl,
pub CreateBitmap: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, size: D2D1_SIZE_U, sourceData: *const c_void, pitch: UINT32, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1) -> HRESULT,
pub CreateBitmapFromWicBitmap: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, wicBitmapSource: *const IWICBitmapSource, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1) -> HRESULT,
pub CreateColorContext: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, space: D2D1_COLOR_SPACE, profile: *const BYTE, profileSize: UINT32, colorContext: *mut *mut ID2D1ColorContext) -> HRESULT,
pub CreateColorContextFromFilename: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, filename: PCWSTR, colorContext: *mut *mut ID2D1ColorContext) -> HRESULT,
pub CreateColorContextFromWicColorContext: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, wicColorContext: *const IWICColorContext, colorContext: *mut *mut ID2D1ColorContext) -> HRESULT,
pub CreateBitmapFromDxgiSurface: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, surface: *const IDXGISurface, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1) -> HRESULT,
pub CreateEffect: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effectId: REFCLSID, effect: *mut *mut ID2D1Effect) -> HRESULT,
pub CreateGradientStopCollection: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, straightAlphaGradientStops: *const D2D1_GRADIENT_STOP, straightAlphaGradientStopsCount: UINT32, preInterpolationSpace: D2D1_COLOR_SPACE, postInterpolationSpace: D2D1_COLOR_SPACE, bufferPrecision: D2D1_BUFFER_PRECISION, extendMode: D2D1_EXTEND_MODE, colorInterpolationMode: D2D1_COLOR_INTERPOLATION_MODE, gradientStopCollection1: *mut *mut ID2D1GradientStopCollection1) -> HRESULT,
pub CreateImageBrush: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, imageBrushProperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, imageBrush: *mut *mut ID2D1ImageBrush) -> HRESULT,
pub CreateBitmapBrush: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, bitmap: *const ID2D1Bitmap, bitmapBrushProperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushProperties: *const D2D1_BRUSH_PROPERTIES, bitmapBrush: *mut *mut ID2D1BitmapBrush1) -> HRESULT,
pub CreateCommandList: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, commandList: *mut *mut ID2D1CommandList) -> HRESULT,
pub IsDxgiFormatSupported: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, format: DXGI_FORMAT) -> BOOL,
pub IsBufferPrecisionSupported: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, bufferPrecision: D2D1_BUFFER_PRECISION) -> BOOL,
pub GetImageLocalBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, localBounds: *mut D2D1_RECT_F) -> HRESULT,
pub GetImageWorldBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, worldBounds: *mut D2D1_RECT_F) -> HRESULT,
pub GetGlyphRunWorldBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, measuringMode: DWRITE_MEASURING_MODE, bounds: *mut D2D1_RECT_F) -> HRESULT,
pub GetDevice: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, device: *mut *mut ID2D1Device),
pub SetTarget: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image),
pub GetTarget: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *mut *mut ID2D1Image),
pub SetRenderingControls: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, renderingControls: *const D2D1_RENDERING_CONTROLS),
pub GetRenderingControls: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, renderingControls: *mut D2D1_RENDERING_CONTROLS),
pub SetPrimitiveBlend: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, primitiveBlend: D2D1_PRIMITIVE_BLEND),
pub GetPrimitiveBlend: unsafe extern "system" fn(This: *mut ID2D1DeviceContext) -> D2D1_PRIMITIVE_BLEND,
pub SetUnitMode: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, unitMode: D2D1_UNIT_MODE),
pub GetUnitMode: unsafe extern "system" fn(This: *mut ID2D1DeviceContext) -> D2D1_UNIT_MODE,
pub DrawGlyphRun: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, glyphRunDescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, foregroundBrush: *const ID2D1Brush, measuringMode: DWRITE_MEASURING_MODE),
pub DrawImage: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, targetOffset: *const D2D1_POINT_2F, imageRectangle: *const D2D1_RECT_F, interpolationMode: D2D1_INTERPOLATION_MODE, compositeMode: D2D1_COMPOSITE_MODE),
pub DrawGdiMetafile: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, gdiMetafile: *const ID2D1GdiMetafile, targetOffset: *const D2D1_POINT_2F),
pub DrawBitmap: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, bitmap: *const ID2D1Bitmap, destinationRectangle: *const D2D1_RECT_F, opacity: FLOAT, interpolationMode: D2D1_INTERPOLATION_MODE, sourceRectangle: *const D2D1_RECT_F, perspectiveTransform: *const D2D1_MATRIX_4X4_F),
pub PushLayer: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, layerParameters: *const D2D1_LAYER_PARAMETERS1, layer: *const ID2D1Layer),
pub InvalidateEffectInputRectangle: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effect: *const ID2D1Effect, input: UINT32, inputRectangle: *const D2D1_RECT_F) -> HRESULT,
pub GetEffectInvalidRectangleCount: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effect: *const ID2D1Effect, rectangleCount: *mut UINT32) -> HRESULT,
pub GetEffectInvalidRectangles: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effect: *const ID2D1Effect, rectangles: *mut D2D1_RECT_F, rectanglesCount: UINT32) -> HRESULT,
pub GetEffectRequiredInputRectangles: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, renderEffect: *const ID2D1Effect, renderImageRectangle: *const D2D1_RECT_F, inputDescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredInputRects: *mut D2D1_RECT_F, inputCount: UINT32) -> HRESULT,
pub FillOpacityMask: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, opacityMask: *const ID2D1Bitmap, brush: *const ID2D1Brush, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F),
}Fields§
§parent: ID2D1RenderTargetVtbl§CreateBitmap: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, size: D2D1_SIZE_U, sourceData: *const c_void, pitch: UINT32, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1) -> HRESULT§CreateBitmapFromWicBitmap: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, wicBitmapSource: *const IWICBitmapSource, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1) -> HRESULT§CreateColorContext: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, space: D2D1_COLOR_SPACE, profile: *const BYTE, profileSize: UINT32, colorContext: *mut *mut ID2D1ColorContext) -> HRESULT§CreateColorContextFromFilename: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, filename: PCWSTR, colorContext: *mut *mut ID2D1ColorContext) -> HRESULT§CreateColorContextFromWicColorContext: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, wicColorContext: *const IWICColorContext, colorContext: *mut *mut ID2D1ColorContext) -> HRESULT§CreateBitmapFromDxgiSurface: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, surface: *const IDXGISurface, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1) -> HRESULT§CreateEffect: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effectId: REFCLSID, effect: *mut *mut ID2D1Effect) -> HRESULT§CreateGradientStopCollection: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, straightAlphaGradientStops: *const D2D1_GRADIENT_STOP, straightAlphaGradientStopsCount: UINT32, preInterpolationSpace: D2D1_COLOR_SPACE, postInterpolationSpace: D2D1_COLOR_SPACE, bufferPrecision: D2D1_BUFFER_PRECISION, extendMode: D2D1_EXTEND_MODE, colorInterpolationMode: D2D1_COLOR_INTERPOLATION_MODE, gradientStopCollection1: *mut *mut ID2D1GradientStopCollection1) -> HRESULT§CreateImageBrush: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, imageBrushProperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, imageBrush: *mut *mut ID2D1ImageBrush) -> HRESULT§CreateBitmapBrush: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, bitmap: *const ID2D1Bitmap, bitmapBrushProperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushProperties: *const D2D1_BRUSH_PROPERTIES, bitmapBrush: *mut *mut ID2D1BitmapBrush1) -> HRESULT§CreateCommandList: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, commandList: *mut *mut ID2D1CommandList) -> HRESULT§IsDxgiFormatSupported: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, format: DXGI_FORMAT) -> BOOL§IsBufferPrecisionSupported: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, bufferPrecision: D2D1_BUFFER_PRECISION) -> BOOL§GetImageLocalBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, localBounds: *mut D2D1_RECT_F) -> HRESULT§GetImageWorldBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, worldBounds: *mut D2D1_RECT_F) -> HRESULT§GetGlyphRunWorldBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, measuringMode: DWRITE_MEASURING_MODE, bounds: *mut D2D1_RECT_F) -> HRESULT§GetDevice: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, device: *mut *mut ID2D1Device)§SetTarget: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image)§GetTarget: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *mut *mut ID2D1Image)§SetRenderingControls: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, renderingControls: *const D2D1_RENDERING_CONTROLS)§GetRenderingControls: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, renderingControls: *mut D2D1_RENDERING_CONTROLS)§SetPrimitiveBlend: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, primitiveBlend: D2D1_PRIMITIVE_BLEND)§GetPrimitiveBlend: unsafe extern "system" fn(This: *mut ID2D1DeviceContext) -> D2D1_PRIMITIVE_BLEND§SetUnitMode: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, unitMode: D2D1_UNIT_MODE)§GetUnitMode: unsafe extern "system" fn(This: *mut ID2D1DeviceContext) -> D2D1_UNIT_MODE§DrawGlyphRun: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, glyphRunDescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, foregroundBrush: *const ID2D1Brush, measuringMode: DWRITE_MEASURING_MODE)§DrawImage: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, image: *const ID2D1Image, targetOffset: *const D2D1_POINT_2F, imageRectangle: *const D2D1_RECT_F, interpolationMode: D2D1_INTERPOLATION_MODE, compositeMode: D2D1_COMPOSITE_MODE)§DrawGdiMetafile: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, gdiMetafile: *const ID2D1GdiMetafile, targetOffset: *const D2D1_POINT_2F)§DrawBitmap: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, bitmap: *const ID2D1Bitmap, destinationRectangle: *const D2D1_RECT_F, opacity: FLOAT, interpolationMode: D2D1_INTERPOLATION_MODE, sourceRectangle: *const D2D1_RECT_F, perspectiveTransform: *const D2D1_MATRIX_4X4_F)§PushLayer: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, layerParameters: *const D2D1_LAYER_PARAMETERS1, layer: *const ID2D1Layer)§InvalidateEffectInputRectangle: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effect: *const ID2D1Effect, input: UINT32, inputRectangle: *const D2D1_RECT_F) -> HRESULT§GetEffectInvalidRectangleCount: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effect: *const ID2D1Effect, rectangleCount: *mut UINT32) -> HRESULT§GetEffectInvalidRectangles: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, effect: *const ID2D1Effect, rectangles: *mut D2D1_RECT_F, rectanglesCount: UINT32) -> HRESULT§GetEffectRequiredInputRectangles: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, renderEffect: *const ID2D1Effect, renderImageRectangle: *const D2D1_RECT_F, inputDescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredInputRects: *mut D2D1_RECT_F, inputCount: UINT32) -> HRESULT§FillOpacityMask: unsafe extern "system" fn(This: *mut ID2D1DeviceContext, opacityMask: *const ID2D1Bitmap, brush: *const ID2D1Brush, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F)Auto Trait Implementations§
impl Freeze for ID2D1DeviceContextVtbl
impl RefUnwindSafe for ID2D1DeviceContextVtbl
impl Send for ID2D1DeviceContextVtbl
impl Sync for ID2D1DeviceContextVtbl
impl Unpin for ID2D1DeviceContextVtbl
impl UnwindSafe for ID2D1DeviceContextVtbl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more