41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
--- awesome screen API
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
-- @copyright 2008-2009 Julien Danjou
|
|
-- @release @AWESOME_VERSION@
|
|
-- @classmod screen
|
|
|
|
--- Screen is a table where indexes are screen numbers. You can use `screen[1]`
|
|
-- 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.
|
|
--
|
|
-- @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.
|
|
-- @table screen
|
|
|
|
--- Get the number of screens.
|
|
--
|
|
-- @return The screen count, at least 1.
|
|
-- @function count
|
|
|
|
--- Add a signal to a screen.
|
|
--
|
|
-- @string name A signal name.
|
|
-- @func func A function to call when the signal is emitted.
|
|
-- @function connect_signal
|
|
|
|
--- Remove a signal to a screen.
|
|
--
|
|
-- @string name A signal name.
|
|
-- @func func A function to remove
|
|
-- @function disconnect_signal
|
|
|
|
--- Emit a signal to a screen.
|
|
--
|
|
-- @string name A signal name.
|
|
-- @param ... Various arguments, optional.
|
|
-- @function emit_signal
|