Tabnine Logo
NinePatch.getPadRight
Code IndexAdd Tabnine to your IDE (free)

How to use
getPadRight
method
in
com.badlogic.gdx.graphics.g2d.NinePatch

Best Java code snippets using com.badlogic.gdx.graphics.g2d.NinePatch.getPadRight (Showing top 3 results out of 315)

origin: libgdx/libgdx

/** Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to
 * the patch's padding. */
public void setPatch (NinePatch patch) {
  this.patch = patch;
  setMinWidth(patch.getTotalWidth());
  setMinHeight(patch.getTotalHeight());
  setTopHeight(patch.getPadTop());
  setRightWidth(patch.getPadRight());
  setBottomHeight(patch.getPadBottom());
  setLeftWidth(patch.getPadLeft());
}
origin: libgdx/libgdx

/** Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to
 * the patch's padding. */
public void setPatch (NinePatch patch) {
  this.patch = patch;
  setMinWidth(patch.getTotalWidth());
  setMinHeight(patch.getTotalHeight());
  setTopHeight(patch.getPadTop());
  setRightWidth(patch.getPadRight());
  setBottomHeight(patch.getPadBottom());
  setLeftWidth(patch.getPadLeft());
}
origin: com.badlogicgames.gdx/gdx

/** Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to
 * the patch's padding. */
public void setPatch (NinePatch patch) {
  this.patch = patch;
  setMinWidth(patch.getTotalWidth());
  setMinHeight(patch.getTotalHeight());
  setTopHeight(patch.getPadTop());
  setRightWidth(patch.getPadRight());
  setBottomHeight(patch.getPadBottom());
  setLeftWidth(patch.getPadLeft());
}
com.badlogic.gdx.graphics.g2dNinePatchgetPadRight

Javadoc

Returns the right padding if set, else returns #getRightWidth().

Popular methods of NinePatch

  • <init>
    Construct a nine patch from the given nine texture regions. The provided patches must be consistentl
  • draw
  • setColor
    Copy given color. The color will be blended with the batch color, then combined with the texture col
  • getBottomHeight
  • getRightWidth
  • getTotalHeight
  • getTotalWidth
  • add
  • getLeftWidth
  • getPadBottom
    Returns the bottom padding if set, else returns #getBottomHeight().
  • getPadLeft
    Returns the left padding if set, else returns #getLeftWidth().
  • getPadTop
    Returns the top padding if set, else returns #getTopHeight().
  • getPadLeft,
  • getPadTop,
  • getTexture,
  • getTopHeight,
  • load,
  • prepareVertices,
  • set,
  • setPadding,
  • getColor

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now