Class CheckBoxComponent
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
-
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y
-
Constructor Summary
ConstructorDescriptionCheckBoxComponent
(Window window, double size, String label, boolean value) CheckBoxComponent
(Window window, double size, String label, boolean value, Consumer<Boolean> callback) CheckBoxComponent
(Window window, String label, boolean value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char character) double
getLabel()
double
getSize()
boolean
getValue()
double
getWidth()
boolean
keyTyped
(int key, int scanCode, int modifiers) boolean
mouseClicked
(double mouseX, double mouseY, int button) boolean
mouseScrolled
(double mouseX, double mouseY, double delta) void
renderContent
(double mouseX, double mouseY, WindowView parent) void
void
setValue
(boolean value) void
setValueConsumer
(Consumer<Boolean> valueConsumer) Methods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY, unfocus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseReleased
Methods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
-
Constructor Details
-
CheckBoxComponent
-
CheckBoxComponent
-
CheckBoxComponent
-
-
Method Details
-
renderContent
- Specified by:
renderContent
in classWindowContent
-
getWidth
public double getWidth()- Specified by:
getWidth
in classWindowContent
-
getHeight
public double getHeight()- Specified by:
getHeight
in classWindowContent
-
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
-
setLabel
-
getValue
public boolean getValue() -
setValue
public void setValue(boolean value) -
setValueConsumer
-
getSize
public double getSize()
-