ID2D1DeviceContext2Vtbl

Struct ID2D1DeviceContext2Vtbl 

Source
#[repr(C)]
pub struct ID2D1DeviceContext2Vtbl { pub parent: ID2D1DeviceContext1Vtbl, pub CreateInk: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, startPoint: *const D2D1_INK_POINT, ink: *mut *mut ID2D1Ink) -> HRESULT, pub CreateInkStyle: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, inkStyleProperties: *const D2D1_INK_STYLE_PROPERTIES, inkStyle: *mut *mut ID2D1InkStyle) -> HRESULT, pub CreateGradientMesh: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, patches: *const D2D1_GRADIENT_MESH_PATCH, patchesCount: UINT32, gradientMesh: *mut *mut ID2D1GradientMesh) -> HRESULT, pub CreateImageSourceFromWic: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, wicBitmapSource: *mut IWICBitmapSource, loadingOptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphaMode: D2D1_ALPHA_MODE, imageSource: *mut *mut ID2D1ImageSourceFromWic) -> HRESULT, pub CreateLookupTable3D: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, precision: D2D1_BUFFER_PRECISION, extents: *const UINT32, data: *const BYTE, dataCount: UINT32, strides: *const UINT32, lookupTable: *mut *mut ID2D1LookupTable3D) -> HRESULT, pub CreateImageSourceFromDxgi: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, surfaces: *const *mut IDXGISurface, surfaceCount: UINT32, colorSpace: DXGI_COLOR_SPACE_TYPE, options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS, imageSource: *mut *mut ID2D1ImageSource) -> HRESULT, pub GetGradientMeshWorldBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, gradientMesh: *mut ID2D1GradientMesh, pBounds: *mut D2D1_RECT_F) -> HRESULT, pub DrawInk: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, ink: *mut ID2D1Ink, brush: *mut ID2D1Brush, inkStyle: *mut ID2D1InkStyle), pub DrawGradientMesh: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, gradientMesh: *mut ID2D1GradientMesh), pub DrawGdiMetafile: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, gdiMetafile: *mut ID2D1GdiMetafile, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F), pub CreateTransformedImageSource: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, imageSource: *mut ID2D1ImageSource, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES, transformedImageSource: *mut *mut ID2D1TransformedImageSource) -> HRESULT, }

Fields§

§parent: ID2D1DeviceContext1Vtbl§CreateInk: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, startPoint: *const D2D1_INK_POINT, ink: *mut *mut ID2D1Ink) -> HRESULT§CreateInkStyle: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, inkStyleProperties: *const D2D1_INK_STYLE_PROPERTIES, inkStyle: *mut *mut ID2D1InkStyle) -> HRESULT§CreateGradientMesh: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, patches: *const D2D1_GRADIENT_MESH_PATCH, patchesCount: UINT32, gradientMesh: *mut *mut ID2D1GradientMesh) -> HRESULT§CreateImageSourceFromWic: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, wicBitmapSource: *mut IWICBitmapSource, loadingOptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS, alphaMode: D2D1_ALPHA_MODE, imageSource: *mut *mut ID2D1ImageSourceFromWic) -> HRESULT§CreateLookupTable3D: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, precision: D2D1_BUFFER_PRECISION, extents: *const UINT32, data: *const BYTE, dataCount: UINT32, strides: *const UINT32, lookupTable: *mut *mut ID2D1LookupTable3D) -> HRESULT§CreateImageSourceFromDxgi: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, surfaces: *const *mut IDXGISurface, surfaceCount: UINT32, colorSpace: DXGI_COLOR_SPACE_TYPE, options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS, imageSource: *mut *mut ID2D1ImageSource) -> HRESULT§GetGradientMeshWorldBounds: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, gradientMesh: *mut ID2D1GradientMesh, pBounds: *mut D2D1_RECT_F) -> HRESULT§DrawInk: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, ink: *mut ID2D1Ink, brush: *mut ID2D1Brush, inkStyle: *mut ID2D1InkStyle)§DrawGradientMesh: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, gradientMesh: *mut ID2D1GradientMesh)§DrawGdiMetafile: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, gdiMetafile: *mut ID2D1GdiMetafile, destinationRectangle: *const D2D1_RECT_F, sourceRectangle: *const D2D1_RECT_F)§CreateTransformedImageSource: unsafe extern "system" fn(This: *mut ID2D1DeviceContext2, imageSource: *mut ID2D1ImageSource, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES, transformedImageSource: *mut *mut ID2D1TransformedImageSource) -> HRESULT

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<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.