/** * @file XTPMarkupPathData.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPMARKUPPATHDATA_H__) # define __XTPMARKUPPATHDATA_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPMarkupPathData; class CXTPMarkupBuilder; class CXTPMarkupObject; class CXTPMarkupDependencyProperty; struct MARKUP_POINTF; class _XTP_EXT_CLASS CXTPMarkupPathData : public CXTPMarkupObject { public: /** @cond */ DECLARE_MARKUPCLASS(CXTPMarkupPathData) /** @endcond */ public: CXTPMarkupPathData(); CXTPMarkupPathData(const MARKUP_POINTF* pPoints, const BYTE* pTypes, int nCount); ~CXTPMarkupPathData(); public: MARKUP_POINTF* GetPoints() const; int GetCount() const; BYTE* GetTypes() const; CRect GetBounds() const; CXTPMarkupPathData* Stretch(CSize sz) const; protected: void SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent); CXTPMarkupObject* ConvertFrom(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pObject) const; void UpdateBounds(); protected: MARKUP_POINTF* m_pPoints; int m_nCount; BYTE* m_pTypes; CRect m_rcBounds; public: int m_nFillRule; int m_nPixelOffsetMode; public: static CXTPMarkupDependencyProperty* m_pPropertyGeometry; }; AFX_INLINE MARKUP_POINTF* CXTPMarkupPathData::GetPoints() const { return m_pPoints; } AFX_INLINE int CXTPMarkupPathData::GetCount() const { return m_nCount; } AFX_INLINE BYTE* CXTPMarkupPathData::GetTypes() const { return m_pTypes; } AFX_INLINE CRect CXTPMarkupPathData::GetBounds() const { return m_rcBounds; } # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPPATHDATA_H__) /** @endcond */