Class TextComponent
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.component.TextComponent
- 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:
ParagraphComponent
A simple text content
-
Field Summary
FieldsFields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y -
Constructor Summary
ConstructorsConstructorDescriptionTextComponent(Window window) TextComponent(Window window, String text) TextComponent(Window window, String text, boolean wrap) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(char character) doublegetText()doublegetWidth()booleankeyTyped(int key, int scanCode, int modifiers) booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseScrolled(double mouseX, double mouseY, double delta) voidrenderContent(double mouseX, double mouseY, WindowView parent) voidMethods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY, unfocusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseReleasedMethods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
-
Field Details
-
text
-
-
Constructor Details
-
TextComponent
-
TextComponent
-
TextComponent
-
-
Method Details
-
renderContent
- Specified by:
renderContentin classWindowContent
-
getWidth
public double getWidth()- Specified by:
getWidthin classWindowContent
-
getHeight
public double getHeight()- Specified by:
getHeightin classWindowContent
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) -
getText
-
setText
-
charTyped
public boolean charTyped(char character) -
keyTyped
public boolean keyTyped(int key, int scanCode, int modifiers) -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double delta)
-