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

Method drawContent

forge-gui-mobile/src/forge/toolbox/FLabel.java:343–353  ·  view source on GitHub ↗
(Graphics g, float w, float h, final boolean pressed)

Source from the content-addressed store, hash-verified

341 }
342
343 protected void drawContent(Graphics g, float w, float h, final boolean pressed) {
344 float x = insets.x;
345 float y = insets.y;
346 w -= 2 * x;
347 h -= 2 * y;
348 if (pressed) { //while pressed, translate graphics so icon and text appear shifted down and to the right
349 x += Utils.scale(1);
350 y += Utils.scale(1);
351 }
352 drawContent(g, x, y, w, h);
353 }
354
355 protected void drawContent(Graphics g, float x, float y, float w, float h) {
356 try {

Callers 3

drawMethod · 0.95
drawMethod · 0.45
drawMethod · 0.45

Calls 15

scaleMethod · 0.95
getTextWidthMethod · 0.95
drawTextMethod · 0.95
getStandardColorMethod · 0.95
getLineHeightMethod · 0.80
canShrinkMethod · 0.80
shrinkMethod · 0.80
isHoveredMethod · 0.80
setAlphaCompositeMethod · 0.80
fillRectMethod · 0.80

Tested by

no test coverage detected