Struct mltg_bindings::Windows::Win32::Graphics::Direct2D::ID2D1RenderTarget [−][src]
#[repr(transparent)]pub struct ID2D1RenderTarget(_);
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
) -> Result<ID2D1Bitmap>
pub unsafe fn CreateBitmapFromWicBitmap<'a>(
&self,
wicbitmapsource: impl IntoParam<'a, IWICBitmapSource>,
bitmapproperties: *const D2D1_BITMAP_PROPERTIES
) -> Result<ID2D1Bitmap>
pub unsafe fn CreateBitmapBrush<'a>(
&self,
bitmap: impl IntoParam<'a, ID2D1Bitmap>,
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>(
&self,
lineargradientbrushproperties: *const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
gradientstopcollection: impl IntoParam<'a, ID2D1GradientStopCollection>
) -> Result<ID2D1LinearGradientBrush>
pub unsafe fn CreateRadialGradientBrush<'a>(
&self,
radialgradientbrushproperties: *const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES,
brushproperties: *const D2D1_BRUSH_PROPERTIES,
gradientstopcollection: impl IntoParam<'a, ID2D1GradientStopCollection>
) -> 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>(
&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>
)
pub unsafe fn DrawRectangle<'a>(
&self,
rect: *const D2D_RECT_F,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
pub unsafe fn FillRectangle<'a>(
&self,
rect: *const D2D_RECT_F,
brush: impl IntoParam<'a, ID2D1Brush>
)
pub unsafe fn DrawRoundedRectangle<'a>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
pub unsafe fn FillRoundedRectangle<'a>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: impl IntoParam<'a, ID2D1Brush>
)
pub unsafe fn DrawEllipse<'a>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
pub unsafe fn FillEllipse<'a>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: impl IntoParam<'a, ID2D1Brush>
)
pub unsafe fn DrawGeometry<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
brush: impl IntoParam<'a, ID2D1Brush>,
strokewidth: f32,
strokestyle: impl IntoParam<'a, ID2D1StrokeStyle>
)
pub unsafe fn FillGeometry<'a>(
&self,
geometry: impl IntoParam<'a, ID2D1Geometry>,
brush: impl IntoParam<'a, ID2D1Brush>,
opacitybrush: impl IntoParam<'a, ID2D1Brush>
)
pub unsafe fn FillMesh<'a>(
&self,
mesh: impl IntoParam<'a, ID2D1Mesh>,
brush: impl IntoParam<'a, ID2D1Brush>
)
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
)
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
)
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
)
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
)
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
)
pub unsafe fn SetTextRenderingParams<'a>(
&self,
textrenderingparams: impl IntoParam<'a, IDWriteRenderingParams>
)
pub unsafe fn GetTextRenderingParams(
&self,
textrenderingparams: *mut Option<IDWriteRenderingParams>
)
pub unsafe fn PushLayer<'a>(
&self,
layerparameters: *const D2D1_LAYER_PARAMETERS,
layer: impl IntoParam<'a, ID2D1Layer>
)
pub unsafe fn SaveDrawingState<'a>(
&self,
drawingstateblock: impl IntoParam<'a, ID2D1DrawingStateBlock>
)
pub unsafe fn RestoreDrawingState<'a>(
&self,
drawingstateblock: impl IntoParam<'a, ID2D1DrawingStateBlock>
)
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
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.
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 ID2D1RenderTarget
impl !Send for ID2D1RenderTarget
impl !Sync for ID2D1RenderTarget
impl Unpin for ID2D1RenderTarget
impl UnwindSafe for ID2D1RenderTarget
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