2009-08-20 16:18:52 +02:00
|
|
|
--- awesome key 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 key
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Key object.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-06-19 20:49:53 +02:00
|
|
|
-- @tfield string key The key to trigger an event.
|
|
|
|
-- @tfield string keysym Same as key, but return the name of the key symbol. It
|
|
|
|
-- can be identical to key, but for characters like '.' it will return
|
|
|
|
-- 'period'.
|
|
|
|
-- @tfield table modifiers The modifier key that should be pressed while the
|
|
|
|
-- key is pressed. An array with all the modifiers. Valid modifiers are: Any,
|
|
|
|
-- Mod1, Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @table key
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Add a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-06-19 20:49:53 +02:00
|
|
|
-- @tparam string name A signal name.
|
|
|
|
-- @tparam function func A function to call when the signal is emitted.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Remove a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-06-19 20:49:53 +02:00
|
|
|
-- @tparam string name A signal name.
|
|
|
|
-- @tparam function func A function to remove.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Emit a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-06-19 20:49:53 +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
|
|
|
--
|
2015-06-19 20:49:53 +02:00
|
|
|
-- @treturn number The number of key objects alive.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function instances
|