/** * @file XTPMarkupRenderTransform.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(__XTPMARKUPRENDERTRANSFORM_H__) # define __XTPMARKUPRENDERTRANSFORM_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPMarkupRotateTransform; class CXTPMarkupTransform; class CXTPMarkupObject; class CXTPMarkupDependencyProperty; class CXTPMarkupBuilder; class _XTP_EXT_CLASS CXTPMarkupRenderTransform : public CXTPMarkupObject { /** @cond */ DECLARE_MARKUPCLASS(CXTPMarkupRenderTransform); /** @endcond */ public: CXTPMarkupRenderTransform(); ~CXTPMarkupRenderTransform(); CXTPMarkupTransform* GetTransformObject() const; CXTPMarkupObject* GetTargetObject() const; protected: virtual void SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent); virtual void OnSetAsProperty(CXTPMarkupDependencyProperty* pProperty, CXTPMarkupObject* pTargetObject); private: CXTPMarkupDependencyProperty* m_pContentProperty; CXTPMarkupObject* m_pTargetObject; public: static CXTPMarkupDependencyProperty* m_pPropertyRotateTransform; static CXTPMarkupDependencyProperty* m_pPropertyScaleTransform; static CXTPMarkupDependencyProperty* m_pPropertyTranslateTransform; static CXTPMarkupDependencyProperty* m_pPropertySkewTransform; static CXTPMarkupDependencyProperty* m_pPropertyMatrixTransform; protected: double m_originX; double m_originY; public: void SetOrigin(double x, double y); double GetOriginX(); double GetOriginY(); }; AFX_INLINE CXTPMarkupObject* CXTPMarkupRenderTransform::GetTargetObject() const { return m_pTargetObject; } AFX_INLINE void CXTPMarkupRenderTransform::SetOrigin(double x, double y) { m_originX = x; m_originY = y; } AFX_INLINE double CXTPMarkupRenderTransform::GetOriginX() { return m_originX; } AFX_INLINE double CXTPMarkupRenderTransform::GetOriginY() { return m_originY; } # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPRENDERTRANSFORM_H__) /** @endcond */