C# Class Nez.UI.TooltipManager

Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
animations bool
edgeDistance float
enabled bool
initialTime float
maxWidth float
offsetX float
resetTime float
subsequentTime float

Méthodes publiques

Méthode Description
enter ( Tooltip tooltip ) : void
getInstance ( ) : TooltipManager
hide ( Tooltip tooltip ) : void
hideAll ( ) : void
instant ( ) : void

Shows all tooltips on hover without a delay for resetTime seconds.

touchDown ( Tooltip tooltip ) : void

Méthodes protégées

Méthode Description
hideAction ( Tooltip tooltip ) : void

Called when tooltip is hidden. Default implementation sets actions to animate hiding and to remove the Element from the stage when the actions are complete.

showAction ( Tooltip tooltip ) : void

Called when tooltip is shown. Default implementation sets actions to animate showing.

Private Methods

Méthode Description
startResetTask ( ) : void
startShowTask ( float time ) : void
stopResetTask ( ) : void
stopShowTask ( ) : void

Method Details

enter() public méthode

public enter ( Tooltip tooltip ) : void
tooltip Tooltip
Résultat void

getInstance() static public méthode

static public getInstance ( ) : TooltipManager
Résultat TooltipManager

hide() public méthode

public hide ( Tooltip tooltip ) : void
tooltip Tooltip
Résultat void

hideAction() protected méthode

Called when tooltip is hidden. Default implementation sets actions to animate hiding and to remove the Element from the stage when the actions are complete.
protected hideAction ( Tooltip tooltip ) : void
tooltip Tooltip Tooltip.
Résultat void

hideAll() public méthode

public hideAll ( ) : void
Résultat void

instant() public méthode

Shows all tooltips on hover without a delay for resetTime seconds.
public instant ( ) : void
Résultat void

showAction() protected méthode

Called when tooltip is shown. Default implementation sets actions to animate showing.
protected showAction ( Tooltip tooltip ) : void
tooltip Tooltip Tooltip.
Résultat void

touchDown() public méthode

public touchDown ( Tooltip tooltip ) : void
tooltip Tooltip
Résultat void

Property Details

animations public_oe property

If false, tooltips will be shown without animations. Default is true.
public bool animations
Résultat bool

edgeDistance public_oe property

The distance from the tooltip actor position to the edge of the screen where the actor will be shown on the other side of the mouse cursor.
public float edgeDistance
Résultat float

enabled public_oe property

If false, tooltips will not be shown. Default is true.
public bool enabled
Résultat bool

initialTime public_oe property

Seconds from when an actor is hovered to when the tooltip is shown. Call {hideAll() after changing to reset internal state
public float initialTime
Résultat float

maxWidth public_oe property

The maximum width of a TextTooltip. The label will wrap if needed. Default is int.MaxValue.
public float maxWidth
Résultat float

offsetX public_oe property

The distance from the mouse position to offset the tooltip actor
public float offsetX
Résultat float

resetTime public_oe property

Seconds to use subsequentTime
public float resetTime
Résultat float

subsequentTime public_oe property

Once a tooltip is shown, this is used instead of initialTime. Default is 0.
public float subsequentTime
Résultat float