Tooltip

Static variables

@:value(null)staticinstance:Tooltip = null

Static methods

staticaddDefault(object:IDisplayObject, data:Dynamic):Void

Tooltip.addDefault adds a tooltip with a style provided by an instance of TooltipSource class. Data can be either String or {text:String, longText:String}

Parameters:

data

can be either String or {text:String, longText:String}

Constructor

@:has_untypednew(tooltip:IDisplayObject)

Variables

@:value(15)distanceFromBorder:Float = 15

@:value(15)distanceFromMouse:Float = 15

dataSetFunction:(IDisplayObject, Dynamic) ‑> Void

Methods

add(object:IDisplayObject, data:Dynamic):Void

Tooltip.add adds a tooltip to an object. Data can be either String or {text:String, longText:String}, or you can use your own format by adding your own data set function to dataSetFunction variable of this Tooltip object.

Parameters:

data

can be either String or {text:String, longText:String}, or you can use your own format by adding your own data set function to dataSetFunction variable of this Tooltip object.