Struct mltg_bindings::Windows::Win32::Graphics::Direct2D::ID2D1DeviceContext4 [−][src]
#[repr(transparent)]pub struct ID2D1DeviceContext4(_);
Implementations
pub unsafe fn CreateBitmap<'a>(
&self,
size: impl IntoParam<'a, D2D_SIZE_U>,
srcdata: *const c_void,
pitch: u32,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES,
bitmap: *mut Option<ID2D1Bitmap>
) -> HRESULT
[src]pub unsafe fn CreateBitmapFromWicBitmap<'a>(
&self,
wicbitmapsource: impl IntoParam<'a, IWICBitmapSource>,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES,
bitmap: *mut Option<ID2D1Bitmap>
) -> HRESULT
[src]pub unsafe fn CreateBitmapBrush<'a>(
&self,
bitmap: impl IntoParam<'a, ID2D1Bitmap>,
bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
bitmapbrush: *mut Option<ID2D1BitmapBrush>
) -> HRESULT
[src]pub unsafe fn CreateSolidColorBrush(
&self,
color: *const D2D1_COLOR_F,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
solidcolorbrush: *mut Option<ID2D1SolidColorBrush>
) -> HRESULT
[src]pub unsafe fn CreateGradientStopCollection(
&self,
gradientstops: *const D2D1_GRADIENT_STOP,
gradientstopscount: u32,
colorinterpolationgamma: D2D1_GAMMA,
extendmode: D2D1_EXTEND_MODE,
gradientstopcollection: *mut Option<ID2D1GradientStopCollection>
) -> HRESULT
[src]pub unsafe fn CreateLinearGradientBrush<'a>(
&self,
lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
gradientstopcollection: impl IntoParam<'a, ID2D1GradientStopCollection>,
lineargradientbrush: *mut Option<ID2D1LinearGradientBrush>
) -> HRESULT
[src]pub unsafe fn CreateRadialGradientBrush<'a>(
&self,
radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
gradientstopcollection: impl IntoParam<'a, ID2D1GradientStopCollection>,
radialgradientbrush: *mut Option<ID2D1RadialGradientBrush>
) -> HRESULT
[src]pub unsafe fn CreateCompatibleRenderTarget(
&self,
desiredsize: *const D2D_SIZE_F,
desiredpixelsize: *const D2D_SIZE_U,
desiredformat: *const D2D1_PIXEL_FORMAT,
options: D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS,
bitmaprendertarget: *mut Option<ID2D1BitmapRenderTarget>
) -> HRESULT
[src]pub unsafe fn CreateLayer(
&self,
size: *const D2D_SIZE_F,
layer: *mut Option<ID2D1Layer>
) -> HRESULT
[src]pub unsafe fn DrawLine<'a>(
&self,
point0: impl IntoParam<'a, D2D_POINT_2F>,
point1: impl IntoParam<'a, D2D_POINT_2F>,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
[src]pub unsafe fn DrawRectangle<'a>(
&self,
rect: *const D2D_RECT_F,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
[src]pub unsafe fn FillRectangle<'a>(
&self,
rect: *const D2D_RECT_F,
brush: impl IntoParam<'a, ID2D1Brush>
)
[src]pub unsafe fn DrawRoundedRectangle<'a>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
[src]pub unsafe fn FillRoundedRectangle<'a>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: impl IntoParam<'a, ID2D1Brush>
)
[src]pub unsafe fn DrawEllipse<'a>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
[src]pub unsafe fn FillEllipse<'a>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: impl IntoParam<'a, ID2D1Brush>
)
[src]pub unsafe fn DrawGeometry<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
[src]pub unsafe fn FillGeometry<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
brush: impl IntoParam<'a, ID2D1Brush>,
opacitybrush: impl IntoParam<'a, ID2D1Brush>
)
[src]pub unsafe fn FillMesh<'a>(
&self,
mesh: impl IntoParam<'a, ID2D1Mesh>,
brush: impl IntoParam<'a, ID2D1Brush>
)
[src]pub unsafe fn FillOpacityMask<'a>(
&self,
opacitymask: impl IntoParam<'a, ID2D1Bitmap>,
brush: impl IntoParam<'a, ID2D1Brush>,
content: D2D1_OPACITY_MASK_CONTENT,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
)
[src]pub unsafe fn DrawBitmap<'a>(
&self,
bitmap: impl IntoParam<'a, ID2D1Bitmap>,
destinationrectangle: *const D2D_RECT_F,
opacity: f32,
interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE,
sourcerectangle: *const D2D_RECT_F
)
[src]pub unsafe fn DrawText<'a>(
&self,
string: impl IntoParam<'a, PWSTR>,
stringlength: u32,
textformat: impl IntoParam<'a, IDWriteTextFormat>,
layoutrect: *const D2D_RECT_F,
defaultfillbrush: impl IntoParam<'a, ID2D1Brush>,
options: D2D1_DRAW_TEXT_OPTIONS,
measuringmode: DWRITE_MEASURING_MODE
)
[src]pub unsafe fn DrawTextLayout<'a>(
&self,
origin: impl IntoParam<'a, D2D_POINT_2F>,
textlayout: impl IntoParam<'a, IDWriteTextLayout>,
defaultfillbrush: impl IntoParam<'a, ID2D1Brush>,
options: D2D1_DRAW_TEXT_OPTIONS
)
[src]pub unsafe fn DrawGlyphRun<'a>(
&self,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
glyphrun: *const DWRITE_GLYPH_RUN,
foregroundbrush: impl IntoParam<'a, ID2D1Brush>,
measuringmode: DWRITE_MEASURING_MODE
)
[src]pub unsafe fn SetTextRenderingParams<'a>(
&self,
textrenderingparams: impl IntoParam<'a, IDWriteRenderingParams>
)
[src]pub unsafe fn GetTextRenderingParams(
&self,
textrenderingparams: *mut Option<IDWriteRenderingParams>
)
[src]pub unsafe fn PushLayer<'a>(
&self,
layerparameters: *const D2D1_LAYER_PARAMETERS,
layer: impl IntoParam<'a, ID2D1Layer>
)
[src]pub unsafe fn SaveDrawingState<'a>(
&self,
drawingstateblock: impl IntoParam<'a, ID2D1DrawingStateBlock>
)
[src]pub unsafe fn RestoreDrawingState<'a>(
&self,
drawingstateblock: impl IntoParam<'a, ID2D1DrawingStateBlock>
)
[src]pub unsafe fn PushAxisAlignedClip(
&self,
cliprect: *const D2D_RECT_F,
antialiasmode: D2D1_ANTIALIAS_MODE
)
[src]pub unsafe fn IsSupported(
&self,
rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES
) -> BOOL
[src]pub unsafe fn CreateBitmap2<'a>(
&self,
size: impl IntoParam<'a, D2D_SIZE_U>,
sourcedata: *const c_void,
pitch: u32,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES1,
bitmap: *mut Option<ID2D1Bitmap1>
) -> HRESULT
[src]pub unsafe fn CreateBitmapFromWicBitmap2<'a>(
&self,
wicbitmapsource: impl IntoParam<'a, IWICBitmapSource>,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES1,
bitmap: *mut Option<ID2D1Bitmap1>
) -> HRESULT
[src]pub unsafe fn CreateColorContext(
&self,
space: D2D1_COLOR_SPACE,
profile: *const u8,
profilesize: u32,
colorcontext: *mut Option<ID2D1ColorContext>
) -> HRESULT
[src]pub unsafe fn CreateColorContextFromFilename<'a>(
&self,
filename: impl IntoParam<'a, PWSTR>,
colorcontext: *mut Option<ID2D1ColorContext>
) -> HRESULT
[src]pub unsafe fn CreateColorContextFromWicColorContext<'a>(
&self,
wiccolorcontext: impl IntoParam<'a, IWICColorContext>,
colorcontext: *mut Option<ID2D1ColorContext>
) -> HRESULT
[src]pub unsafe fn CreateBitmapFromDxgiSurface<'a>(
&self,
surface: impl IntoParam<'a, IDXGISurface>,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES1,
bitmap: *mut Option<ID2D1Bitmap1>
) -> HRESULT
[src]pub unsafe fn CreateEffect(
&self,
effectid: *const Guid,
effect: *mut Option<ID2D1Effect>
) -> HRESULT
[src]pub unsafe fn CreateGradientStopCollection2(
&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,
gradientstopcollection1: *mut Option<ID2D1GradientStopCollection1>
) -> HRESULT
[src]pub unsafe fn CreateImageBrush<'a>(
&self,
image: impl IntoParam<'a, ID2D1Image>,
imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
imagebrush: *mut Option<ID2D1ImageBrush>
) -> HRESULT
[src]pub unsafe fn CreateBitmapBrush2<'a>(
&self,
bitmap: impl IntoParam<'a, ID2D1Bitmap>,
bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
bitmapbrush: *mut Option<ID2D1BitmapBrush1>
) -> HRESULT
[src]pub unsafe fn IsBufferPrecisionSupported(
&self,
bufferprecision: D2D1_BUFFER_PRECISION
) -> BOOL
[src]pub unsafe fn GetImageLocalBounds<'a>(
&self,
image: impl IntoParam<'a, ID2D1Image>,
localbounds: *mut D2D_RECT_F
) -> HRESULT
[src]pub unsafe fn GetImageWorldBounds<'a>(
&self,
image: impl IntoParam<'a, ID2D1Image>,
worldbounds: *mut D2D_RECT_F
) -> HRESULT
[src]pub unsafe fn GetGlyphRunWorldBounds<'a>(
&self,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
glyphrun: *const DWRITE_GLYPH_RUN,
measuringmode: DWRITE_MEASURING_MODE,
bounds: *mut D2D_RECT_F
) -> HRESULT
[src]pub unsafe fn DrawGlyphRun2<'a>(
&self,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
glyphrun: *const DWRITE_GLYPH_RUN,
glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION,
foregroundbrush: impl IntoParam<'a, ID2D1Brush>,
measuringmode: DWRITE_MEASURING_MODE
)
[src]pub unsafe fn DrawImage<'a>(
&self,
image: impl IntoParam<'a, ID2D1Image>,
targetoffset: *const D2D_POINT_2F,
imagerectangle: *const D2D_RECT_F,
interpolationmode: D2D1_INTERPOLATION_MODE,
compositemode: D2D1_COMPOSITE_MODE
)
[src]pub unsafe fn DrawGdiMetafile<'a>(
&self,
gdimetafile: impl IntoParam<'a, ID2D1GdiMetafile>,
targetoffset: *const D2D_POINT_2F
)
[src]pub unsafe fn DrawBitmap2<'a>(
&self,
bitmap: impl IntoParam<'a, ID2D1Bitmap>,
destinationrectangle: *const D2D_RECT_F,
opacity: f32,
interpolationmode: D2D1_INTERPOLATION_MODE,
sourcerectangle: *const D2D_RECT_F,
perspectivetransform: *const D2D_MATRIX_4X4_F
)
[src]pub unsafe fn PushLayer2<'a>(
&self,
layerparameters: *const D2D1_LAYER_PARAMETERS1,
layer: impl IntoParam<'a, ID2D1Layer>
)
[src]pub unsafe fn InvalidateEffectInputRectangle<'a>(
&self,
effect: impl IntoParam<'a, ID2D1Effect>,
input: u32,
inputrectangle: *const D2D_RECT_F
) -> HRESULT
[src]pub unsafe fn GetEffectInvalidRectangleCount<'a>(
&self,
effect: impl IntoParam<'a, ID2D1Effect>,
rectanglecount: *mut u32
) -> HRESULT
[src]pub unsafe fn GetEffectInvalidRectangles<'a>(
&self,
effect: impl IntoParam<'a, ID2D1Effect>,
rectangles: *mut D2D_RECT_F,
rectanglescount: u32
) -> HRESULT
[src]pub unsafe fn GetEffectRequiredInputRectangles<'a>(
&self,
rendereffect: impl IntoParam<'a, ID2D1Effect>,
renderimagerectangle: *const D2D_RECT_F,
inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION,
requiredinputrects: *mut D2D_RECT_F,
inputcount: u32
) -> HRESULT
[src]pub unsafe fn FillOpacityMask2<'a>(
&self,
opacitymask: impl IntoParam<'a, ID2D1Bitmap>,
brush: impl IntoParam<'a, ID2D1Brush>,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
)
[src]pub unsafe fn CreateFilledGeometryRealization<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
flatteningtolerance: f32,
geometryrealization: *mut Option<ID2D1GeometryRealization>
) -> HRESULT
[src]pub unsafe fn CreateStrokedGeometryRealization<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
flatteningtolerance: f32,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>,
geometryrealization: *mut Option<ID2D1GeometryRealization>
) -> HRESULT
[src]pub unsafe fn DrawGeometryRealization<'a>(
&self,
geometryrealization: impl IntoParam<'a, ID2D1GeometryRealization>,
brush: impl IntoParam<'a, ID2D1Brush>
)
[src]pub unsafe fn CreateInk(
&self,
startpoint: *const D2D1_INK_POINT,
ink: *mut Option<ID2D1Ink>
) -> HRESULT
[src]pub unsafe fn CreateInkStyle(
&self,
inkstyleproperties: *const D2D1_INK_STYLE_PROPERTIES,
inkstyle: *mut Option<ID2D1InkStyle>
) -> HRESULT
[src]pub unsafe fn CreateGradientMesh(
&self,
patches: *const D2D1_GRADIENT_MESH_PATCH,
patchescount: u32,
gradientmesh: *mut Option<ID2D1GradientMesh>
) -> HRESULT
[src]pub unsafe fn CreateImageSourceFromWic<'a>(
&self,
wicbitmapsource: impl IntoParam<'a, IWICBitmapSource>,
loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS,
alphamode: D2D1_ALPHA_MODE,
imagesource: *mut Option<ID2D1ImageSourceFromWic>
) -> HRESULT
[src]pub unsafe fn CreateLookupTable3D(
&self,
precision: D2D1_BUFFER_PRECISION,
extents: *const u32,
data: *const u8,
datacount: u32,
strides: *const u32,
lookuptable: *mut Option<ID2D1LookupTable3D>
) -> HRESULT
[src]pub unsafe fn CreateImageSourceFromDxgi(
&self,
surfaces: *mut Option<IDXGISurface>,
surfacecount: u32,
colorspace: DXGI_COLOR_SPACE_TYPE,
options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS,
imagesource: *mut Option<ID2D1ImageSource>
) -> HRESULT
[src]pub unsafe fn GetGradientMeshWorldBounds<'a>(
&self,
gradientmesh: impl IntoParam<'a, ID2D1GradientMesh>,
pbounds: *mut D2D_RECT_F
) -> HRESULT
[src]pub unsafe fn DrawInk<'a>(
&self,
ink: impl IntoParam<'a, ID2D1Ink>,
brush: impl IntoParam<'a, ID2D1Brush>,
inkstyle: impl IntoParam<'a, ID2D1InkStyle>
)
[src]pub unsafe fn DrawGradientMesh<'a>(
&self,
gradientmesh: impl IntoParam<'a, ID2D1GradientMesh>
)
[src]pub unsafe fn DrawGdiMetafile2<'a>(
&self,
gdimetafile: impl IntoParam<'a, ID2D1GdiMetafile>,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
)
[src]pub unsafe fn CreateTransformedImageSource<'a>(
&self,
imagesource: impl IntoParam<'a, ID2D1ImageSource>,
properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES,
transformedimagesource: *mut Option<ID2D1TransformedImageSource>
) -> HRESULT
[src]pub unsafe fn DrawSpriteBatch<'a>(
&self,
spritebatch: impl IntoParam<'a, ID2D1SpriteBatch>,
startindex: u32,
spritecount: u32,
bitmap: impl IntoParam<'a, ID2D1Bitmap>,
interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE,
spriteoptions: D2D1_SPRITE_OPTIONS
)
[src]pub unsafe fn CreateSvgGlyphStyle(
&self,
svgglyphstyle: *mut Option<ID2D1SvgGlyphStyle>
) -> HRESULT
[src]pub unsafe fn DrawText2<'a>(
&self,
string: impl IntoParam<'a, PWSTR>,
stringlength: u32,
textformat: impl IntoParam<'a, IDWriteTextFormat>,
layoutrect: *const D2D_RECT_F,
defaultfillbrush: impl IntoParam<'a, ID2D1Brush>,
svgglyphstyle: impl IntoParam<'a, ID2D1SvgGlyphStyle>,
colorpaletteindex: u32,
options: D2D1_DRAW_TEXT_OPTIONS,
measuringmode: DWRITE_MEASURING_MODE
)
[src]pub unsafe fn DrawTextLayout2<'a>(
&self,
origin: impl IntoParam<'a, D2D_POINT_2F>,
textlayout: impl IntoParam<'a, IDWriteTextLayout>,
defaultfillbrush: impl IntoParam<'a, ID2D1Brush>,
svgglyphstyle: impl IntoParam<'a, ID2D1SvgGlyphStyle>,
colorpaletteindex: u32,
options: D2D1_DRAW_TEXT_OPTIONS
)
[src]pub unsafe fn DrawColorBitmapGlyphRun<'a>(
&self,
glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
glyphrun: *const DWRITE_GLYPH_RUN,
measuringmode: DWRITE_MEASURING_MODE,
bitmapsnapoption: D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION
)
[src]pub unsafe fn DrawSvgGlyphRun<'a>(
&self,
baselineorigin: impl IntoParam<'a, D2D_POINT_2F>,
glyphrun: *const DWRITE_GLYPH_RUN,
defaultfillbrush: impl IntoParam<'a, ID2D1Brush>,
svgglyphstyle: impl IntoParam<'a, ID2D1SvgGlyphStyle>,
colorpaletteindex: u32,
measuringmode: DWRITE_MEASURING_MODE
)
[src]pub unsafe fn GetColorBitmapGlyphImage<'a>(
&self,
glyphimageformat: DWRITE_GLYPH_IMAGE_FORMATS,
glyphorigin: impl IntoParam<'a, D2D_POINT_2F>,
fontface: impl IntoParam<'a, IDWriteFontFace>,
fontemsize: f32,
glyphindex: u16,
issideways: impl IntoParam<'a, BOOL>,
worldtransform: *const Matrix3x2,
dpix: f32,
dpiy: f32,
glyphtransform: *mut Matrix3x2,
glyphimage: *mut Option<ID2D1Image>
) -> HRESULT
[src]pub unsafe fn GetSvgGlyphImage<'a>(
&self,
glyphorigin: impl IntoParam<'a, D2D_POINT_2F>,
fontface: impl IntoParam<'a, IDWriteFontFace>,
fontemsize: f32,
glyphindex: u16,
issideways: impl IntoParam<'a, BOOL>,
worldtransform: *const Matrix3x2,
defaultfillbrush: impl IntoParam<'a, ID2D1Brush>,
svgglyphstyle: impl IntoParam<'a, ID2D1SvgGlyphStyle>,
colorpaletteindex: u32,
glyphtransform: *mut Matrix3x2,
glyphimage: *mut Option<ID2D1CommandList>
) -> HRESULT
[src]Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Vtable = ID2D1DeviceContext4_abi
Returns the vtable for an assumed interface. The name comes from Box
’s assume_init
method as
it assumes the vtable is implemented by the current interface’s vtable (e.g. a parent interface). Read more
Attempts to cast the current interface to another interface using QueryInterface
.
The name cast
is preferred to query
because there is a WinRT method named query but not one
named cast. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ID2D1DeviceContext4
impl !Send for ID2D1DeviceContext4
impl !Sync for ID2D1DeviceContext4
impl Unpin for ID2D1DeviceContext4
impl UnwindSafe for ID2D1DeviceContext4
Blanket Implementations
Returns a pointer for setting the object’s value via an ABI call.
Casts the ABI representation to a Rust object by taking ownership of the bits.
Mutably borrows from an owned value. Read more