Struct mltg_bindings::Windows::Win32::Graphics::Direct2D::ID2D1CommandSink4 [−][src]
#[repr(transparent)]pub struct ID2D1CommandSink4(_);
Implementations
pub unsafe fn SetTextAntialiasMode(
&self,
textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE
) -> Result<()>
pub unsafe fn SetTextRenderingParams<'a>(
&self,
textrenderingparams: impl IntoParam<'a, IDWriteRenderingParams>
) -> Result<()>
pub unsafe fn DrawGlyphRun<'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
) -> Result<()>
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>
) -> Result<()>
pub unsafe fn DrawGeometry<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
) -> Result<()>
pub unsafe fn DrawRectangle<'a>(
&self,
rect: *const D2D_RECT_F,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
) -> Result<()>
pub unsafe fn DrawBitmap<'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
) -> Result<()>
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
) -> Result<()>
pub unsafe fn DrawGdiMetafile<'a>(
&self,
gdimetafile: impl IntoParam<'a, ID2D1GdiMetafile>,
targetoffset: *const D2D_POINT_2F
) -> Result<()>
pub unsafe fn FillMesh<'a>(
&self,
mesh: impl IntoParam<'a, ID2D1Mesh>,
brush: impl IntoParam<'a, ID2D1Brush>
) -> Result<()>
pub unsafe fn FillOpacityMask<'a>(
&self,
opacitymask: impl IntoParam<'a, ID2D1Bitmap>,
brush: impl IntoParam<'a, ID2D1Brush>,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
) -> Result<()>
pub unsafe fn FillGeometry<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
brush: impl IntoParam<'a, ID2D1Brush>,
opacitybrush: impl IntoParam<'a, ID2D1Brush>
) -> Result<()>
pub unsafe fn FillRectangle<'a>(
&self,
rect: *const D2D_RECT_F,
brush: impl IntoParam<'a, ID2D1Brush>
) -> Result<()>
pub unsafe fn PushAxisAlignedClip(
&self,
cliprect: *const D2D_RECT_F,
antialiasmode: D2D1_ANTIALIAS_MODE
) -> Result<()>
pub unsafe fn PushLayer<'a>(
&self,
layerparameters1: *const D2D1_LAYER_PARAMETERS1,
layer: impl IntoParam<'a, ID2D1Layer>
) -> Result<()>
pub unsafe fn DrawInk<'a>(
&self,
ink: impl IntoParam<'a, ID2D1Ink>,
brush: impl IntoParam<'a, ID2D1Brush>,
inkstyle: impl IntoParam<'a, ID2D1InkStyle>
) -> Result<()>
pub unsafe fn DrawGradientMesh<'a>(
&self,
gradientmesh: impl IntoParam<'a, ID2D1GradientMesh>
) -> Result<()>
pub unsafe fn DrawGdiMetafile2<'a>(
&self,
gdimetafile: impl IntoParam<'a, ID2D1GdiMetafile>,
destinationrectangle: *const D2D_RECT_F,
sourcerectangle: *const D2D_RECT_F
) -> Result<()>
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
) -> Result<()>
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.
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 ID2D1CommandSink4
impl !Send for ID2D1CommandSink4
impl !Sync for ID2D1CommandSink4
impl Unpin for ID2D1CommandSink4
impl UnwindSafe for ID2D1CommandSink4
Blanket Implementations
type DefaultType = Option<T>
Converts from Self::DefaultType
to Result<T>
.
Returns a pointer for setting the object’s value via an ABI call.
Mutably borrows from an owned value. Read more