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
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field key The key to press to triggers an event.
|
|
|
|
-- @field keysym Same as key, but return the name of the key symbol. It can
|
2014-05-20 00:22:35 +02:00
|
|
|
-- be identical to key, but for characters like '.' it will return 'period'.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field modifiers The modifier key that should be pressed while the key is
|
2014-05-20 00:22:35 +02:00
|
|
|
-- pressed. An array with all the modifiers. Valid modifiers are: Any, Mod1,
|
|
|
|
-- Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control.
|
|
|
|
-- @table key
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Add a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A signal name.
|
2009-08-30 06:20:52 +02:00
|
|
|
-- @param 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
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param 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
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param 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
|
|
|
--
|
2010-09-17 17:10:53 +02:00
|
|
|
-- @return The number of key objects alive.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function instances
|