//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef __GUI_TRANSLATETRANSFORM_H__ #define __GUI_TRANSLATETRANSFORM_H__ #include #include namespace Noesis { //////////////////////////////////////////////////////////////////////////////////////////////////// /// Translates an object in the 2D coordinate system. /// /// http://msdn.microsoft.com/en-us/library/system.windows.media.translatetransform.aspx //////////////////////////////////////////////////////////////////////////////////////////////////// class NS_GUI_CORE_API TranslateTransform final: public Transform { public: TranslateTransform(); TranslateTransform(float x, float y); ~TranslateTransform(); NS_DECLARE_POOL_ALLOCATOR /// Gets or sets the x-axis displacement //@{ float GetX() const; void SetX(float x); //@} /// Gets or sets the y-axis displacement //@{ float GetY() const; void SetY(float y); //@} /// Hides Freezable methods for convenience //@{ Ptr Clone() const; Ptr CloneCurrentValue() const; //@} public: /// Dependency properties //@{ static const DependencyProperty* XProperty; static const DependencyProperty* YProperty; //@} protected: /// From Freezable //@{ Ptr CreateInstanceCore() const override; //@} NS_DECLARE_REFLECTION(TranslateTransform, Transform) }; } #endif