Class PaddedImageButton

All Implemented Interfaces:
Cullable

public class PaddedImageButton extends Group
Прозрачная кнопка с изображением. Меняется цвет изображения (значка)
  • Field Details

    • disableClickThrough

      public boolean disableClickThrough
  • Constructor Details

    • PaddedImageButton

      public PaddedImageButton(Drawable drawable, Runnable handler, Color normalIconColor, Color hoverIconColor, Color activeIconColor)
  • Method Details

    • getClickHandler

      public Runnable getClickHandler()
    • setClickHandler

      public void setClickHandler(Runnable clickHandler)
    • setShadow

      public void setShadow(Drawable drawable, float x, float y, float width, float height, Color color)
    • hideShadow

      public void hideShadow()
    • getDisabledColor

      public Color getDisabledColor()
    • setColors

      public void setColors(Color normalColor, Color hoverColor, Color activeColor)
    • setDisabledColor

      public void setDisabledColor(Color color)
    • setEnabled

      public void setEnabled(boolean enabled)
    • setIconSize

      public PaddedImageButton setIconSize(float width, float height)
    • setIcon

      public PaddedImageButton setIcon(Drawable iconDrawable)
    • setIconPosition

      public PaddedImageButton setIconPosition(float x, float y)
    • getIcon

      public Image getIcon()
    • updateColors

      public void updateColors()