MCPcopy Index your code
hub / github.com/processing/processing / textLineAlignImpl

Method textLineAlignImpl

core/src/processing/core/PGraphics.java:5022–5032  ·  view source on GitHub ↗

Handles placement of a text line, then calls textLineImpl to actually render at the specific point.

(char buffer[], int start, int stop,
                                   float x, float y)

Source from the content-addressed store, hash-verified

5020 * to actually render at the specific point.
5021 */
5022 protected void textLineAlignImpl(char buffer[], int start, int stop,
5023 float x, float y) {
5024 if (textAlign == CENTER) {
5025 x -= textWidthImpl(buffer, start, stop) / 2f;
5026
5027 } else if (textAlign == RIGHT) {
5028 x -= textWidthImpl(buffer, start, stop);
5029 }
5030
5031 textLineImpl(buffer, start, stop, x, y);
5032 }
5033
5034
5035 /**

Callers 1

textMethod · 0.95

Calls 2

textWidthImplMethod · 0.95
textLineImplMethod · 0.95

Tested by

no test coverage detected