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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
abstract double
getWidth()
double
getX()
double
getY()
boolean
isHovered
(double mouseX, double mouseY) abstract void
renderContent
(double mouseX, double mouseY, WindowView parent) void
setContextMenu
(List<ContextAction> contextMenu) double
setX
(double x) double
setY
(double y) void
unfocus()
Called when the window loses focus.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
mouseClicked, mouseReleased
Methods inherited from interface org.rusherhack.core.interfaces.IScrollable
mouseScrolled
Methods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
Methods 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:
isHovered
in 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
-