aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/win/graphics/direct/Geometry.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/cru/win/graphics/direct/Geometry.h b/include/cru/win/graphics/direct/Geometry.h
index 802b5ec0..7c231d69 100644
--- a/include/cru/win/graphics/direct/Geometry.h
+++ b/include/cru/win/graphics/direct/Geometry.h
@@ -49,7 +49,7 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DGeometry
public IComResource<ID2D1Geometry> {
public:
D2DGeometry(DirectGraphicsFactory* factory,
- Microsoft::WRL::ComPtr<ID2D1PathGeometry> geometry);
+ Microsoft::WRL::ComPtr<ID2D1Geometry> geometry);
CRU_DELETE_COPY(D2DGeometry)
CRU_DELETE_MOVE(D2DGeometry)
@@ -61,8 +61,11 @@ class CRU_WIN_GRAPHICS_DIRECT_API D2DGeometry
public:
bool FillContains(const Point& point) override;
+ Rect GetBounds() override;
+ std::unique_ptr<IGeometry> Transform(const Matrix& matrix) override;
+ std::unique_ptr<IGeometry> CreateStrokeGeometry(float width) override;
private:
- Microsoft::WRL::ComPtr<ID2D1PathGeometry> geometry_;
+ Microsoft::WRL::ComPtr<ID2D1Geometry> geometry_;
};
} // namespace cru::platform::graphics::win::direct