Struct windows::Win32::Graphics::Direct2D::ID2D1SvgDocument
#[repr(transparent)]pub struct ID2D1SvgDocument(_);
Expand description
Required features: "Win32_Graphics_Direct2D"
Implementations§
§impl ID2D1SvgDocument
impl ID2D1SvgDocument
pub unsafe fn GetFactory(&self, factory: *mut Option<ID2D1Factory>)
pub unsafe fn SetViewportSize(&self, viewportsize: D2D_SIZE_F) -> Result<()>
pub unsafe fn SetViewportSize(&self, viewportsize: D2D_SIZE_F) -> Result<()>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn GetViewportSize(&self) -> D2D_SIZE_F
pub unsafe fn GetViewportSize(&self) -> D2D_SIZE_F
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn SetRoot<'a, P0>(&self, root: P0) -> Result<()>where
P0: Into<InParam<'a, ID2D1SvgElement>>,
pub unsafe fn GetRoot(&self, root: Option<*mut Option<ID2D1SvgElement>>)
pub unsafe fn FindElementById<'a, P0>(&self, id: P0) -> Result<ID2D1SvgElement>where
P0: Into<PCWSTR>,
pub unsafe fn CreatePaint<'a, P0>(
&self,
painttype: D2D1_SVG_PAINT_TYPE,
color: Option<*const D2D1_COLOR_F>,
id: P0
) -> Result<ID2D1SvgPaint>where
P0: Into<PCWSTR>,
pub unsafe fn CreatePaint<'a, P0>(
&self,
painttype: D2D1_SVG_PAINT_TYPE,
color: Option<*const D2D1_COLOR_F>,
id: P0
) -> Result<ID2D1SvgPaint>where
P0: Into<PCWSTR>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreateStrokeDashArray(
&self,
dashes: Option<&[D2D1_SVG_LENGTH]>
) -> Result<ID2D1SvgStrokeDashArray>
pub unsafe fn CreatePointCollection(
&self,
points: Option<&[D2D_POINT_2F]>
) -> Result<ID2D1SvgPointCollection>
pub unsafe fn CreatePointCollection(
&self,
points: Option<&[D2D_POINT_2F]>
) -> Result<ID2D1SvgPointCollection>
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CreatePathData(
&self,
segmentdata: Option<&[f32]>,
commands: Option<&[D2D1_SVG_PATH_COMMAND]>
) -> Result<ID2D1SvgPathData>
Trait Implementations§
§impl Clone for ID2D1SvgDocument
impl Clone for ID2D1SvgDocument
§impl Debug for ID2D1SvgDocument
impl Debug for ID2D1SvgDocument
§impl<'a> From<&'a ID2D1SvgDocument> for &'a ID2D1Resource
impl<'a> From<&'a ID2D1SvgDocument> for &'a ID2D1Resource
§fn from(value: &'a ID2D1SvgDocument) -> Self
fn from(value: &'a ID2D1SvgDocument) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1SvgDocument> for &'a IUnknown
impl<'a> From<&'a ID2D1SvgDocument> for &'a IUnknown
§fn from(value: &'a ID2D1SvgDocument) -> Self
fn from(value: &'a ID2D1SvgDocument) -> Self
Converts to this type from the input type.
§impl From<&ID2D1SvgDocument> for ID2D1Resource
impl From<&ID2D1SvgDocument> for ID2D1Resource
§fn from(value: &ID2D1SvgDocument) -> Self
fn from(value: &ID2D1SvgDocument) -> Self
Converts to this type from the input type.
§impl From<&ID2D1SvgDocument> for IUnknown
impl From<&ID2D1SvgDocument> for IUnknown
§fn from(value: &ID2D1SvgDocument) -> Self
fn from(value: &ID2D1SvgDocument) -> Self
Converts to this type from the input type.
§impl From<ID2D1SvgDocument> for ID2D1Resource
impl From<ID2D1SvgDocument> for ID2D1Resource
§fn from(value: ID2D1SvgDocument) -> Self
fn from(value: ID2D1SvgDocument) -> Self
Converts to this type from the input type.
§impl From<ID2D1SvgDocument> for IUnknown
impl From<ID2D1SvgDocument> for IUnknown
§fn from(value: ID2D1SvgDocument) -> Self
fn from(value: ID2D1SvgDocument) -> Self
Converts to this type from the input type.
§impl Interface for ID2D1SvgDocument
impl Interface for ID2D1SvgDocument
§impl PartialEq<ID2D1SvgDocument> for ID2D1SvgDocument
impl PartialEq<ID2D1SvgDocument> for ID2D1SvgDocument
§impl Vtable for ID2D1SvgDocument
impl Vtable for ID2D1SvgDocument
type Vtable = ID2D1SvgDocument_Vtbl
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.