Class ClickableArea
- java.lang.Object
-
- net.egartley.beyondorigins.core.ui.ClickableArea
-
- Direct Known Subclasses:
QuestSlot
public class ClickableArea extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private MouseClicked
clicked
private boolean
didHover
int
height
boolean
mouseWithinBounds
int
width
int
x
int
y
-
Constructor Summary
Constructors Constructor Description ClickableArea(int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkClick()
void
onClick()
void
onHover()
void
registerClicked()
void
removeClicked()
void
tick()
-
-
-
Field Detail
-
didHover
private boolean didHover
-
clicked
private final MouseClicked clicked
-
x
public int x
-
y
public int y
-
width
public int width
-
height
public int height
-
mouseWithinBounds
public boolean mouseWithinBounds
-
-