5 #ifndef __d2dgraphicspath__ 6 #define __d2dgraphicspath__ 8 #include "../../../cgraphicspath.h" 10 #if WINDOWS && VSTGUI_DIRECT2D_SUPPORT 14 struct ID2D1PathGeometry;
16 struct D2D1_GRADIENT_STOP;
23 class D2DGraphicsPath :
public CGraphicsPath
27 D2DGraphicsPath (
const D2DFont* font, UTF8StringPtr text);
30 ID2D1Geometry* createPath (int32_t fillMode, D2DDrawContext* context = 0, CGraphicsTransform* transform = 0);
32 CGradient* createGradient (
double color1Start,
double color2Start,
const CColor& color1,
const CColor& color2)
override;
34 bool hitTest (
const CPoint& p,
bool evenOddFilled =
false, CGraphicsTransform* transform = 0)
override;
35 CPoint getCurrentPosition ()
override;
36 CRect getBoundingBox ()
override;
37 void dirty ()
override;
40 int32_t currentPathFillMode;
47 #endif // __d2dgraphicspath__ Definition: customcontrols.cpp:8