C# Class Nez.UI.TooltipManager

Exibir arquivo Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
animations bool
edgeDistance float
enabled bool
initialTime float
maxWidth float
offsetX float
resetTime float
subsequentTime float

Public Methods

Method 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

Protected Methods

Method 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

Method Description
startResetTask ( ) : void
startShowTask ( float time ) : void
stopResetTask ( ) : void
stopShowTask ( ) : void

Method Details

enter() public method

public enter ( Tooltip tooltip ) : void
tooltip Tooltip
return void

getInstance() static public method

static public getInstance ( ) : TooltipManager
return TooltipManager

hide() public method

public hide ( Tooltip tooltip ) : void
tooltip Tooltip
return void

hideAction() protected method

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.
return void

hideAll() public method

public hideAll ( ) : void
return void

instant() public method

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

showAction() protected method

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

touchDown() public method

public touchDown ( Tooltip tooltip ) : void
tooltip Tooltip
return void

Property Details

animations public_oe property

If false, tooltips will be shown without animations. Default is true.
public bool animations
return 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
return float

enabled public_oe property

If false, tooltips will not be shown. Default is true.
public bool enabled
return 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
return float

maxWidth public_oe property

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

offsetX public_oe property

The distance from the mouse position to offset the tooltip actor
public float offsetX
return float

resetTime public_oe property

Seconds to use subsequentTime
public float resetTime
return float

subsequentTime public_oe property

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