Scalar GetOpacityFactor() const
Get the opacity factor for this color source.
virtual bool IsSolidColor() const
void SetInheritedOpacity(Scalar opacity) override
Inherit the provided opacity.
void SetGeometry(std::shared_ptr< Geometry > geometry)
Set the geometry that this contents will use to render.
void SetEffectTransform(Matrix matrix)
Set the effect transform for this color source.
const std::shared_ptr< Geometry > & GetGeometry() const
Get the geometry that this contents will use to render.
bool CanInheritOpacity(const Entity &entity) const override
Whether or not this contents can accept the opacity peephole optimization.
~ColorSourceContents() override
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the screen space bounding rectangle that this contents affects.
void SetOpacityFactor(Scalar opacity)
Set the opacity factor for this color source.
const Matrix & GetInverseEffectTransform() const
Set the inverted effect transform for this color source.