Module awful.tooltip
Info:
- Copyright: 2009 Sébastien Gross
- Release: v3.5.1
- Author: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
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 receivingmouse::enterandmouse::leavesignals.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)Now the same tooltip is attached to
myclock_t:add_to_object(obj2)
myclock,obj1,obj2.
How to remove tooltip from many objects?
awful.tooltip
myclock_t:remove_from_object(obj1)Now the same tooltip is only attached to
myclock_t:remove_from_object(obj2)
myclock.
Fields:
- mt
- tooltip
-
Tooltip object definition.
Fields:
- wibox The wibox displaying the tooltip.
- visible True if tooltip is visible.