25 #ifndef JUCE_GLYPHARRANGEMENT_H_INCLUDED 26 #define JUCE_GLYPHARRANGEMENT_H_INCLUDED 45 float anchorX,
float baselineY,
float width,
bool isWhitespace);
50 #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS 63 float getLeft() const noexcept {
return x; }
65 float getRight() const noexcept {
return x + w; }
77 void moveBy (
float deltaX,
float deltaY);
93 void createPath (
Path& path)
const;
96 bool hitTest (
float x,
float y)
const;
163 void addLineOfText (
const Font& font,
173 void addCurtailedLineOfText (
const Font& font,
176 float maxWidthPixels,
192 void addJustifiedText (
const Font& font,
217 void addFittedText (
const Font& font,
219 float x,
float y,
float width,
float height,
221 int maximumLinesToUse,
248 void createPath (
Path& path)
const;
253 int findGlyphIndexAt (
float x,
float y)
const;
265 Rectangle<float> getBoundingBox (
int startIndex,
int numGlyphs,
bool includeWhitespace)
const;
275 void moveRangeOfGlyphs (
int startIndex,
int numGlyphs,
276 float deltaX,
float deltaY);
284 void removeRangeOfGlyphs (
int startIndex,
int numGlyphs);
293 void stretchRangeOfGlyphs (
int startIndex,
int numGlyphs,
294 float horizontalScaleFactor);
304 void justifyGlyphs (
int startIndex,
int numGlyphs,
305 float x,
float y,
float width,
float height,
313 int insertEllipsis (
const Font&,
float maxXPos,
int startIndex,
int endIndex);
314 int fitLineIntoSpace (
int start,
int numGlyphs,
float x,
float y,
float w,
float h,
const Font&,
316 void spreadOutLine (
int start,
int numGlyphs,
float targetWidth);
317 void splitLines (
const String&,
Font,
int start,
float x,
float y,
float w,
float h,
int maxLines,
318 float lineWidth,
Justification,
float minimumHorizontalScale);
319 void addLinesWithLineBreaks (
const String&,
const Font&,
float x,
float y,
float width,
float height,
Justification);
326 #endif // JUCE_GLYPHARRANGEMENT_H_INCLUDED float getLeft() const noexcept
Definition: juce_GlyphArrangement.h:63
Definition: juce_Font.h:39
float getTop() const
Definition: juce_GlyphArrangement.h:69
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_Justification.h:38
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
float getAscent() const
Definition: juce_Font.cpp:617
Definition: juce_Rectangle.h:36
juce_wchar getCharacter() const noexcept
Definition: juce_GlyphArrangement.h:58
float minimumHorizontalScale
Definition: juce_Font.cpp:33
Definition: juce_Path.h:62
bool isWhitespace() const noexcept
Definition: juce_GlyphArrangement.h:60
Definition: juce_GlyphArrangement.h:39
float getBaselineY() const noexcept
Definition: juce_GlyphArrangement.h:67
float getDescent() const
Definition: juce_Font.cpp:626
Definition: juce_GraphicsContext.h:42
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
Definition: juce_GlyphArrangement.h:121
float getHeight() const noexcept
Definition: juce_Font.cpp:625
Rectangle< float > getBounds() const
Definition: juce_GlyphArrangement.h:73
wchar_t juce_wchar
Definition: juce_CharacterFunctions.h:49
float getBottom() const
Definition: juce_GlyphArrangement.h:71
float getRight() const noexcept
Definition: juce_GlyphArrangement.h:65
int getNumGlyphs() const noexcept
Definition: juce_GlyphArrangement.h:141