Module Stk.Tooltip

Tooltips

val set_delay : float -> unit

set_delay n sets delay (in seconds) before showing tooltip after last mouse motion other a widget having a tooltip.

val set : < Widget.widget.. > -> (unit -> Widget.widget) -> unit

set w f sets a tooltip for widget w. The function f will return the widget to put in the tooltip window.

val set_label : ?classes:string list -> ?props:Props.t -> < Widget.widget.. > -> string -> unit

set_label ?classes ?props w text sets a fixed text as tooltip for the given widget w, using a Text.label widget. Optional arguments classes and props are used when creating the label. A new label is created each time the tooltip pops up.

val set_label_f : ?classes:string list -> ?props:Props.t -> < Widget.widget.. > -> (unit -> string) -> unit

Same as set_label but the text is provided by a function called each time the tooltip label is created.

val set_tv_text_f : ?classes:string list -> ?props:Props.t -> < Widget.widget.. > -> ?lang:string -> (unit -> string) -> unit

set_tv_text ?classes ?props w f sets a textview widget as tooltip, initialized with optional lang. f () returns the text to insert in textview.

val set_tv_text : ?classes:string list -> ?props:Props.t -> < Widget.widget.. > -> ?lang:string -> string -> unit

Same as set_tv_text_f but displays a given constant text.