/** Returns the right padding if set, else returns {@link #getRightWidth()}. */ public float getPadRight () { if (padRight == -1) return getRightWidth(); return padRight; }
/** Returns the right padding if set, else returns {@link #getRightWidth()}. */ public float getPadRight () { if (padRight == -1) return getRightWidth(); return padRight; }
float rightWidth = getRightWidth(); if ((patches[TOP_RIGHT] != null && patches[TOP_RIGHT].getRegionWidth() != rightWidth) || (patches[MIDDLE_RIGHT] != null && patches[MIDDLE_RIGHT].getRegionWidth() != rightWidth)
float rightWidth = getRightWidth(); if ((patches[TOP_RIGHT] != null && patches[TOP_RIGHT].getRegionWidth() != rightWidth) || (patches[MIDDLE_RIGHT] != null && patches[MIDDLE_RIGHT].getRegionWidth() != rightWidth)
@Override public void create () { TestPatch tp; // Create all the NinePatches to test ninePatches.add(new TestPatch("default")); tp = new TestPatch("20px width"); int bWidth = 20; tp.ninePatch.setLeftWidth(bWidth); tp.ninePatch.setRightWidth(bWidth); tp.ninePatch.setTopHeight(bWidth); tp.ninePatch.setBottomHeight(bWidth); ninePatches.add(tp); tp = new TestPatch("fat left"); tp.ninePatch.setLeftWidth(3 * tp.ninePatch.getRightWidth()); ninePatches.add(tp); tp = new TestPatch("fat top"); tp.ninePatch.setTopHeight(3 * tp.ninePatch.getBottomHeight()); ninePatches.add(tp); tp = new TestPatch("degenerate", newDegenerateNinePatch()); ninePatches.add(tp); tp = new TestPatch("upper-left quad", newULQuadPatch()); ninePatches.add(tp); tp = new TestPatch("no middle row", newMidlessPatch()); ninePatches.add(tp); b = new SpriteBatch(); }
/** Returns the right padding if set, else returns {@link #getRightWidth()}. */ public float getPadRight () { if (padRight == -1) return getRightWidth(); return padRight; }
float rightWidth = getRightWidth(); if ((patches[TOP_RIGHT] != null && patches[TOP_RIGHT].getRegionWidth() != rightWidth) || (patches[MIDDLE_RIGHT] != null && patches[MIDDLE_RIGHT].getRegionWidth() != rightWidth)