Class WindowContent

java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
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
Direct Known Subclasses:
ButtonComponent, CheckBoxComponent, ComboBoxComponent, ComboContent, ListItemContent, PaddingContent, TextComponent, TextFieldComponent, WindowView

public abstract class WindowContent extends Object implements org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.ITypeable, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable
Content that can be rendered inside of a Window
  • Field Details

    • x

      protected double x
    • y

      protected double y
    • contextMenu

      protected List<ContextAction> contextMenu
  • Constructor Details

    • WindowContent

      public WindowContent(Window window)
  • Method Details

    • renderContent

      public abstract void renderContent(double mouseX, double mouseY, WindowView parent)
    • getWidth

      public abstract double getWidth()
    • getHeight

      public abstract double getHeight()
    • getContextMenu

      public List<ContextAction> getContextMenu()
    • setContextMenu

      public void setContextMenu(List<ContextAction> contextMenu)
    • unfocus

      public void unfocus()
      Called when the window loses focus. Should be used to unfocus things like text fields
    • getWindow

      public Window getWindow()
    • isHovered

      public boolean isHovered(double mouseX, double mouseY)
      Specified by:
      isHovered in interface org.rusherhack.core.interfaces.IHoverable
    • setX

      public double setX(double x)
    • setY

      public double setY(double y)
    • getX

      public double getX()
    • getY

      public double getY()
    • getRenderer

      public IRenderer2D getRenderer()
    • getFontRenderer

      public IFontRenderer getFontRenderer()