Go to the documentation of this file.
25 #ifndef JUCE_ATTRIBUTEDSTRING_H_INCLUDED
26 #define JUCE_ATTRIBUTEDSTRING_H_INCLUDED
50 #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
66 void setText (
const String& newText);
69 void append (
const String& textToAppend);
71 void append (
const String& textToAppend,
const Font& font);
122 void setWordWrap (WordWrap newWordWrap)
noexcept;
139 void setReadingDirection (ReadingDirection newReadingDirection)
noexcept;
146 void setLineSpacing (
float newLineSpacing)
noexcept;
218 #endif // JUCE_ATTRIBUTEDSTRING_H_INCLUDED
int getNumAttributes() const noexcept
Definition: juce_AttributedString.h:187
const Attribute * getAttribute(int index) const noexcept
Definition: juce_AttributedString.h:192
void setFont(Range< int > range, const Font &font)
Definition: juce_AttributedString.cpp:207
const Range< int > range
Definition: juce_AttributedString.h:173
ReadingDirection getReadingDirection() const noexcept
Definition: juce_AttributedString.h:136
WordWrap
Definition: juce_AttributedString.h:111
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
const Font * getFont() const noexcept
Definition: juce_AttributedString.h:167
Definition: juce_String.h:43
Definition: juce_Colour.h:35
#define JUCE_API
Definition: juce_StandardHeader.h:139
@ byWord
Definition: juce_AttributedString.h:114
const Colour * getColour() const noexcept
Definition: juce_AttributedString.h:170
Definition: juce_GraphicsContext.h:42
ReadingDirection
Definition: juce_AttributedString.h:128
@ none
Definition: juce_AttributedString.h:113
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_AttributedString.h:39
@ natural
Definition: juce_AttributedString.h:130
Definition: juce_Font.h:39
@ leftToRight
Definition: juce_AttributedString.h:131
@ byChar
Definition: juce_AttributedString.h:115
Definition: juce_OwnedArray.h:55
@ rightToLeft
Definition: juce_AttributedString.h:132
Justification getJustification() const noexcept
Definition: juce_AttributedString.h:100
const String & getText() const noexcept
Definition: juce_AttributedString.h:60
Definition: juce_AttributedString.h:150
void setColour(Range< int > range, Colour colour)
Definition: juce_AttributedString.cpp:193
float getLineSpacing() const noexcept
Definition: juce_AttributedString.h:143
Definition: juce_Justification.h:38
WordWrap getWordWrap() const noexcept
Definition: juce_AttributedString.h:119
AttributedString & operator=(const AttributedString &)
Definition: juce_AttributedString.cpp:79