JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::detail::ShapedTextOptions Class Reference

#include <juce_SimpleShapedText.h>

Collaboration diagram for juce::detail::ShapedTextOptions:

Public Member Functions

const auto & getAdditiveLineSpacing () const
 
const auto & getAlignmentWidth () const
 
const auto & getAllowBreakingInsideWord () const
 
const auto & getDrawLinesInFull () const
 
const auto & getEllipsis () const
 
const auto & getFirstLineIndent () const
 
const auto & getFontsForRange () const
 
const auto & getHeight () const
 
const auto & getJustification () const
 
const auto & getLanguage () const
 
const auto & getLeading () const
 
const auto & getMaxNumLines () const
 
const auto & getReadingDirection () const
 
const auto & getTrailingWhitespacesShouldFit () const
 
const auto & getWordWrapWidth () const
 
const auto & isBaselineAtZero () const
 
bool operator!= (const ShapedTextOptions &other) const
 
bool operator== (const ShapedTextOptions &other) const
 
ShapedTextOptions withAdditiveLineSpacing (float x) const
 
ShapedTextOptions withAlignmentWidth (float x) const
 
ShapedTextOptions withAllowBreakingInsideWord (bool x=true) const
 
ShapedTextOptions withBaselineAtZero (bool x=true) const
 
ShapedTextOptions withDrawLinesInFull (bool x=true) const
 
ShapedTextOptions withEllipsis (String x=String::charToString((juce_wchar) 0x2026)) const
 
ShapedTextOptions withFirstLineIndent (float x) const
 
ShapedTextOptions withFont (Font x) const
 
ShapedTextOptions withFonts (const detail::RangedValues< Font > &x) const
 
ShapedTextOptions withHeight (float x) const
 
ShapedTextOptions withJustification (Justification x) const
 
ShapedTextOptions withLanguage (StringRef x) const
 
ShapedTextOptions withLeading (float x) const
 
ShapedTextOptions withMaxNumLines (int64 x) const
 
ShapedTextOptions withReadingDirection (std::optional< TextDirection > x) const
 
ShapedTextOptions withTrailingWhitespacesShouldFit (bool x=true) const
 
ShapedTextOptions withWordWrapWidth (float x) const
 

Private Member Functions

auto tie () const
 

Private Attributes

float additiveLineSpacing = 0.0f
 
std::optional< floatalignmentWidth
 
bool allowBreakingInsideWord = false
 
bool baselineAtZero = false
 
bool drawLinesInFull = false
 
String ellipsis
 
float firstLineIndent = 0.0f
 
detail::RangedValues< FontfontsForRange
 
std::optional< floatheight
 
Justification justification { Justification::topLeft }
 
String language = SystemStats::getDisplayLanguage()
 
float leading = 1.0f
 
int64 maxNumLines = std::numeric_limits<int64>::max()
 
std::optional< TextDirectionreadingDir
 
bool trailingWhitespacesShouldFit = true
 
std::optional< floatwordWrapWidth
 

Member Function Documentation

◆ getAdditiveLineSpacing()

const auto & juce::detail::ShapedTextOptions::getAdditiveLineSpacing ( ) const
inline

References additiveLineSpacing.

◆ getAlignmentWidth()

const auto & juce::detail::ShapedTextOptions::getAlignmentWidth ( ) const
inline

References alignmentWidth.

◆ getAllowBreakingInsideWord()

const auto & juce::detail::ShapedTextOptions::getAllowBreakingInsideWord ( ) const
inline

◆ getDrawLinesInFull()

const auto & juce::detail::ShapedTextOptions::getDrawLinesInFull ( ) const
inline

References drawLinesInFull.

◆ getEllipsis()

const auto & juce::detail::ShapedTextOptions::getEllipsis ( ) const
inline

References ellipsis.

◆ getFirstLineIndent()

const auto & juce::detail::ShapedTextOptions::getFirstLineIndent ( ) const
inline

References firstLineIndent.

◆ getFontsForRange()

const auto & juce::detail::ShapedTextOptions::getFontsForRange ( ) const
inline

References fontsForRange.

◆ getHeight()

const auto & juce::detail::ShapedTextOptions::getHeight ( ) const
inline

References height.

◆ getJustification()

const auto & juce::detail::ShapedTextOptions::getJustification ( ) const
inline

References justification.

◆ getLanguage()

const auto & juce::detail::ShapedTextOptions::getLanguage ( ) const
inline

References language.

◆ getLeading()

const auto & juce::detail::ShapedTextOptions::getLeading ( ) const
inline

References leading.

◆ getMaxNumLines()

const auto & juce::detail::ShapedTextOptions::getMaxNumLines ( ) const
inline

References maxNumLines.

◆ getReadingDirection()

const auto & juce::detail::ShapedTextOptions::getReadingDirection ( ) const
inline

References readingDir.

◆ getTrailingWhitespacesShouldFit()

const auto & juce::detail::ShapedTextOptions::getTrailingWhitespacesShouldFit ( ) const
inline

◆ getWordWrapWidth()

const auto & juce::detail::ShapedTextOptions::getWordWrapWidth ( ) const
inline

References wordWrapWidth.

◆ isBaselineAtZero()

const auto & juce::detail::ShapedTextOptions::isBaselineAtZero ( ) const
inline

References baselineAtZero.

◆ operator!=()

bool juce::detail::ShapedTextOptions::operator!= ( const ShapedTextOptions other) const
inline

