MCPcopy Create free account
hub / github.com/Card-Forge/forge / drawText

Method drawText

forge-gui-mobile/src/forge/toolbox/FLabel.java:446–455  ·  view source on GitHub ↗
(Graphics g, float x, float y, float w, float h, int align)

Source from the content-addressed store, hash-verified

444 }
445
446 private void drawText(Graphics g, float x, float y, float w, float h, int align) {
447 g.startClip(x, y, w, h);
448 if (textRenderer == null) {
449 g.drawText(text, font, textColor, x, y, w, h, false, align, true);
450 }
451 else {
452 textRenderer.drawText(g, text, font, textColor, x, y, w, h, y, h, false, align, true);
453 }
454 g.endClip();
455 }
456
457 private float getTextWidth() {
458 if (textRenderer == null) {

Callers 14

drawContentMethod · 0.95
drawBackgroundMethod · 0.45
drawOverlayMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
drawValueMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawValueMethod · 0.45
drawOverlayMethod · 0.45

Calls 2

endClipMethod · 0.80
startClipMethod · 0.45

Tested by

no test coverage detected