2009-08-20 16:18:52 +02:00
|
|
|
--- awesome screen API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
2014-05-26 21:26:52 +02:00
|
|
|
-- @release @AWESOME_VERSION@
|
2015-02-25 11:16:05 +01:00
|
|
|
-- @classmod screen
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2015-02-22 23:57:11 +01:00
|
|
|
--- Screen is a table where indexes are screen numbers. You can use `screen[1]`
|
2013-10-31 10:31:54 +01:00
|
|
|
-- to get access to the first screen, etc. Alternatively, if RANDR information
|
|
|
|
-- is available, you can use output names for finding screen objects.
|
|
|
|
-- Each screen has a set of properties.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-02-22 23:57:11 +01:00
|
|
|
-- @tfield table geometry The screen coordinates. Immutable.
|
|
|
|
-- @tfield table workarea The screen workarea.
|
|
|
|
-- @tfield int index The screen number.
|
|
|
|
-- @tfield table outputs If RANDR information is available, a list of outputs
|
|
|
|
-- for this screen and their size in mm.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @table screen
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2015-02-22 23:57:11 +01:00
|
|
|
--- Get the number of screens.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @return The screen count, at least 1.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function count
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Add a signal to a screen.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-02-22 23:57:11 +01:00
|
|
|
-- @string name A signal name.
|
|
|
|
-- @func 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 to a screen.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-02-22 23:57:11 +01:00
|
|
|
-- @string name A signal name.
|
|
|
|
-- @func 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 to a screen.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2015-02-22 23:57:11 +01:00
|
|
|
-- @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
|