References tie().

◆ operator==()

bool juce::detail::ShapedTextOptions::operator== ( const ShapedTextOptions other) const
inline

References tie().

◆ tie()

◆ withAdditiveLineSpacing()

ShapedTextOptions juce::detail::ShapedTextOptions::withAdditiveLineSpacing ( float  x) const
inline

◆ withAlignmentWidth()

ShapedTextOptions juce::detail::ShapedTextOptions::withAlignmentWidth ( float  x) const
inline

◆ withAllowBreakingInsideWord()

ShapedTextOptions juce::detail::ShapedTextOptions::withAllowBreakingInsideWord ( bool  x = true) const
inline

◆ withBaselineAtZero()

ShapedTextOptions juce::detail::ShapedTextOptions::withBaselineAtZero ( bool  x = true) const
inline

◆ withDrawLinesInFull()

ShapedTextOptions juce::detail::ShapedTextOptions::withDrawLinesInFull ( bool  x = true) const
inline

◆ withEllipsis()

ShapedTextOptions juce::detail::ShapedTextOptions::withEllipsis ( String  x = String::charToString ((juce_wchar) 0x2026)) const
inline

References ellipsis, and juce::withMember().

◆ withFirstLineIndent()

ShapedTextOptions juce::detail::ShapedTextOptions::withFirstLineIndent ( float  x) const
inline

◆ withFont()

ShapedTextOptions juce::detail::ShapedTextOptions::withFont ( Font  x) const
inline

◆ withFonts()

ShapedTextOptions juce::detail::ShapedTextOptions::withFonts ( const detail::RangedValues< Font > &  x) const
inline

◆ withHeight()

ShapedTextOptions juce::detail::ShapedTextOptions::withHeight ( float  x) const
inline

References height, and juce::withMember().

◆ withJustification()

ShapedTextOptions juce::detail::ShapedTextOptions::withJustification ( Justification  x) const
inline

◆ withLanguage()

ShapedTextOptions juce::detail::ShapedTextOptions::withLanguage ( StringRef  x) const
inline

References language, and juce::withMember().

◆ withLeading()

ShapedTextOptions juce::detail::ShapedTextOptions::withLeading ( float  x) const
inline

References leading, and juce::withMember().

◆ withMaxNumLines()

ShapedTextOptions juce::detail::ShapedTextOptions::withMaxNumLines ( int64  x) const
inline

References maxNumLines, and juce::withMember().

◆ withReadingDirection()

ShapedTextOptions juce::detail::ShapedTextOptions::withReadingDirection ( std::optional< TextDirection x) const
inline

References readingDir, and juce::withMember().

◆ withTrailingWhitespacesShouldFit()

ShapedTextOptions juce::detail::ShapedTextOptions::withTrailingWhitespacesShouldFit ( bool  x = true) const
inline

◆ withWordWrapWidth()

ShapedTextOptions juce::detail::ShapedTextOptions::withWordWrapWidth ( float  x) const
inline

Member Data Documentation

◆ additiveLineSpacing

float juce::detail::ShapedTextOptions::additiveLineSpacing = 0.0f
private

◆ alignmentWidth

std::optional<float> juce::detail::ShapedTextOptions::alignmentWidth
private

◆ allowBreakingInsideWord

bool juce::detail::ShapedTextOptions::allowBreakingInsideWord = false
private

◆ baselineAtZero

bool juce::detail::ShapedTextOptions::baselineAtZero = false
private

◆ drawLinesInFull

bool juce::detail::ShapedTextOptions::drawLinesInFull = false
private

◆ ellipsis

String juce::detail::ShapedTextOptions::ellipsis
private

Referenced by getEllipsis(), tie(), and withEllipsis().

◆ firstLineIndent

float juce::detail::ShapedTextOptions::firstLineIndent = 0.0f
private

◆ fontsForRange

detail::RangedValues<Font> juce::detail::ShapedTextOptions::fontsForRange
private
Initial value:
= std::invoke ([&]
{
detail::RangedValues<Font> result;
result.set ({ 0, std::numeric_limits<int64>::max() }, FontOptions { 15.0f }, ops);
return result;
})
Options that describe a particular font.
Definition juce_FontOptions.h:48
std::vector< Op > Operations
Definition juce_Ranges.h:107

Referenced by getFontsForRange(), tie(), withFont(), and withFonts().

◆ height

std::optional<float> juce::detail::ShapedTextOptions::height
private

Referenced by getHeight(), tie(), and withHeight().

◆ justification

Justification juce::detail::ShapedTextOptions::justification { Justification::topLeft }
private

◆ language

String juce::detail::ShapedTextOptions::language = SystemStats::getDisplayLanguage()
private

Referenced by getLanguage(), tie(), and withLanguage().

◆ leading

float juce::detail::ShapedTextOptions::leading = 1.0f
private

Referenced by getLeading(), tie(), and withLeading().

◆ maxNumLines

int64 juce::detail::ShapedTextOptions::maxNumLines = std::numeric_limits<int64>::max()
private

◆ readingDir

std::optional<TextDirection> juce::detail::ShapedTextOptions::readingDir
private

◆ trailingWhitespacesShouldFit

bool juce::detail::ShapedTextOptions::trailingWhitespacesShouldFit = true
private

◆ wordWrapWidth

std::optional<float> juce::detail::ShapedTextOptions::wordWrapWidth
private

The documentation for this class was generated from the following file: