public class HoverChecker
extends java.lang.Object
コンストラクタと説明 |
---|
HoverChecker(int top,
int bottom,
int left,
int right,
int threshold) |
HoverChecker(Widget widget,
int threshold) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
checkHover(int mouseX,
int mouseY)
Checks if the mouse is in the hover region.
|
boolean |
checkHover(int mouseX,
int mouseY,
boolean canHover)
Checks if the mouse is in the hover region.
|
void |
resetHoverTimer()
Manually resets the hover timer.
|
void |
updateBounds(int top,
int bottom,
int left,
int right)
Call this method if the intended region has changed such as if the region must follow a scrolling list.
|
public HoverChecker(int top, int bottom, int left, int right, int threshold)
public HoverChecker(Widget widget, int threshold)
public void updateBounds(int top, int bottom, int left, int right)
public boolean checkHover(int mouseX, int mouseY)
public boolean checkHover(int mouseX, int mouseY, boolean canHover)
public void resetHoverTimer()