java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.component.CheckBoxComponent
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 CheckBoxComponent extends WindowContent
  • Constructor Details

    • CheckBoxComponent

      public CheckBoxComponent(Window window, String label, boolean value)
    • CheckBoxComponent

      public CheckBoxComponent(Window window, double size, String label, boolean value)
    • CheckBoxComponent

      public CheckBoxComponent(Window window, double size, String label, boolean value, Consumer<Boolean> callback)
  • Method Details

    • 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)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getValue

      public boolean getValue()
    • setValue

      public void setValue(boolean value)
    • setValueConsumer

      public void setValueConsumer(Consumer<Boolean> valueConsumer)
    • getSize

      public double getSize()