29 void SetTextFrame(
const std::shared_ptr<TextFrame>& frame);
41 const std::optional<StrokeParameters>& stroke);
93 GlyphAtlasPipeline::VertexShader::PerVertexData* vtx_contents,
94 const Matrix& entity_transform,
95 const std::shared_ptr<TextFrame>& frame,
97 const Matrix& screen_transform,
99 const std::shared_ptr<GlyphAtlas>& atlas);
102 std::shared_ptr<TextFrame> frame_;
103 Scalar inherited_opacity_ = 1.0;
106 bool force_text_color_ =
false;
static void ComputeVertexData(GlyphAtlasPipeline::VertexShader::PerVertexData *vtx_contents, const Matrix &entity_transform, const std::shared_ptr< TextFrame > &frame, Point position, const Matrix &screen_transform, GlyphProperties glyph_properties, const std::shared_ptr< GlyphAtlas > &atlas)
Computes the vertex data for the render operation from a collection of data drawn from the DrawTextFr...
void SetInheritedOpacity(Scalar opacity) override
Inherit the provided opacity.
void SetForceTextColor(bool value)
Force the text color to apply to the rendered glyphs, even if those glyphs are bitmaps.
void SetTextProperties(Color color, const std::optional< StrokeParameters > &stroke)
Must be set after text frame.
void SetPosition(Point position)
void SetScreenTransform(const Matrix &transform)
bool Render(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
std::optional< Rect > GetCoverage(const Entity &entity) const override
Get the area of the render pass that will be affected when this contents is rendered.
void SetTextFrame(const std::shared_ptr< TextFrame > &frame)
void SetColor(Color color)