Struct mltg_bindings::Windows::Win32::Graphics::Direct2D::ID2D1DeviceContext3 [−][src]
#[repr(transparent)]pub struct ID2D1DeviceContext3(_);
Implementations
pub unsafe fn CreateBitmap<'a, Param0: IntoParam<'a, D2D_SIZE_U>>(
&self,
size: Param0,
srcdata: *const c_void,
pitch: u32,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES
) -> Result<ID2D1Bitmap>
pub unsafe fn CreateBitmapFromWicBitmap<'a, Param0: IntoParam<'a, IWICBitmapSource>>(
&self,
wicbitmapsource: Param0,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES
) -> Result<ID2D1Bitmap>
pub unsafe fn CreateBitmapBrush<'a, Param0: IntoParam<'a, ID2D1Bitmap>>(
&self,
bitmap: Param0,
bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES
) -> Result<ID2D1BitmapBrush>
pub unsafe fn CreateSolidColorBrush(
&self,
color: *const D2D1_COLOR_F,
brushproperties: *const D2D1_BRUSH_PROPERTIES
) -> Result<ID2D1SolidColorBrush>
pub unsafe fn CreateGradientStopCollection(
&self,
gradientstops: *const D2D1_GRADIENT_STOP,
gradientstopscount: u32,
colorinterpolationgamma: D2D1_GAMMA,
extendmode: D2D1_EXTEND_MODE
) -> Result<ID2D1GradientStopCollection>
pub unsafe fn CreateLinearGradientBrush<'a, Param2: IntoParam<'a, ID2D1GradientStopCollection>>(
&self,
lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
gradientstopcollection: Param2
) -> Result<ID2D1LinearGradientBrush>
pub unsafe fn CreateRadialGradientBrush<'a, Param2: IntoParam<'a, ID2D1GradientStopCollection>>(
&self,
radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
gradientstopcollection: Param2
) -> Result<ID2D1RadialGradientBrush>
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
) -> Result<ID2D1BitmapRenderTarget>
pub unsafe fn DrawLine<'a, Param0: IntoParam<'a, D2D_POINT_2F>, Param1: IntoParam<'a, D2D_POINT_2F>, Param2: IntoParam<'a, ID2D1Brush>, Param4: IntoParam<'a, ID2D1StrokeStyle>>(
&self,
point0: Param0,
point1: Param1,
brush: Param2,
strokewidth: f32,
strokestyle: Param4
)
pub unsafe fn DrawRectangle<'a, Param1: IntoParam<'a, ID2D1Brush>, Param3: IntoParam<'a, ID2D1StrokeStyle>>(
&self,
rect: *const D2D_RECT_F,
brush: Param1,
strokewidth: f32,
strokestyle: Param3
)
pub unsafe fn FillRectangle<'a, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
rect: *const D2D_RECT_F,
brush: Param1
)
pub unsafe fn DrawRoundedRectangle<'a, Param1: IntoParam<'a, ID2D1Brush>, Param3: IntoParam<'a, ID2D1StrokeStyle>>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: Param1,
strokewidth: f32,
strokestyle: Param3
)
pub unsafe fn FillRoundedRectangle<'a, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: Param1
)
pub unsafe fn DrawEllipse<'a, Param1: IntoParam<'a, ID2D1Brush>, Param3: IntoParam<'a, ID2D1StrokeStyle>>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: Param1,
strokewidth: f32,
strokestyle: Param3
)
pub unsafe fn FillEllipse<'a, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: Param1
)
pub unsafe fn DrawGeometry<'a, Param0: IntoParam<'a, ID2D1Geometry>, Param1: IntoParam<'a, ID2D1Brush>, Param3: IntoParam<'a, ID2D1StrokeStyle>>(
&self,
geometry: Param0,
brush: Param1,
strokewidth: f32,
strokestyle: Param3
)
pub unsafe fn FillGeometry<'a, Param0: IntoParam<'a, ID2D1Geometry>, Param1: IntoParam<'a, ID2D1Brush>, Param2: IntoParam<'a, ID2D1Brush>>(
&self,
geometry: Param0,
brush: Param1,
opacitybrush: Param2
)
pub unsafe fn FillMesh<'a, Param0: IntoParam<'a, ID2D1Mesh>, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
mesh: Param0,
brush: Param1
)
pub unsafe fn FillOpacityMask<'a, Param0: IntoParam<'a, ID2D1Bitmap>, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
opacitymask: Param0,
brush: Param1,
content: D2D1_OPACITY_MASK_CONTENT,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
)
pub unsafe fn DrawBitmap<'a, Param0: IntoParam<'a, ID2D1Bitmap>>(
&self,
bitmap: Param0,
destinationrectangle: *const D2D_RECT_F,
opacity: f32,
interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE,
sourcerectangle: *const D2D_RECT_F
)
pub unsafe fn DrawText<'a, Param0: IntoParam<'a, PWSTR>, Param2: IntoParam<'a, IDWriteTextFormat>, Param4: IntoParam<'a, ID2D1Brush>>(
&self,
string: Param0,
stringlength: u32,
textformat: Param2,
layoutrect: *const D2D_RECT_F,
defaultfillbrush: Param4,
options: D2D1_DRAW_TEXT_OPTIONS,
measuringmode: DWRITE_MEASURING_MODE
)
pub unsafe fn DrawTextLayout<'a, Param0: IntoParam<'a, D2D_POINT_2F>, Param1: IntoParam<'a, IDWriteTextLayout>, Param2: IntoParam<'a, ID2D1Brush>>(
&self,
origin: Param0,
textlayout: Param1,
defaultfillbrush: Param2,
options: D2D1_DRAW_TEXT_OPTIONS
)
pub unsafe fn DrawGlyphRun<'a, Param0: IntoParam<'a, D2D_POINT_2F>, Param2: IntoParam<'a, ID2D1Brush>>(
&self,
baselineorigin: Param0,
glyphrun: *const DWRITE_GLYPH_RUN,
foregroundbrush: Param2,
measuringmode: DWRITE_MEASURING_MODE
)
pub unsafe fn SetTextRenderingParams<'a, Param0: IntoParam<'a, IDWriteRenderingParams>>(
&self,
textrenderingparams: Param0
)
pub unsafe fn GetTextRenderingParams(
&self,
textrenderingparams: *mut Option<IDWriteRenderingParams>
)
pub unsafe fn PushLayer<'a, Param1: IntoParam<'a, ID2D1Layer>>(
&self,
layerparameters: *const D2D1_LAYER_PARAMETERS,
layer: Param1
)
pub unsafe fn SaveDrawingState<'a, Param0: IntoParam<'a, ID2D1DrawingStateBlock>>(
&self,
drawingstateblock: Param0
)
pub unsafe fn RestoreDrawingState<'a, Param0: IntoParam<'a, ID2D1DrawingStateBlock>>(
&self,
drawingstateblock: Param0
)
pub unsafe fn PushAxisAlignedClip(
&self,
cliprect: *const D2D_RECT_F,
antialiasmode: D2D1_ANTIALIAS_MODE
)
pub unsafe fn IsSupported(
&self,
rendertargetproperties: *const D2D1_RENDER_TARGET_PROPERTIES
) -> BOOL
pub unsafe fn CreateBitmap2<'a, Param0: IntoParam<'a, D2D_SIZE_U>>(
&self,
size: Param0,
sourcedata: *const c_void,
pitch: u32,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES1
) -> Result<ID2D1Bitmap1>
pub unsafe fn CreateBitmapFromWicBitmap2<'a, Param0: IntoParam<'a, IWICBitmapSource>>(
&self,
wicbitmapsource: Param0,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES1
) -> Result<ID2D1Bitmap1>
pub unsafe fn CreateColorContext(
&self,
space: D2D1_COLOR_SPACE,
profile: *const u8,
profilesize: u32
) -> Result<ID2D1ColorContext>
pub unsafe fn CreateColorContextFromFilename<'a, Param0: IntoParam<'a, PWSTR>>(
&self,
filename: Param0
) -> Result<ID2D1ColorContext>
pub unsafe fn CreateColorContextFromWicColorContext<'a, Param0: IntoParam<'a, IWICColorContext>>(
&self,
wiccolorcontext: Param0
) -> Result<ID2D1ColorContext>
pub unsafe fn CreateBitmapFromDxgiSurface<'a, Param0: IntoParam<'a, IDXGISurface>>(
&self,
surface: Param0,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES1
) -> Result<ID2D1Bitmap1>
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
) -> Result<ID2D1GradientStopCollection1>
pub unsafe fn CreateImageBrush<'a, Param0: IntoParam<'a, ID2D1Image>>(
&self,
image: Param0,
imagebrushproperties: *const D2D1_IMAGE_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES
) -> Result<ID2D1ImageBrush>
pub unsafe fn CreateBitmapBrush2<'a, Param0: IntoParam<'a, ID2D1Bitmap>>(
&self,
bitmap: Param0,
bitmapbrushproperties: *const D2D1_BITMAP_BRUSH_PROPERTIES1,
brushproperties: *const D2D1_BRUSH_PROPERTIES
) -> Result<ID2D1BitmapBrush1>
pub unsafe fn IsBufferPrecisionSupported(
&self,
bufferprecision: D2D1_BUFFER_PRECISION
) -> BOOL
pub unsafe fn GetImageLocalBounds<'a, Param0: IntoParam<'a, ID2D1Image>>(
&self,
image: Param0
) -> Result<D2D_RECT_F>
pub unsafe fn GetImageWorldBounds<'a, Param0: IntoParam<'a, ID2D1Image>>(
&self,
image: Param0
) -> Result<D2D_RECT_F>
pub unsafe fn GetGlyphRunWorldBounds<'a, Param0: IntoParam<'a, D2D_POINT_2F>>(
&self,
baselineorigin: Param0,
glyphrun: *const DWRITE_GLYPH_RUN,
measuringmode: DWRITE_MEASURING_MODE
) -> Result<D2D_RECT_F>
pub unsafe fn DrawGlyphRun2<'a, Param0: IntoParam<'a, D2D_POINT_2F>, Param3: IntoParam<'a, ID2D1Brush>>(
&self,
baselineorigin: Param0,
glyphrun: *const DWRITE_GLYPH_RUN,
glyphrundescription: *const DWRITE_GLYPH_RUN_DESCRIPTION,
foregroundbrush: Param3,
measuringmode: DWRITE_MEASURING_MODE
)
pub unsafe fn DrawImage<'a, Param0: IntoParam<'a, ID2D1Image>>(
&self,
image: Param0,
targetoffset: *const D2D_POINT_2F,
imagerectangle: *const D2D_RECT_F,
interpolationmode: D2D1_INTERPOLATION_MODE,
compositemode: D2D1_COMPOSITE_MODE
)
pub unsafe fn DrawGdiMetafile<'a, Param0: IntoParam<'a, ID2D1GdiMetafile>>(
&self,
gdimetafile: Param0,
targetoffset: *const D2D_POINT_2F
)
pub unsafe fn DrawBitmap2<'a, Param0: IntoParam<'a, ID2D1Bitmap>>(
&self,
bitmap: Param0,
destinationrectangle: *const D2D_RECT_F,
opacity: f32,
interpolationmode: D2D1_INTERPOLATION_MODE,
sourcerectangle: *const D2D_RECT_F,
perspectivetransform: *const D2D_MATRIX_4X4_F
)
pub unsafe fn PushLayer2<'a, Param1: IntoParam<'a, ID2D1Layer>>(
&self,
layerparameters: *const D2D1_LAYER_PARAMETERS1,
layer: Param1
)
pub unsafe fn InvalidateEffectInputRectangle<'a, Param0: IntoParam<'a, ID2D1Effect>>(
&self,
effect: Param0,
input: u32,
inputrectangle: *const D2D_RECT_F
) -> Result<()>
pub unsafe fn GetEffectInvalidRectangleCount<'a, Param0: IntoParam<'a, ID2D1Effect>>(
&self,
effect: Param0
) -> Result<u32>
pub unsafe fn GetEffectInvalidRectangles<'a, Param0: IntoParam<'a, ID2D1Effect>>(
&self,
effect: Param0,
rectangles: *mut D2D_RECT_F,
rectanglescount: u32
) -> Result<()>
pub unsafe fn GetEffectRequiredInputRectangles<'a, Param0: IntoParam<'a, ID2D1Effect>>(
&self,
rendereffect: Param0,
renderimagerectangle: *const D2D_RECT_F,
inputdescriptions: *const D2D1_EFFECT_INPUT_DESCRIPTION,
requiredinputrects: *mut D2D_RECT_F,
inputcount: u32
) -> Result<()>
pub unsafe fn FillOpacityMask2<'a, Param0: IntoParam<'a, ID2D1Bitmap>, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
opacitymask: Param0,
brush: Param1,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
)
pub unsafe fn CreateFilledGeometryRealization<'a, Param0: IntoParam<'a, ID2D1Geometry>>(
&self,
geometry: Param0,
flatteningtolerance: f32
) -> Result<ID2D1GeometryRealization>
pub unsafe fn CreateStrokedGeometryRealization<'a, Param0: IntoParam<'a, ID2D1Geometry>, Param3: IntoParam<'a, ID2D1StrokeStyle>>(
&self,
geometry: Param0,
flatteningtolerance: f32,
strokewidth: f32,
strokestyle: Param3
) -> Result<ID2D1GeometryRealization>
pub unsafe fn DrawGeometryRealization<'a, Param0: IntoParam<'a, ID2D1GeometryRealization>, Param1: IntoParam<'a, ID2D1Brush>>(
&self,
geometryrealization: Param0,
brush: Param1
)
pub unsafe fn CreateInkStyle(
&self,
inkstyleproperties: *const D2D1_INK_STYLE_PROPERTIES
) -> Result<ID2D1InkStyle>
pub unsafe fn CreateGradientMesh(
&self,
patches: *const D2D1_GRADIENT_MESH_PATCH,
patchescount: u32
) -> Result<ID2D1GradientMesh>
pub unsafe fn CreateImageSourceFromWic<'a, Param0: IntoParam<'a, IWICBitmapSource>>(
&self,
wicbitmapsource: Param0,
loadingoptions: D2D1_IMAGE_SOURCE_LOADING_OPTIONS,
alphamode: D2D1_ALPHA_MODE
) -> Result<ID2D1ImageSourceFromWic>
pub unsafe fn CreateLookupTable3D(
&self,
precision: D2D1_BUFFER_PRECISION,
extents: *const u32,
data: *const u8,
datacount: u32,
strides: *const u32
) -> Result<ID2D1LookupTable3D>
pub unsafe fn CreateImageSourceFromDxgi(
&self,
surfaces: *const Option<IDXGISurface>,
surfacecount: u32,
colorspace: DXGI_COLOR_SPACE_TYPE,
options: D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS
) -> Result<ID2D1ImageSource>
pub unsafe fn GetGradientMeshWorldBounds<'a, Param0: IntoParam<'a, ID2D1GradientMesh>>(
&self,
gradientmesh: Param0
) -> Result<D2D_RECT_F>
pub unsafe fn DrawInk<'a, Param0: IntoParam<'a, ID2D1Ink>, Param1: IntoParam<'a, ID2D1Brush>, Param2: IntoParam<'a, ID2D1InkStyle>>(
&self,
ink: Param0,
brush: Param1,
inkstyle: Param2
)
pub unsafe fn DrawGradientMesh<'a, Param0: IntoParam<'a, ID2D1GradientMesh>>(
&self,
gradientmesh: Param0
)
pub unsafe fn DrawGdiMetafile2<'a, Param0: IntoParam<'a, ID2D1GdiMetafile>>(
&self,
gdimetafile: Param0,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
)
pub unsafe fn CreateTransformedImageSource<'a, Param0: IntoParam<'a, ID2D1ImageSource>>(
&self,
imagesource: Param0,
properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES
) -> Result<ID2D1TransformedImageSource>
pub unsafe fn DrawSpriteBatch<'a, Param0: IntoParam<'a, ID2D1SpriteBatch>, Param3: IntoParam<'a, ID2D1Bitmap>>(
&self,
spritebatch: Param0,
startindex: u32,
spritecount: u32,
bitmap: Param3,
interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE,
spriteoptions: D2D1_SPRITE_OPTIONS
)
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.
Performs the conversion.
Performs the conversion.
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 ID2D1DeviceContext3
impl !Send for ID2D1DeviceContext3
impl !Sync for ID2D1DeviceContext3
impl Unpin for ID2D1DeviceContext3
impl UnwindSafe for ID2D1DeviceContext3
Blanket Implementations
Mutably borrows from an owned value. Read more