|
LMMS
|
#include <juce_GlyphArrangement.h>
Public Member Functions | |
| PositionedGlyph () noexcept | |
| PositionedGlyph (const Font &font, juce_wchar character, int glyphNumber, float anchorX, float baselineY, float width, bool isWhitespace) | |
| juce_wchar | getCharacter () const noexcept |
| bool | isWhitespace () const noexcept |
| float | getLeft () const noexcept |
| float | getRight () const noexcept |
| float | getBaselineY () const noexcept |
| float | getTop () const |
| float | getBottom () const |
| Rectangle< float > | getBounds () const |
| void | moveBy (float deltaX, float deltaY) |
| void | draw (Graphics &g) const |
| void | draw (Graphics &g, AffineTransform transform) const |
| void | createPath (Path &path) const |
| bool | hitTest (float x, float y) const |
Private Attributes | |
| Font | font |
| juce_wchar | character |
| int | glyph |
| float | x |
| float | y |
| float | w |
| bool | whitespace |
Friends | |
| class | GlyphArrangement |
A glyph from a particular font, with a particular size, style, typeface and position.
You should rarely need to use this class directly - for most purposes, the GlyphArrangement class will do what you need for text layout.
@tags{Graphics}
|
noexcept |
| juce::PositionedGlyph::PositionedGlyph | ( | const Font & | font, |
| juce_wchar | character, | ||
| int | glyphNumber, | ||
| float | anchorX, | ||
| float | baselineY, | ||
| float | width, | ||
| bool | isWhitespace ) |
Returns the path for this glyph.
| path | the glyph's outline will be appended to this path |
Draws the glyph into a graphics context. (Note that this may change the context's currently selected font).
| void juce::PositionedGlyph::draw | ( | Graphics & | g, |
| AffineTransform | transform ) const |
Draws the glyph into a graphics context, with an extra transform applied to it. (Note that this may change the context's currently selected font).
|
inlinenoexcept |
Returns the y position of the glyph's baseline.
|
inline |
Returns the y position of the bottom of the glyph.
|
inline |
Returns the bounds of the glyph.
|
inlinenoexcept |
Returns the character the glyph represents.
|
inlinenoexcept |
Returns the position of the glyph's left-hand edge.
|
inlinenoexcept |
Returns the position of the glyph's right-hand edge.
|
inline |
Returns the y position of the top of the glyph.
| bool juce::PositionedGlyph::hitTest | ( | float | x, |
| float | y ) const |
Checks to see if a point lies within this glyph.
|
inlinenoexcept |
Checks whether the glyph is actually empty.
| void juce::PositionedGlyph::moveBy | ( | float | deltaX, |
| float | deltaY ) |
Shifts the glyph's position by a relative amount.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |