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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleabstract doublegetWidth()doublegetX()doublegetY()booleanisHovered(double mouseX, double mouseY) abstract voidrenderContent(double mouseX, double mouseY, WindowView parent) voidsetContextMenu(List<ContextAction> contextMenu) doublesetX(double x) doublesetY(double y) voidunfocus()Called when the window loses focus.Methods 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
mouseClicked, mouseReleasedMethods inherited from interface org.rusherhack.core.interfaces.IScrollable
mouseScrolledMethods inherited from interface org.rusherhack.core.interfaces.ITickable
tickMethods inherited from interface org.rusherhack.core.interfaces.ITypeable
charTyped, keyTyped
-
Field Details
-
x
protected double x -
y
protected double y -
contextMenu
-
-
Constructor Details
-
WindowContent
-
-
Method Details
-
renderContent
-
getWidth
public abstract double getWidth() -
getHeight
public abstract double getHeight() -
getContextMenu
-
setContextMenu
-
unfocus
public void unfocus()Called when the window loses focus. Should be used to unfocus things like text fields -
getWindow
-
isHovered
public boolean isHovered(double mouseX, double mouseY) - Specified by:
isHoveredin interfaceorg.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
-
getFontRenderer
-