Class Gui

java.lang.Object
de.ellpeck.rockbottom.api.gui.Gui
Direct Known Subclasses:
AbstractStatGui, ContainerGui, MessageBoxGui

public abstract class Gui extends Object
  • Field Details

    • GRADIENT_COLOR

      public static final int GRADIENT_COLOR
    • HOVER_INFO_BACKGROUND

      public static final int HOVER_INFO_BACKGROUND
    • parent

      protected final Gui parent
    • hasUnspecifiedBounds

      protected final boolean hasUnspecifiedBounds
    • width

      protected int width
    • height

      protected int height
    • x

      protected int x
    • y

      protected int y
    • components

      protected List<GuiComponent> components
  • Constructor Details

    • Gui

      public Gui()
    • Gui

      public Gui(Gui parent)
    • Gui

      public Gui(int width, int height)
    • Gui

      public Gui(int width, int height, Gui parent)
  • Method Details

    • onOpened

      public void onOpened(IGameInstance game)
    • onClosed

      public void onClosed(IGameInstance game)
    • init

      public void init(IGameInstance game)
    • updateDimensions

      protected void updateDimensions(IGameInstance game)
    • update

      public void update(IGameInstance game)
    • onMouseAction

      public boolean onMouseAction(IGameInstance game, int button, float x, float y)
    • onKeyPressed

      public boolean onKeyPressed(IGameInstance game, int button)
    • onCharInput

      public boolean onCharInput(IGameInstance game, int codePoint, char[] characters)
    • canCloseWithInvKey

      public boolean canCloseWithInvKey()
    • render

      public void render(IGameInstance game, IAssetManager manager, IRenderer g)
    • renderOverlay

      public void renderOverlay(IGameInstance game, IAssetManager manager, IRenderer g)
    • tryEscape

      protected boolean tryEscape(IGameInstance game)
    • doesPauseGame

      public boolean doesPauseGame()
    • isMouseOverComponent

      public boolean isMouseOverComponent(IGameInstance game)
    • isMouseOver

      public boolean isMouseOver(IGameInstance game)
    • hasGradient

      public boolean hasGradient()
    • sortComponents

      public void sortComponents()
    • isMouseOverPrioritized

      public boolean isMouseOverPrioritized(IGameInstance game, GuiComponent component)
    • getComponents

      public List<GuiComponent> getComponents()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public abstract ResourceName getName()
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • shouldDoFingerCursor

      public boolean shouldDoFingerCursor(IGameInstance game)