Module awful.tooltip

Info:

  • Author: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
  • Copyright: 2009 Sébastien Gross
  • Release: v3.5.1

Tables

tooltip Tooltip module for awesome objects.
tooltip Tooltip object definition.


Tables

tooltip
Tooltip module for awesome objects. A tooltip is a small hint displayed when the mouse cursor hovers a specific item. In awesome, a tooltip can be linked with almost any object having a connect_signal() method and receiving mouse::enter and mouse::leave signals.

How to create a tooltip?
myclock = awful.widget.textclock({}, "%T", 1)
myclock_t = awful.tooltip({
objects = { myclock },
timer_function = function()
return os.date("Today is %A %B %d %Y\nThe time is %T")
end,
})

How to add the same tooltip to several objects?
myclock_t:add_to_object(obj1)
myclock_t:add_to_object(obj2)
Now the same tooltip is attached to myclock, obj1, obj2.

How to remove tooltip from many objects?
myclock_t:remove_from_object(obj1)
myclock_t:remove_from_object(obj2)
Now the same tooltip is only attached to myclock.

awful.tooltip

Fields:

  • mt
tooltip
Tooltip object definition.

Fields:

  • wibox The wibox displaying the tooltip.
  • visible True if tooltip is visible.
generated by LDoc 1.3.13