Struct windows::Win32::Graphics::Direct2D::ID2D1HwndRenderTarget
#[repr(transparent)]pub struct ID2D1HwndRenderTarget(_);
Expand description
Required features: "Win32_Graphics_Direct2D"
Implementations§
§impl ID2D1HwndRenderTarget
impl ID2D1HwndRenderTarget
pub unsafe fn GetFactory(&self, factory: *mut Option<ID2D1Factory>)
pub unsafe fn CreateGradientStopCollection(
&self,
gradientstops: &[D2D1_GRADIENT_STOP],
colorinterpolationgamma: D2D1_GAMMA,
extendmode: D2D1_EXTEND_MODE
) -> Result<ID2D1GradientStopCollection>
pub unsafe fn CreateGradientStopCollection(
&self,
gradientstops: &[D2D1_GRADIENT_STOP],
colorinterpolationgamma: D2D1_GAMMA,
extendmode: D2D1_EXTEND_MODE
) -> Result<ID2D1GradientStopCollection>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreateLayer(
&self,
size: Option<*const D2D_SIZE_F>
) -> Result<ID2D1Layer>
pub unsafe fn CreateLayer(
&self,
size: Option<*const D2D_SIZE_F>
) -> Result<ID2D1Layer>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreateMesh(&self) -> Result<ID2D1Mesh>
pub unsafe fn DrawLine<'a, P0, P1>(
&self,
point0: D2D_POINT_2F,
point1: D2D_POINT_2F,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
pub unsafe fn DrawLine<'a, P0, P1>(
&self,
point0: D2D_POINT_2F,
point1: D2D_POINT_2F,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn DrawRectangle<'a, P0, P1>(
&self,
rect: *const D2D_RECT_F,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
pub unsafe fn DrawRectangle<'a, P0, P1>(
&self,
rect: *const D2D_RECT_F,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn FillRectangle<'a, P0>(&self, rect: *const D2D_RECT_F, brush: P0)where
P0: Into<InParam<'a, ID2D1Brush>>,
pub unsafe fn FillRectangle<'a, P0>(&self, rect: *const D2D_RECT_F, brush: P0)where
P0: Into<InParam<'a, ID2D1Brush>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn DrawRoundedRectangle<'a, P0, P1>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
pub unsafe fn DrawRoundedRectangle<'a, P0, P1>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn FillRoundedRectangle<'a, P0>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: P0
)where
P0: Into<InParam<'a, ID2D1Brush>>,
pub unsafe fn FillRoundedRectangle<'a, P0>(
&self,
roundedrect: *const D2D1_ROUNDED_RECT,
brush: P0
)where
P0: Into<InParam<'a, ID2D1Brush>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn DrawEllipse<'a, P0, P1>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
pub unsafe fn DrawEllipse<'a, P0, P1>(
&self,
ellipse: *const D2D1_ELLIPSE,
brush: P0,
strokewidth: f32,
strokestyle: P1
)where
P0: Into<InParam<'a, ID2D1Brush>>,
P1: Into<InParam<'a, ID2D1StrokeStyle>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn FillEllipse<'a, P0>(&self, ellipse: *const D2D1_ELLIPSE, brush: P0)where
P0: Into<InParam<'a, ID2D1Brush>>,
pub unsafe fn FillEllipse<'a, P0>(&self, ellipse: *const D2D1_ELLIPSE, brush: P0)where
P0: Into<InParam<'a, ID2D1Brush>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn DrawGeometry<'a, P0, P1, P2>(
&self,
geometry: P0,
brush: P1,
strokewidth: f32,
strokestyle: P2
)where
P0: Into<InParam<'a, ID2D1Geometry>>,
P1: Into<InParam<'a, ID2D1Brush>>,
P2: Into<InParam<'a, ID2D1StrokeStyle>>,
pub unsafe fn FillGeometry<'a, P0, P1, P2>(
&self,
geometry: P0,
brush: P1,
opacitybrush: P2
)where
P0: Into<InParam<'a, ID2D1Geometry>>,
P1: Into<InParam<'a, ID2D1Brush>>,
P2: Into<InParam<'a, ID2D1Brush>>,
pub unsafe fn FillMesh<'a, P0, P1>(&self, mesh: P0, brush: P1)where
P0: Into<InParam<'a, ID2D1Mesh>>,
P1: Into<InParam<'a, ID2D1Brush>>,
pub unsafe fn FillOpacityMask<'a, P0, P1>(
&self,
opacitymask: P0,
brush: P1,
content: D2D1_OPACITY_MASK_CONTENT,
destinationrectangle: Option<*const D2D_RECT_F>,
sourcerectangle: Option<*const D2D_RECT_F>
)where
P0: Into<InParam<'a, ID2D1Bitmap>>,
P1: Into<InParam<'a, ID2D1Brush>>,
pub unsafe fn FillOpacityMask<'a, P0, P1>(
&self,
opacitymask: P0,
brush: P1,
content: D2D1_OPACITY_MASK_CONTENT,
destinationrectangle: Option<*const D2D_RECT_F>,
sourcerectangle: Option<*const D2D_RECT_F>
)where
P0: Into<InParam<'a, ID2D1Bitmap>>,
P1: Into<InParam<'a, ID2D1Brush>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn DrawBitmap<'a, P0>(
&self,
bitmap: P0,
destinationrectangle: Option<*const D2D_RECT_F>,
opacity: f32,
interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE,
sourcerectangle: Option<*const D2D_RECT_F>
)where
P0: Into<InParam<'a, ID2D1Bitmap>>,
pub unsafe fn DrawBitmap<'a, P0>(
&self,
bitmap: P0,
destinationrectangle: Option<*const D2D_RECT_F>,
opacity: f32,
interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE,
sourcerectangle: Option<*const D2D_RECT_F>
)where
P0: Into<InParam<'a, ID2D1Bitmap>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn SetAntialiasMode(&self, antialiasmode: D2D1_ANTIALIAS_MODE)
pub unsafe fn GetAntialiasMode(&self) -> D2D1_ANTIALIAS_MODE
pub unsafe fn SetTextAntialiasMode(
&self,
textantialiasmode: D2D1_TEXT_ANTIALIAS_MODE
)
pub unsafe fn GetTextAntialiasMode(&self) -> D2D1_TEXT_ANTIALIAS_MODE
pub unsafe fn SetTags(&self, tag1: u64, tag2: u64)
pub unsafe fn GetTags(&self, tag1: Option<*mut u64>, tag2: Option<*mut u64>)
pub unsafe fn PopLayer(&self)
pub unsafe fn Flush(
&self,
tag1: Option<*mut u64>,
tag2: Option<*mut u64>
) -> Result<()>
pub unsafe fn SaveDrawingState<'a, P0>(&self, drawingstateblock: P0)where
P0: Into<InParam<'a, ID2D1DrawingStateBlock>>,
pub unsafe fn RestoreDrawingState<'a, P0>(&self, drawingstateblock: P0)where
P0: Into<InParam<'a, ID2D1DrawingStateBlock>>,
pub unsafe fn PushAxisAlignedClip(
&self,
cliprect: *const D2D_RECT_F,
antialiasmode: D2D1_ANTIALIAS_MODE
)
pub unsafe fn PushAxisAlignedClip(
&self,
cliprect: *const D2D_RECT_F,
antialiasmode: D2D1_ANTIALIAS_MODE
)
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn PopAxisAlignedClip(&self)
pub unsafe fn Clear(&self, clearcolor: Option<*const D2D1_COLOR_F>)
pub unsafe fn Clear(&self, clearcolor: Option<*const D2D1_COLOR_F>)
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn BeginDraw(&self)
pub unsafe fn EndDraw(
&self,
tag1: Option<*mut u64>,
tag2: Option<*mut u64>
) -> Result<()>
pub unsafe fn SetDpi(&self, dpix: f32, dpiy: f32)
pub unsafe fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32)
pub unsafe fn GetSize(&self) -> D2D_SIZE_F
pub unsafe fn GetSize(&self) -> D2D_SIZE_F
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn GetPixelSize(&self) -> D2D_SIZE_U
pub unsafe fn GetPixelSize(&self) -> D2D_SIZE_U
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn GetMaximumBitmapSize(&self) -> u32
pub unsafe fn CheckWindowState(&self) -> D2D1_WINDOW_STATE
pub unsafe fn Resize(&self, pixelsize: *const D2D_SIZE_U) -> Result<()>
pub unsafe fn Resize(&self, pixelsize: *const D2D_SIZE_U) -> Result<()>
Required features: "Win32_Graphics_Direct2D_Common"
Trait Implementations§
§impl Clone for ID2D1HwndRenderTarget
impl Clone for ID2D1HwndRenderTarget
§impl Debug for ID2D1HwndRenderTarget
impl Debug for ID2D1HwndRenderTarget
§impl<'a> From<&'a ID2D1HwndRenderTarget> for &'a ID2D1RenderTarget
impl<'a> From<&'a ID2D1HwndRenderTarget> for &'a ID2D1RenderTarget
§fn from(value: &'a ID2D1HwndRenderTarget) -> Self
fn from(value: &'a ID2D1HwndRenderTarget) -> Self
§impl<'a> From<&'a ID2D1HwndRenderTarget> for &'a ID2D1Resource
impl<'a> From<&'a ID2D1HwndRenderTarget> for &'a ID2D1Resource
§fn from(value: &'a ID2D1HwndRenderTarget) -> Self
fn from(value: &'a ID2D1HwndRenderTarget) -> Self
§impl<'a> From<&'a ID2D1HwndRenderTarget> for &'a IUnknown
impl<'a> From<&'a ID2D1HwndRenderTarget> for &'a IUnknown
§fn from(value: &'a ID2D1HwndRenderTarget) -> Self
fn from(value: &'a ID2D1HwndRenderTarget) -> Self
§impl From<&ID2D1HwndRenderTarget> for ID2D1RenderTarget
impl From<&ID2D1HwndRenderTarget> for ID2D1RenderTarget
§fn from(value: &ID2D1HwndRenderTarget) -> Self
fn from(value: &ID2D1HwndRenderTarget) -> Self
§impl From<&ID2D1HwndRenderTarget> for ID2D1Resource
impl From<&ID2D1HwndRenderTarget> for ID2D1Resource
§fn from(value: &ID2D1HwndRenderTarget) -> Self
fn from(value: &ID2D1HwndRenderTarget) -> Self
§impl From<&ID2D1HwndRenderTarget> for IUnknown
impl From<&ID2D1HwndRenderTarget> for IUnknown
§fn from(value: &ID2D1HwndRenderTarget) -> Self
fn from(value: &ID2D1HwndRenderTarget) -> Self
§impl From<ID2D1HwndRenderTarget> for ID2D1RenderTarget
impl From<ID2D1HwndRenderTarget> for ID2D1RenderTarget
§fn from(value: ID2D1HwndRenderTarget) -> Self
fn from(value: ID2D1HwndRenderTarget) -> Self
§impl From<ID2D1HwndRenderTarget> for ID2D1Resource
impl From<ID2D1HwndRenderTarget> for ID2D1Resource
§fn from(value: ID2D1HwndRenderTarget) -> Self
fn from(value: ID2D1HwndRenderTarget) -> Self
§impl From<ID2D1HwndRenderTarget> for IUnknown
impl From<ID2D1HwndRenderTarget> for IUnknown
§fn from(value: ID2D1HwndRenderTarget) -> Self
fn from(value: ID2D1HwndRenderTarget) -> Self
§impl Interface for ID2D1HwndRenderTarget
impl Interface for ID2D1HwndRenderTarget
§impl PartialEq<ID2D1HwndRenderTarget> for ID2D1HwndRenderTarget
impl PartialEq<ID2D1HwndRenderTarget> for ID2D1HwndRenderTarget
§impl Vtable for ID2D1HwndRenderTarget
impl Vtable for ID2D1HwndRenderTarget
type Vtable = ID2D1HwndRenderTarget_Vtbl
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Interface
implementation.