2009-08-20 16:18:52 +02:00
|
|
|
--- awesome tag 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 tag
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Tag object.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field name Tag name.
|
2012-10-20 17:33:32 +02:00
|
|
|
-- @field selected True if the tag is selected to be viewed.
|
|
|
|
-- @field activated True if the tag is active and can be used.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @table tag
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Get or set the clients attached to this tag.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param clients_table None or a table of clients to set as being tagged with this tag.
|
|
|
|
-- @return A table with the clients attached to this tags.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function clients
|
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 tag objects alive.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function instances
|