2009-08-20 16:18:52 +02:00
|
|
|
--- awesome button API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
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.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param ... Various arguments, optional.
|
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
|