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, touchUp
public 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)
InputListener
touch 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 InputListener
InputEvent
public boolean mouseMoved(InputEvent event, float x, float y)
InputListener
handled
.mouseMoved
in class InputListener
InputEvent
public void enter(InputEvent event, float x, float y, int pointer, @Null Actor fromActor)
InputListener
enter
in class InputListener
fromActor
- May be null.InputEvent
public void exit(InputEvent event, float x, float y, int pointer, @Null Actor toActor)
InputListener
exit
in class InputListener
toActor
- May be null.InputEvent
public void hide()
Copyright © 2020. All rights reserved.