Jazz2::UI::FormattedTextBlock class

Formatted text block.

Public static functions

static auto From(const FormattedTextBlock& source) -> FormattedTextBlock

Constructors, destructors, conversion operators

FormattedTextBlock()
FormattedTextBlock(const FormattedTextBlockParams& params)
FormattedTextBlock(const FormattedTextBlock&) deleted
FormattedTextBlock(FormattedTextBlock&& other) noexcept

Public functions

auto operator=(const FormattedTextBlock&) -> FormattedTextBlock& deleted
auto operator=(FormattedTextBlock&& other) -> FormattedTextBlock& noexcept
void Draw(Canvas* canvas, Rectf bounds, std::uint16_t depth, std::int32_t& charOffset, float angleOffset = 0.0f, float varianceX = 4.0f, float varianceY = 4.0f, float speed = 0.4f)
auto MeasureSize(Vector2f proposedSize) -> Vector2f
auto GetCachedWidth() const -> float
auto GetCachedHeight() const -> float
auto GetAlignment() const -> Alignment
void SetAlignment(Alignment value)
auto GetDefaultColor() const -> Colorf
void SetDefaultColor(Colorf color)
auto GetFont() -> Font*
void SetFont(Font* value)
auto GetScale() const -> float
void SetScale(float value)
auto GetCharSpacing() const -> float
void SetCharSpacing(float value)
auto GetLineSpacing() const -> float
void SetLineSpacing(float value)
auto GetProposedWidth() const -> float constexpr
void SetProposedWidth(float value)
auto GetText() const -> StringView
void SetText(StringView value)
void SetText(String&& value)
auto IsMultiline() const -> bool constexpr
void SetMultiline(bool value)
auto GetWrapping() const -> bool constexpr
void SetWrapping(bool value)
auto IsEllipsized() const -> bool constexpr