2009-08-20 16:18:52 +02:00
|
|
|
--- awesome button API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
2014-05-26 21:26:52 +02:00
|
|
|
-- @release @AWESOME_VERSION@
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @classmod button
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Button object.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
|
|
|
-- @tfield int button The mouse button number, or 0 for any button.
|
|
|
|
-- @tfield table modifiers The modifier key table that should be pressed while the
|
|
|
|
-- button is pressed.
|
|
|
|
-- @table button
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Add a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @tparam string name A signal name.
|
|
|
|
-- @tparam func func A function to call when the signal is emitted.
|
|
|
|
-- @function connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Remove a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @tparam string name A signal name.
|
|
|
|
-- @tparam func func A function to remove.
|
|
|
|
-- @function disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Emit a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @tparam string name A signal name.
|
2015-02-26 22:06:34 +01:00
|
|
|
-- @param[opt] ... Various arguments.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function emit_signal
|
2010-09-17 17:10:53 +02:00
|
|
|
|
|
|
|
--- Get the number of instances.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @treturn int The number of button objects alive.
|
|
|
|
-- @function instances
|