Struct ID2D1DeviceContext

Source
#[repr(C)]
pub struct ID2D1DeviceContext { pub lpVtbl: *const ID2D1DeviceContextVtbl, }

Fields§

§lpVtbl: *const ID2D1DeviceContextVtbl

Implementations§

Source§

impl ID2D1DeviceContext

Source

pub unsafe fn CreateBitmap( &self, size: D2D1_SIZE_U, sourceData: *const c_void, pitch: UINT32, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1, ) -> HRESULT

Source

pub unsafe fn CreateBitmapFromWicBitmap( &self, wicBitmapSource: *const IWICBitmapSource, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1, ) -> HRESULT

Source

pub unsafe fn CreateColorContext( &self, space: D2D1_COLOR_SPACE, profile: *const BYTE, profileSize: UINT32, colorContext: *mut *mut ID2D1ColorContext, ) -> HRESULT

Source

pub unsafe fn CreateColorContextFromFilename( &self, filename: PCWSTR, colorContext: *mut *mut ID2D1ColorContext, ) -> HRESULT

Source

pub unsafe fn CreateColorContextFromWicColorContext( &self, wicColorContext: *const IWICColorContext, colorContext: *mut *mut ID2D1ColorContext, ) -> HRESULT

Source

pub unsafe fn CreateBitmapFromDxgiSurface( &self, surface: *const IDXGISurface, bitmapProperties: *const D2D1_BITMAP_PROPERTIES1, bitmap: *mut *mut ID2D1Bitmap1, ) -> HRESULT

Source

pub unsafe fn CreateEffect( &self, effectId: REFCLSID, effect: *mut *mut ID2D1Effect, ) -> HRESULT

Source

