diff --git a/modules/juce_graphics/detail/juce_SimpleShapedText.h b/modules/juce_graphics/detail/juce_SimpleShapedText.h index c08283c105..42afc4d2bf 100644 --- a/modules/juce_graphics/detail/juce_SimpleShapedText.h +++ b/modules/juce_graphics/detail/juce_SimpleShapedText.h @@ -44,7 +44,30 @@ enum class TextDirection class ShapedTextOptions { +private: + auto tie() const + { + return std::tie (justification, + readingDir, + maxWidth, + height, + fontsForRange, + language, + firstLineIndent, + leading, + additiveLineSpacing, + baselineAtZero, + allowBreakingInsideWord, + trailingWhitespacesShouldFit, + maxNumLines, + ellipsis); + } + public: + bool operator== (const ShapedTextOptions& other) const { return tie() == other.tie(); } + bool operator!= (const ShapedTextOptions& other) const { return tie() != other.tie(); } + + //============================================================================== [[nodiscard]] ShapedTextOptions withJustification (Justification x) const { return withMember (*this, &ShapedTextOptions::justification, x);