|
void | SetViewportSize (const D2D1_SIZE_F &viewportSize) const |
| Sets the size of the initial viewport.
|
|
D2D1_SIZE_F | GetViewportSize () const |
| Returns the size of the initial viewport.
|
|
void | SetRoot (_In_opt_ ID2D1SvgElement *root) const |
| Sets the root element of the document. The root element must be an 'svg' element. If the element already exists within an svg tree, it is first removed.
|
|
void | SetRoot (const SvgElement &root) const |
|
void | GetRoot (ID2D1SvgElement **root) const |
| Gets the root element of the document.
|
|
SvgElement | GetRoot () const |
|
void | FindElementById (_In_ PCWSTR id, ID2D1SvgElement **svgElement) const |
| Gets the SVG element with the specified ID. If the element cannot be found, the returned element will be null.
|
|
SvgElement | FindElementById (_In_ PCWSTR id) const |
|
void | Serialize (_In_ IStream *outputXmlStream, _In_opt_ ID2D1SvgElement *subtree=nullptr) const |
| Serializes an element and its subtree to XML. The output XML is encoded as UTF-8.
|
|
void | Serialize (const Stream &outputXmlStream, _In_opt_ ID2D1SvgElement *subtree=nullptr) const |
|
void | Serialize (const Stream &outputXmlStream, const SvgElement &subtree) const |
|
void | Deserialize (_In_ IStream *inputXmlStream, ID2D1SvgElement **subtree) const |
| Deserializes a subtree from the stream. The stream must have only one root element, but that root element need not be an 'svg' element. The output element is not inserted into this document tree.
|
|
void | Deserialize (const Stream &inputXmlStream, ID2D1SvgElement **subtree) const |
|
SvgElement | Deserialize (_In_ IStream *inputXmlStream) const |
|
SvgElement | Deserialize (const Stream &inputXmlStream) const |
|
void | CreatePaint (D2D1_SVG_PAINT_TYPE paintType, _In_opt_ const D2D1_COLOR_F *color, _In_opt_ PCWSTR id, ID2D1SvgPaint **paint) const |
| Creates a paint object which can be used to set the 'fill' or 'stroke' properties.
|
|
SvgPaint | CreatePaint (D2D1_SVG_PAINT_TYPE paintType, _In_opt_ const D2D1_COLOR_F *color=nullptr, _In_opt_ PCWSTR id=nullptr) const |
|
SvgPaint | CreatePaint (const D2D1_COLOR_F *color) const |
|
SvgPaint | CreatePaint (PCWSTR id) const |
|
void | CreateStrokeDashArray (const D2D1_SVG_LENGTH *dashes, UINT32 dashesCount, ID2D1SvgStrokeDashArray **strokeDashArray) const |
| Creates a dash array object which can be used to set the 'stroke-dasharray' property.
|
|
SvgStrokeDashArray | CreateStrokeDashArray (const D2D1_SVG_LENGTH *dashes, UINT32 dashesCount) const |
|
void | CreatePointCollection (const D2D1_POINT_2F *points, UINT32 pointsCount, ID2D1SvgPointCollection **pointCollection) const |
| Creates a points object which can be used to set a 'points' attribute on a 'polygon' or 'polyline' element.
|
|
SvgPointCollection | CreatePointCollection (const D2D1_POINT_2F *points, UINT32 pointsCount) const |
|
void | CreatePathData (const FLOAT *segmentData, UINT32 segmentDataCount, const D2D1_SVG_PATH_COMMAND *commands, UINT32 commandsCount, ID2D1SvgPathData **pathData) const |
| Creates a path data object which can be used to set a 'd' attribute on a 'path' element.
|
|
SvgPathData | CreatePathData (const FLOAT *segmentData, UINT32 segmentDataCount, const D2D1_SVG_PATH_COMMAND *commands, UINT32 commandsCount) const |
|
template<typename T = Factory>
requires std::is_base_of_v< Factory, T> |
T | GetFactory () |
|
constexpr | Unknown () noexcept |
|
| Unknown (IUnknown *unknown, bool addref=false) noexcept |
|
| Unknown (REFIID iid, const Unknown &unknown, bool throwIfNoInterface=true) |
|
| Unknown (const Unknown &other) noexcept |
|
| Unknown (Unknown &&other) noexcept |
|
| ~Unknown () noexcept |
|
constexpr | operator bool () const noexcept |
|
Unknown & | operator= (const Unknown &other) noexcept |
|
Unknown & | operator= (Unknown &&other) noexcept |
|
void | swap (Unknown &other) noexcept |
|
void | ResetPtr (IUnknown *other=nullptr, bool addRef=false) noexcept |
|
Unknown & | operator= (nullptr_t) |
|
IUnknown * | Detach () |
|
template<typename T >
requires std::is_base_of_v<Unknown, T > |
T | As () const |
|
template<typename T >
requires std::is_base_of_v<Unknown, T> |
bool | Is () const noexcept |
|
template<typename T >
requires std::is_base_of_v<IUnknown, T> |
ComPtr< T > | As () const |
|
template<typename T >
requires std::is_base_of_v<IUnknown, T> |
bool | Is () const noexcept |
| This function can be used to detect if an object supports a particular COM interface derived from IUnknown.
|
|
template<typename T = IUnknown> |
T * | GetInterfacePointer () const noexcept |
|
bool | QueryInterface (REFIID riid, void **itf) const |
| Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID). If the COM object implements the interface, then it returns a pointer to that interface after calling IUnknown::AddRef on it.
|
|
template<typename T >
requires std::is_base_of_v<IUnknown, T> |
bool | QueryInterface (T **itf) const |
|
constexpr bool | operator== (const Unknown &other) const noexcept |
|
constexpr bool | operator!= (const Unknown &other) const noexcept |
|
constexpr bool | operator== (const IUnknown *other) const noexcept |
|
constexpr bool | operator!= (const IUnknown *other) const noexcept |
|