Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::Windows::Graphics::SvgPathData Class Reference

#include <HWGraphics.h>

Inheritance diagram for Harlinn::Windows::Graphics::SvgPathData:
[legend]
Collaboration diagram for Harlinn::Windows::Graphics::SvgPathData:
[legend]

Public Member Functions

void RemoveSegmentDataAtEnd (UINT32 dataCount) const
 Removes data from the end of the segment data array.
 
void UpdateSegmentData (const FLOAT *data, UINT32 dataCount, UINT32 startIndex=0) const
 Updates the segment data array. Existing segment data not updated by this method are preserved. The array is resized larger if necessary to accomodate the new segment data.
 
void GetSegmentData (FLOAT *data, UINT32 dataCount, UINT32 startIndex=0) const
 Gets data from the segment data array.
 
UINT32 GetSegmentDataCount () const
 Gets the size of the segment data array.
 
void RemoveCommandsAtEnd (UINT32 commandsCount) const
 Removes commands from the end of the commands array.
 
void UpdateCommands (const D2D1_SVG_PATH_COMMAND *commands, UINT32 commandsCount, UINT32 startIndex=0) const
 Updates the commands array. Existing commands not updated by this method are preserved. The array is resized larger if necessary to accomodate the new commands.
 
void GetCommands (D2D1_SVG_PATH_COMMAND *commands, UINT32 commandsCount, UINT32 startIndex=0) const
 Gets commands from the commands array.
 
UINT32 GetCommandsCount () const
 Gets the size of the commands array.
 
void CreatePathGeometry (D2D1_FILL_MODE fillMode, ID2D1PathGeometry1 **pathGeometry) const
 Creates a path geometry object representing the path data.
 
PathGeometry1 CreatePathGeometry (D2D1_FILL_MODE fillMode) const
 
- Public Member Functions inherited from Harlinn::Windows::Graphics::SvgAttribute
void GetElement (ID2D1SvgElement **element) const
 Returns the element on which this attribute is set. Returns null if the attribute is not set on any element.
 
void Clone (ID2D1SvgAttribute **attribute) const
 Creates a clone of this attribute value. On creation, the cloned attribute is not set on any element.
 
- Public Member Functions inherited from Harlinn::Windows::Graphics::Resource
template<typename T = Factory>
requires std::is_base_of_v< Factory, T>
T GetFactory ()
 
- Public Member Functions inherited from Harlinn::Common::Core::Unknown
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
 
Unknownoperator= (const Unknown &other) noexcept
 
Unknownoperator= (Unknown &&other) noexcept
 
void swap (Unknown &other) noexcept
 
void ResetPtr (IUnknown *other=nullptr, bool addRef=false) noexcept
 
Unknownoperator= (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< TAs () 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>
TGetInterfacePointer () 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
 

Additional Inherited Members

- Public Types inherited from Harlinn::Common::Core::Unknown
typedef IUnknown InterfaceType
 
- Static Public Member Functions inherited from Harlinn::Common::Core::Unknown
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromClassId (const CLSID &clsid, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromClassId (const wchar_t *clsid, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromClassId (const WideString &clsid, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromProgId (const wchar_t *progId, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromProgId (const WideString &progId, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromDll (const ModuleHandle &dll, const CLSID &clsid)
 
- Protected Attributes inherited from Harlinn::Common::Core::Unknown
IUnknown * unknown_
 

Member Function Documentation

◆ CreatePathGeometry() [1/2]

PathGeometry1 Harlinn::Windows::Graphics::SvgPathData::CreatePathGeometry ( D2D1_FILL_MODE fillMode) const
inline

◆ CreatePathGeometry() [2/2]

void Harlinn::Windows::Graphics::SvgPathData::CreatePathGeometry ( D2D1_FILL_MODE fillMode,
ID2D1PathGeometry1 ** pathGeometry ) const
inline

Creates a path geometry object representing the path data.

◆ GetCommands()

void Harlinn::Windows::Graphics::SvgPathData::GetCommands ( D2D1_SVG_PATH_COMMAND * commands,
UINT32 commandsCount,
UINT32 startIndex = 0 ) const
inline

Gets commands from the commands array.

Parameters
commandsBuffer to contain the commands
commandsCountThe element count of the buffer.
startIndexThe index of the first commands to retrieve.

◆ GetCommandsCount()

UINT32 Harlinn::Windows::Graphics::SvgPathData::GetCommandsCount ( ) const
inline

Gets the size of the commands array.

◆ GetSegmentData()

void Harlinn::Windows::Graphics::SvgPathData::GetSegmentData ( FLOAT * data,
UINT32 dataCount,
UINT32 startIndex = 0 ) const
inline

Gets data from the segment data array.

Parameters
dataBuffer to contain the segment data array.
dataCountThe element count of the buffer.
startIndexThe index of the first segment data to retrieve.

◆ GetSegmentDataCount()

UINT32 Harlinn::Windows::Graphics::SvgPathData::GetSegmentDataCount ( ) const
inline

Gets the size of the segment data array.

◆ RemoveCommandsAtEnd()

void Harlinn::Windows::Graphics::SvgPathData::RemoveCommandsAtEnd ( UINT32 commandsCount) const
inline

Removes commands from the end of the commands array.

Parameters
commandsCountSpecifies how many commands to remove.

◆ RemoveSegmentDataAtEnd()

void Harlinn::Windows::Graphics::SvgPathData::RemoveSegmentDataAtEnd ( UINT32 dataCount) const
inline

Removes data from the end of the segment data array.

Parameters
dataCountSpecifies how much data to remove.

◆ UpdateCommands()

void Harlinn::Windows::Graphics::SvgPathData::UpdateCommands ( const D2D1_SVG_PATH_COMMAND * commands,
UINT32 commandsCount,
UINT32 startIndex = 0 ) const
inline

Updates the commands array. Existing commands not updated by this method are preserved. The array is resized larger if necessary to accomodate the new commands.

Parameters
commandsThe commands array.
commandsCountThe number of commands to update.
startIndexThe index at which to begin updating commands. Must be less than or equal to the size of the commands array.

◆ UpdateSegmentData()

void Harlinn::Windows::Graphics::SvgPathData::UpdateSegmentData ( const FLOAT * data,
UINT32 dataCount,
UINT32 startIndex = 0 ) const
inline

Updates the segment data array. Existing segment data not updated by this method are preserved. The array is resized larger if necessary to accomodate the new segment data.

Parameters
dataThe data array.
dataCountThe number of data to update.
startIndexThe index at which to begin updating segment data. Must be less than or equal to the size of the segment data array.

The documentation for this class was generated from the following file: