 |
Flutter Impeller
|
|
Go to the documentation of this file.
14 : bounds_(bounds), radii_(radii) {}
26 GeometryResult RoundRectGeometry::GetPositionUVBuffer(
27 Rect texture_coverage,
28 Matrix effect_transform,
29 const ContentContext& renderer,
31 RenderPass& pass)
const {
33 renderer.GetTessellator()->FilledRoundRect(entity.GetTransform(), bounds_,
35 texture_coverage.GetNormalizingTransform() * effect_transform, entity,
43 std::optional<Rect> RoundRectGeometry::GetCoverage(
44 const Matrix& transform)
const {
49 const Rect& rect)
const {
55 if (!flat_on_tb && !flat_on_lr) {
bool IsAxisAlignedRect() const override
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
constexpr TRect TransformBounds(const Matrix &transform) const
Creates a new bounding box that contains this transformed rectangle.
bool CoversArea(const Matrix &transform, const Rect &rect) const override
Determines if this geometry, transformed by the given transform, will completely cover all surface ar...
constexpr Type GetHeight() const
Returns the height of the rectangle, equivalent to |GetSize().height|.
constexpr Type GetWidth() const
Returns the width of the rectangle, equivalent to |GetSize().width|.
constexpr bool IsTranslationScaleOnly() const
Returns true if the matrix has a scale-only basis and is non-projective. Note that an identity matrix...
static GeometryResult ComputePositionGeometry(const Tessellator::VertexGenerator &generator, const Entity &entity, RenderPass &pass)
std::shared_ptr< Tessellator > GetTessellator() const
constexpr bool Contains(const TPoint< Type > &p) const
Render passes encode render commands directed as one specific render target into an underlying comman...
static GeometryResult ComputePositionUVGeometry(const Tessellator::VertexGenerator &generator, const Matrix &uv_transform, const Entity &entity, RenderPass &pass)
A 4x4 matrix using column-major storage.
constexpr TRect< T > Expand(T left, T top, T right, T bottom) const
Returns a rectangle with expanded edges. Negative expansion results in shrinking.
RoundRectGeometry(const Rect &bounds, const Size &radii)