diff options
Diffstat (limited to 'include/cru/ui/render/GeometryRenderObject.h')
-rw-r--r-- | include/cru/ui/render/GeometryRenderObject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/ui/render/GeometryRenderObject.h b/include/cru/ui/render/GeometryRenderObject.h index 6c5702ae..5d2ba1e0 100644 --- a/include/cru/ui/render/GeometryRenderObject.h +++ b/include/cru/ui/render/GeometryRenderObject.h @@ -2,6 +2,7 @@ #include "RenderObject.h" #include "cru/platform/graphics/Brush.h" #include "cru/platform/graphics/Geometry.h" +#include "cru/ui/render/MeasureRequirement.h" #include <optional> @@ -40,6 +41,8 @@ class GeometryRenderObject : public RenderObject { const MeasureSize& preferred_size) override; void OnLayoutContent(const Rect& content_rect) override; + Size OnMeasureContent1(const BoxConstraint& constraint) override; + private: std::shared_ptr<platform::graphics::IGeometry> geometry_ = nullptr; Rect view_port_{}; |