pub unsafe fn CreateGradientStopCollection( &self, 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

Source

pub unsafe fn CreateImageBrush( &self, image: *const ID2D1Image, imageBrushProperties: *const D2D1_IMAGE_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, imageBrush: *mut *mut ID2D1ImageBrush, ) -> HRESULT

Source

pub unsafe fn CreateBitmapBrush( &self, bitmap: *const ID2D1Bitmap, bitmapBrushProperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1, brushProperties: *const D2D1_BRUSH_PROPERTIES, bitmapBrush: *mut *mut ID2D1BitmapBrush1, ) -> HRESULT

Source

pub unsafe fn CreateCommandList( &self, commandList: *mut *mut ID2D1CommandList, ) -> HRESULT

Source

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

Source

pub unsafe fn IsBufferPrecisionSupported( &self, bufferPrecision: D2D1_BUFFER_PRECISION, ) -> BOOL

Source

pub unsafe fn GetImageLocalBounds( &self, image: *const ID2D1Image, localBounds: *mut D2D1_RECT_F, ) -> HRESULT

Source

pub unsafe fn GetImageWorldBounds( &self, image: *const ID2D1Image, worldBounds: *mut D2D1_RECT_F, ) -> HRESULT

Source

pub unsafe fn GetGlyphRunWorldBounds( &self, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, measuringMode: DWRITE_MEASURING_MODE, bounds: *mut D2D1_RECT_F, ) -> HRESULT

Source

pub unsafe fn GetDevice(&self, device: *mut *mut ID2D1Device)

Source

pub unsafe fn SetTarget(&self, image: *const ID2D1Image)

Source

pub unsafe fn GetTarget(&self, image: *mut *mut ID2D1Image)

Source

pub unsafe fn SetRenderingControls( &self, renderingControls: *const D2D1_RENDERING_CONTROLS, )

Source

pub unsafe fn GetRenderingControls( &self, renderingControls: *mut D2D1_RENDERING_CONTROLS, )

Source

pub unsafe fn SetPrimitiveBlend(&self, primitiveBlend: D2D1_PRIMITIVE_BLEND)

Source

pub unsafe fn GetPrimitiveBlend(&self) -> D2D1_PRIMITIVE_BLEND

Source

pub unsafe fn SetUnitMode(&self, unitMode: D2D1_UNIT_MODE)

Source

pub unsafe fn GetUnitMode(&self) -> D2D1_UNIT_MODE

Source

pub unsafe fn DrawGlyphRun( &self, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, glyphRunDescription: *const DWRITE_GLYPH_RUN_DESCRIPTION, foregroundBrush: *const ID2D1Brush, measuringMode: DWRITE_MEASURING_MODE, )

Source

pub unsafe fn DrawImage( &self, image: *const ID2D1Image, targetOffset: *const D2D1_POINT_2F, imageRectangle: *const D2D1_RECT_F, interpolationMode: D2D1_INTERPOLATION_MODE, compositeMode: D2D1_COMPOSITE_MODE, )

Source

pub unsafe fn DrawGdiMetafile( &self, gdiMetafile: *const ID2D1GdiMetafile, targetOffset: *const D2D1_POINT_2F, )

Source

pub unsafe fn DrawBitmap( &self, 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, )

Source

pub unsafe fn PushLayer( &self, layerParameters: *const D2D1_LAYER_PARAMETERS1, layer: *const ID2D1Layer, )

Source

pub unsafe fn InvalidateEffectInputRectangle( &self, effect: *const ID2D1Effect, input: UINT32, inputRectangle: *const D2D1_RECT_F, ) -> HRESULT

Source

pub unsafe fn GetEffectInvalidRectangleCount( &self, effect: *const ID2D1Effect, rectangleCount: *mut UINT32, ) -> HRESULT

Source

pub unsafe fn GetEffectInvalidRectangles( &self, effect: *const ID2D1Effect, rectangles: *mut D2D1_RECT_F, rectanglesCount: UINT32, ) -> HRESULT

Source

pub unsafe fn GetEffectRequiredInputRectangles( &self, renderEffect: *const ID2D1Effect, renderImageRectangle: *const D2D1_RECT_F, inputDescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION, requiredInputRects: *mut D2D1_RECT_F, inputCount: UINT32, ) -> HRESULT

Source

pub unsafe fn FillOpacityMask( &self, opacityMask: *const ID2D1Bitmap, brush: *const ID2D1Brush, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F, )

Methods from Deref<Target = ID2D1RenderTarget>§

Source

pub unsafe fn CreateBitmap( &self, size: D2D1_SIZE_U, srcData: *const c_void, pitch: UINT32, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap, ) -> HRESULT

Source

pub unsafe fn CreateBitmapFromWicBitmap( &self, wicBitmapSource: *mut IWICBitmapSource, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap, ) -> HRESULT

Source

pub unsafe fn CreateSharedBitmap( &self, riid: REFIID, data: *const c_void, bitmapProperties: *const D2D1_BITMAP_PROPERTIES, bitmap: *mut *mut ID2D1Bitmap, ) -> HRESULT

Source

pub unsafe fn CreateBitmapBrush( &self, bitmap: *mut ID2D1Bitmap, bitmapBrushProperties: *const D2D1_BITMAP_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, bitmapBrush: *mut *mut ID2D1BitmapBrush, ) -> HRESULT

Source

pub unsafe fn CreateSolidColorBrush( &self, color: *const D2D1_COLOR_F, brushProperties: *const D2D1_BRUSH_PROPERTIES, solidColorBrush: *mut *mut ID2D1SolidColorBrush, ) -> HRESULT

Source

pub unsafe fn CreateGradientStopCollection( &self, gradientStops: *const D2D1_GRADIENT_STOP, gradientStopsCount: UINT32, colorInterpolationGamma: D2D1_GAMMA, extendMode: D2D1_EXTEND_MODE, gradientStopCollection: *mut *mut ID2D1GradientStopCollection, ) -> HRESULT

Source

pub unsafe fn CreateLinearGradientBrush( &self, linearGradientBrushProperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, gradientStopCollection: *mut ID2D1GradientStopCollection, linearGradientBrush: *mut *mut ID2D1LinearGradientBrush, ) -> HRESULT

Source

pub unsafe fn CreateRadialGradientBrush( &self, radialGradientBrushProperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES, brushProperties: *const D2D1_BRUSH_PROPERTIES, gradientStopCollection: *mut ID2D1GradientStopCollection, radialGradientBrush: *mut *mut ID2D1RadialGradientBrush, ) -> HRESULT

Source

pub unsafe fn CreateCompatibleRenderTarget( &self, desiredSize: *const D2D1_SIZE_F, desiredPixelSize: *const D2D1_SIZE_U, desiredFormat: *const D2D1_PIXEL_FORMAT, options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS, bitmapRenderTarget: *mut *mut ID2D1BitmapRenderTarget, ) -> HRESULT

Source

pub unsafe fn CreateLayer( &self, size: *const D2D1_SIZE_F, layer: *mut *mut ID2D1Layer, ) -> HRESULT

Source

pub unsafe fn CreateMesh(&self, mesh: *mut *mut ID2D1Mesh) -> HRESULT

Source

pub unsafe fn DrawLine( &self, point0: D2D1_POINT_2F, point1: D2D1_POINT_2F, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStype: *mut ID2D1StrokeStyle, )

Source

pub unsafe fn DrawRectangle( &self, rect: *const D2D1_RECT_F, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle, )

Source

pub unsafe fn FillRectangle( &self, rect: *const D2D1_RECT_F, brush: *mut ID2D1Brush, )

Source

pub unsafe fn DrawRoundedRectangle( &self, roundedRect: *const D2D1_ROUNDED_RECT, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle, )

Source

pub unsafe fn FillRoundedRectangle( &self, roundedRect: *const D2D1_ROUNDED_RECT, brush: *mut ID2D1Brush, )

Source

pub unsafe fn DrawEllipse( &self, ellipse: *const D2D1_ELLIPSE, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle, )

Source

pub unsafe fn FillEllipse( &self, ellipse: *const D2D1_ELLIPSE, brush: *mut ID2D1Brush, )

Source

pub unsafe fn DrawGeometry( &self, geometry: *mut ID2D1Geometry, brush: *mut ID2D1Brush, strokeWidth: FLOAT, strokeStyle: *mut ID2D1StrokeStyle, )

Source

pub unsafe fn FillGeometry( &self, geometry: *mut ID2D1Geometry, brush: *mut ID2D1Brush, opacityBrush: *mut ID2D1Brush, )

Source

pub unsafe fn FillMesh(&self, mesh: *mut ID2D1Mesh, brush: *const ID2D1Brush)

Source

pub unsafe fn FillOpacityMask( &self, opacityMask: *mut ID2D1Bitmap, brush: *mut ID2D1Brush, content: D2D1_OPACITY_MASK_CONTENT, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F, )

Source

pub unsafe fn DrawBitmap( &self, bitmap: *mut ID2D1Bitmap, destinationRectangle: *const D2D1_RECT_F, opacity: FLOAT, interpolationMode: D2D1_BITMAP_INTERPOLATION_MODE, sourceRectangle: *const D2D1_RECT_F, )

Source

pub unsafe fn DrawText( &self, string: *const WCHAR, stringLength: UINT32, textFormat: *mut IDWriteTextFormat, layoutRect: *const D2D1_RECT_F, defaultForegroundBrush: *mut ID2D1Brush, options: D2D1_DRAW_TEXT_OPTIONS, measuringMode: DWRITE_MEASURING_MODE, )

Source

pub unsafe fn DrawTextLayout( &self, origin: D2D1_POINT_2F, textLayout: *mut IDWriteTextLayout, defaultForegroundBrush: *mut ID2D1Brush, options: D2D1_DRAW_TEXT_OPTIONS, )

Source

pub unsafe fn DrawGlyphRun( &self, baselineOrigin: D2D1_POINT_2F, glyphRun: *const DWRITE_GLYPH_RUN, foregroundBrush: *mut ID2D1Brush, measuringMode: DWRITE_MEASURING_MODE, )

Source

pub unsafe fn SetTransform(&self, transform: *const D2D1_MATRIX_3X2_F)

Source

pub unsafe fn GetTransform(&self, transform: *mut D2D1_MATRIX_3X2_F)

Source

pub unsafe fn SetAntialiasMode(&self, antialiasMode: D2D1_ANTIALIAS_MODE)

Source

pub unsafe fn GetAntialiasMode(&self) -> D2D1_ANTIALIAS_MODE

Source

pub unsafe fn SetTextAntialiasMode( &self, textAntialiasMode: D2D1_TEXT_ANTIALIAS_MODE, )

Source

pub unsafe fn GetTextAntialiasMode(&self) -> D2D1_TEXT_ANTIALIAS_MODE

Source

pub unsafe fn SetTextRenderingParams( &self, textRenderingParams: *mut IDWriteRenderingParams, )

Source

pub unsafe fn GetTextRenderingParams( &self, textRenderingParams: *mut *mut IDWriteRenderingParams, )

Source

pub unsafe fn SetTags(&self, tag1: D2D1_TAG, tag2: D2D1_TAG)

Source

pub unsafe fn GetTags(&self, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG)

Source

pub unsafe fn PushLayer( &self, layerParameters: *const D2D1_LAYER_PARAMETERS, layer: *mut ID2D1Layer, )

Source

pub unsafe fn PopLayer(&self)

Source

pub unsafe fn Flush(&self, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG) -> HRESULT

Source

pub unsafe fn SaveDrawingState( &self, drawingStateBlock: *mut ID2D1DrawingStateBlock, )

Source

pub unsafe fn RestoreDrawingState( &self, drawingStateBlock: *mut ID2D1DrawingStateBlock, )

Source

pub unsafe fn PushAxisAlignedClip( &self, clipRect: *const D2D1_RECT_F, antialiasMode: D2D1_ANTIALIAS_MODE, )

Source

pub unsafe fn PopAxisAlignedClip(&self)

Source

pub unsafe fn Clear(&self, clearColor: *const D2D1_COLOR_F)

Source

pub unsafe fn BeginDraw(&self)

Source

pub unsafe fn EndDraw( &self, tag1: *mut D2D1_TAG, tag2: *mut D2D1_TAG, ) -> HRESULT

Source

pub unsafe fn GetPixelFormat(&self) -> D2D1_PIXEL_FORMAT

Source

pub unsafe fn SetDpi(&self, dpiX: FLOAT, dpiY: FLOAT)

Source

pub unsafe fn GetDpi(&self, dpiX: *mut FLOAT, dpiY: *mut FLOAT)

Source

pub unsafe fn GetSize(&self) -> D2D1_SIZE_F

Source

pub unsafe fn GetPixelSize(&self) -> D2D1_SIZE_U

Source

pub unsafe fn GetMaximumBitmapSize(&self) -> UINT32

Source

pub unsafe fn IsSupported( &self, renderTargetProperties: *const D2D1_RENDER_TARGET_PROPERTIES, ) -> BOOL

Methods from Deref<Target = ID2D1Resource>§

Source

pub unsafe fn GetFactory(&self, factory: *mut *mut ID2D1Factory)

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn QueryInterface( &self, riid: REFIID, ppvObject: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn AddRef(&self) -> ULONG

Source

pub unsafe fn Release(&self) -> ULONG

Trait Implementations§

Source§

impl Deref for ID2D1DeviceContext

Source§

type Target = ID2D1RenderTarget

The resulting type after dereferencing.
Source§

fn deref(&self) -> &ID2D1RenderTarget

Dereferences the value.
Source§

impl Interface for ID2D1DeviceContext

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.