Class ComboContent
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.ComboContent
- 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
Content that bundles two or more other contents.
Useful for situations like when you need a text field and a button to be next to each other.
(this probably needs to be rewritten)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContent
(WindowContent content) void
addContent
(WindowContent content, ComboContent.AnchorSide anchor) boolean
charTyped
(char character) double
double
getWidth()
boolean
keyTyped
(int key, int scanCode, int modifiers) boolean
mouseClicked
(double mouseX, double mouseY, int button) void
mouseReleased
(double mouseX, double mouseY, int button) boolean
mouseScrolled
(double mouseX, double mouseY, double delta) void
renderContent
(double mouseX, double mouseY, WindowView parent) void
unfocus()
Called when the window loses focus.Methods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY
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.ITickable
tick
-
Constructor Details
-
ComboContent
-
-
Method Details
-
addContent
-
addContent
-
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) -
unfocus
public void unfocus()Description copied from class:WindowContent
Called when the window loses focus. Should be used to unfocus things like text fields- Overrides:
unfocus
in classWindowContent
-
mouseReleased
public void mouseReleased(double mouseX, double mouseY, int button)
-