Class ComboContent

java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.ComboContent
All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.ITypeable

public class ComboContent extends WindowContent
Content that bundles two or more other contents. Useful for situations like when you need a text field and a button to be next to each other. (this probably needs to be rewritten)
  • Constructor Details

    • ComboContent

      public ComboContent(Window window)
  • Method Details

    • addContent

      public void addContent(WindowContent content)
    • addContent

      public void addContent(WindowContent content, ComboContent.AnchorSide anchor)
    • renderContent

      public void renderContent(double mouseX, double mouseY, WindowView parent)
      Specified by:
      renderContent in class WindowContent
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in class WindowContent
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in class WindowContent
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)
    • charTyped

      public boolean charTyped(char character)
    • keyTyped

      public boolean keyTyped(int key, int scanCode, int modifiers)
    • unfocus

      public void unfocus()
      Description copied from class: WindowContent
      Called when the window loses focus. Should be used to unfocus things like text fields
      Overrides:
      unfocus in class WindowContent
    • mouseReleased

      public void mouseReleased(double mouseX, double mouseY, int button)