Class awful.widget.button

A simple button widget.

Usage:

     local button = awful.widget.button()
     button:buttons(awful.util.table.join(
         button:buttons(),
         awful.button({}, 1, nil, function ()
             print("Mouse was clicked")
         end)
     ))

Info:

  • Copyright: 2008-2009 Julien Danjou
  • Author: Julien Danjou <julien@danjou.info>

Functions

button.new (args) Create a button widget.


Functions

button.new (args)
Create a button widget. When clicked, the image is deplaced to make it like a real button.
  • args Widget arguments. "image" is the image to display.

Returns:

    A textbox widget configured as a button.
generated by LDoc 1.4.2