nim_duilib/duilib/Render/Matrix.h

26 lines
549 B
C
Raw Normal View History

2019-04-19 17:19:57 +08:00
#ifndef UI_CORE_RENDER_MATRIX_H_
#define UI_CORE_RENDER_MATRIX_H_
#pragma once
#include <GdiPlus.h>
namespace ui
{
class UILIB_API Matrix_Gdiplus : public IMatrix
{
public:
virtual void Translate(int offsetX, int offsetY) override;
virtual void Scale(int scaleX, int scaleY) override;
virtual void Rotate(float angle) override;
virtual void RotateAt(float angle, const CPoint& center) override;
Gdiplus::Matrix* GetMatrix() { return &matrix_; };
private:
Gdiplus::Matrix matrix_;
};
} // namespace ui
#endif // UI_CORE_RENDER_MATRIX_H_