ASPiK SDK
gdiplusgraphicspath.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __gdiplusgraphicspath__
6 #define __gdiplusgraphicspath__
7 
8 #include "../../cgraphicspath.h"
9 
10 #if WINDOWS
11 
12 namespace Gdiplus {
13 class GraphicsPath;
14 class LinearGradientBrush;
15 }
16 
17 namespace VSTGUI {
18 class GdiPlusFont;
19 
20 //-----------------------------------------------------------------------------
21 class GdiplusGraphicsPath : public CGraphicsPath
22 {
23 public:
24  GdiplusGraphicsPath ();
25  GdiplusGraphicsPath (const GdiPlusFont* font, UTF8StringPtr text);
26  ~GdiplusGraphicsPath () noexcept;
27 
28  Gdiplus::GraphicsPath* getGraphicsPath ();
29 
30  CGradient* createGradient (double color1Start, double color2Start, const CColor& color1, const CColor& color2) override;
31  void dirty () override;
32  bool hitTest (const CPoint& p, bool evenOddFilled = false, CGraphicsTransform* transform = nullptr) override;
33  CPoint getCurrentPosition () override;
34  CRect getBoundingBox () override;
35 protected:
36  Gdiplus::GraphicsPath* platformPath;
37 };
38 
39 } // namespace
40 
41 #endif // WINDOWS
42 
43 #endif // __gdiplusgraphicspath__
Definition: customcontrols.cpp:8