#include <rect_geometry.h>
Public Member Functions | |
| StrokeRectGeometry (const Rect &rect, const StrokeParameters &stroke) | |
| ~StrokeRectGeometry () override | |
| GeometryResult | GetPositionBuffer (const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override |
| std::optional< Rect > | GetCoverage (const Matrix &transform) const override |
The coverage rectangle of this geometry, transformed by the transform argument. | |
Public Member Functions inherited from impeller::Geometry | |
| virtual | ~Geometry () |
| virtual GeometryResult::Mode | GetResultMode () const |
| virtual bool | CoversArea (const Matrix &transform, const IRect &rect) const |
Determines if this geometry, transformed by the given transform, will completely cover all of the pixels within the given integer rect. | |
| virtual bool | IsAxisAlignedRect () const |
| virtual bool | CanApplyMaskFilter () const |
| virtual Scalar | ComputeAlphaCoverage (const Matrix &transform) const |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::Geometry | |
| static std::unique_ptr< Geometry > | MakeFillPath (const flutter::DlPath &path, std::optional< Rect > inner_rect=std::nullopt) |
| static std::unique_ptr< Geometry > | MakeStrokePath (const flutter::DlPath &path, const StrokeParameters &stroke={}) |
| static std::unique_ptr< Geometry > | MakeCover () |
| static std::unique_ptr< Geometry > | MakeRect (const Rect &rect) |
| static std::unique_ptr< Geometry > | MakeOval (const Rect &rect) |
| static std::unique_ptr< Geometry > | MakeLine (const Point &p0, const Point &p1, const StrokeParameters &stroke) |
| static std::unique_ptr< Geometry > | MakeCircle (const Point ¢er, Scalar radius) |
| static std::unique_ptr< Geometry > | MakeStrokedCircle (const Point ¢er, Scalar radius, Scalar stroke_width) |
| static std::unique_ptr< Geometry > | MakeFilledArc (const Rect &oval_bounds, Degrees start, Degrees sweep, bool include_center) |
| static std::unique_ptr< Geometry > | MakeStrokedArc (const Rect &oval_bounds, Degrees start, Degrees sweep, const StrokeParameters &stroke) |
| static std::unique_ptr< Geometry > | MakeRoundRect (const Rect &rect, const Size &radii) |
| static std::unique_ptr< Geometry > | MakeRoundSuperellipse (const Rect &rect, Scalar corner_radius) |
| static Scalar | ComputeStrokeAlphaCoverage (const Matrix &entity, Scalar stroke_width) |
| Compute an alpha value to simulate lower coverage of fractional pixel strokes. | |
| static GeometryResult | ComputePositionGeometry (const ContentContext &renderer, const Tessellator::VertexGenerator &generator, const Entity &entity, RenderPass &pass) |
Definition at line 37 of file rect_geometry.h.
|
explicit |
Definition at line 50 of file rect_geometry.cc.
|
overridedefault |
|
overridevirtual |
The coverage rectangle of this geometry, transformed by the transform argument.
Implements impeller::Geometry.
Definition at line 337 of file rect_geometry.cc.
References transform, and impeller::TRect< T >::TransformBounds().
|
overridevirtual |
Implements impeller::Geometry.
Definition at line 58 of file rect_geometry.cc.
References FML_DCHECK, impeller::TRect< T >::GetBottom(), impeller::TRect< T >::GetLeft(), impeller::Matrix::GetMaxBasisLengthXY(), impeller::TRect< T >::GetRight(), impeller::Entity::GetShaderTransform(), impeller::TRect< T >::GetSize(), impeller::ContentContext::GetTessellator(), impeller::TRect< T >::GetTop(), impeller::Entity::GetTransform(), impeller::ContentContext::GetTransientsDataBuffer(), impeller::Tessellator::GetTrigsForDeviceRadius(), impeller::kBevel, impeller::kMinStrokeSize, impeller::kMiter, impeller::kNone, impeller::GeometryResult::kNormal, impeller::kRound, impeller::kTriangleStrip, impeller::Tessellator::Trigs::size(), and impeller::GeometryResult::type.