C# Класс Nez.UI.TooltipManager

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
animations bool
edgeDistance float
enabled bool
initialTime float
maxWidth float
offsetX float
resetTime float
subsequentTime float

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
startResetTask ( ) : void
startShowTask ( float time ) : void
stopResetTask ( ) : void
stopShowTask ( ) : void

Описание методов

enter() публичный метод

public enter ( Tooltip tooltip ) : void
tooltip Tooltip
Результат void

getInstance() статический публичный метод

static public getInstance ( ) : TooltipManager
Результат TooltipManager

hide() публичный метод

public hide ( Tooltip tooltip ) : void
tooltip Tooltip
Результат void

hideAction() защищенный метод

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.
Результат void

hideAll() публичный метод

public hideAll ( ) : void
Результат void

instant() публичный метод

Shows all tooltips on hover without a delay for resetTime seconds.
public instant ( ) : void
Результат void

showAction() защищенный метод

Called when tooltip is shown. Default implementation sets actions to animate showing.
protected showAction ( Tooltip tooltip ) : void
tooltip Tooltip Tooltip.
Результат void

touchDown() публичный метод

public touchDown ( Tooltip tooltip ) : void
tooltip Tooltip
Результат void

Описание свойств

animations публичное свойство

If false, tooltips will be shown without animations. Default is true.
public bool animations
Результат bool

edgeDistance публичное свойство

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
Результат float

enabled публичное свойство

If false, tooltips will not be shown. Default is true.
public bool enabled
Результат bool

initialTime публичное свойство

Seconds from when an actor is hovered to when the tooltip is shown. Call {hideAll() after changing to reset internal state
public float initialTime
Результат float

maxWidth публичное свойство

The maximum width of a TextTooltip. The label will wrap if needed. Default is int.MaxValue.
public float maxWidth
Результат float

offsetX публичное свойство

The distance from the mouse position to offset the tooltip actor
public float offsetX
Результат float

resetTime публичное свойство

Seconds to use subsequentTime
public float resetTime
Результат float

subsequentTime публичное свойство

Once a tooltip is shown, this is used instead of initialTime. Default is 0.
public float subsequentTime
Результат float