public class Tooltip<T extends Actor> extends InputListener
| Constructor and Description |
|---|
Tooltip(T contents) |
Tooltip(T contents,
TooltipManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
enter(InputEvent event,
float x,
float y,
int pointer,
Actor fromActor)
Called any time the mouse cursor or a finger touch is moved over an actor.
|
void |
exit(InputEvent event,
float x,
float y,
int pointer,
Actor toActor)
Called any time the mouse cursor or a finger touch is moved out of an actor.
|
T |
getActor() |
Container<T> |
getContainer() |
TooltipManager |
getManager() |
void |
hide() |
boolean |
mouseMoved(InputEvent event,
float x,
float y)
Called any time the mouse is moved when a button is not down.
|
void |
setActor(T contents) |
void |
setAlways(boolean always)
If true, this tooltip is shown even when tooltips are not
TooltipManager.enabled. |
void |
setInstant(boolean instant)
If true, this tooltip is shown without delay when hovered.
|
boolean |
touchDown(InputEvent event,
float x,
float y,
int pointer,
int button)
Called when a mouse button or a finger touch goes down on the actor.
|
handle, keyDown, keyTyped, keyUp, scrolled, touchDragged, touchUppublic Tooltip(@Null T contents, TooltipManager manager)
contents - May be null.public TooltipManager getManager()
public void setInstant(boolean instant)
public void setAlways(boolean always)
TooltipManager.enabled.public boolean touchDown(InputEvent event, float x, float y, int pointer, int button)
InputListenertouch focus, so it will receive all touchDragged and
touchUp events, even those not over this actor, until touchUp is received. Also when true is returned, the event is
handled.touchDown in class InputListenerInputEventpublic boolean mouseMoved(InputEvent event, float x, float y)
InputListenerhandled.mouseMoved in class InputListenerInputEventpublic void enter(InputEvent event, float x, float y, int pointer, @Null Actor fromActor)
InputListenerenter in class InputListenerfromActor - May be null.InputEventpublic void exit(InputEvent event, float x, float y, int pointer, @Null Actor toActor)
InputListenerexit in class InputListenertoActor - May be null.InputEventpublic void hide()
Copyright © 2021. All rights reserved.