|
openshot-audio
0.1.7
|
#include <juce_graphics.h>
Public Member Functions | |
| PositionedGlyph () noexcept | |
| PositionedGlyph (const Font &font, juce_wchar character, int glyphNumber, float anchorX, float baselineY, float width, bool isWhitespace) | |
| PositionedGlyph (const PositionedGlyph &) | |
| PositionedGlyph & | operator= (const PositionedGlyph &) |
| ~PositionedGlyph () | |
| 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, const AffineTransform &transform) const |
| void | createPath (Path &path) const |
| bool | hitTest (float x, float y) const |
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.
|
noexcept |
| PositionedGlyph::PositionedGlyph | ( | const Font & | font, |
| juce_wchar | character, | ||
| int | glyphNumber, | ||
| float | anchorX, | ||
| float | baselineY, | ||
| float | width, | ||
| bool | isWhitespace | ||
| ) |
| PositionedGlyph::PositionedGlyph | ( | const PositionedGlyph & | other | ) |
| PositionedGlyph::~PositionedGlyph | ( | ) |
| void PositionedGlyph::createPath | ( | Path & | path | ) | const |
Returns the path for this glyph.
| path | the glyph's outline will be appended to this path |
| void PositionedGlyph::draw | ( | Graphics & | g | ) | const |
Draws the glyph into a graphics context. (Note that this may change the context's currently selected font).
| void PositionedGlyph::draw | ( | Graphics & | g, |
| const 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 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 PositionedGlyph::moveBy | ( | float | deltaX, |
| float | deltaY | ||
| ) |
Shifts the glyph's position by a relative amount.
| PositionedGlyph & PositionedGlyph::operator= | ( | const PositionedGlyph & | other | ) |
|
friend |
1.8.13