2009-08-20 16:18:52 +02:00
|
|
|
--- awesome screen API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
|
|
|
module("screen")
|
|
|
|
|
2009-08-30 06:20:52 +02:00
|
|
|
--- Screen is a table where indexes are screen number. 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.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field geometry The screen coordinates. Immutable.
|
|
|
|
-- @field workarea The screen workarea.
|
|
|
|
-- @field index The screen number.
|
2013-10-31 10:31:54 +01:00
|
|
|
-- @field outputs If RANDR information is available, a list of outputs for this
|
|
|
|
-- screen and their size in mm.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class table
|
|
|
|
-- @name screen
|
|
|
|
|
|
|
|
--- Get the number of screen.
|
|
|
|
-- @return The screen count, at least 1.
|
|
|
|
-- @name count
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Add a signal to a screen.
|
|
|
|
-- @param name A signal name.
|
2009-08-30 06:20:52 +02:00
|
|
|
-- @param func A function to call when the signal is emitted.
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Remove a signal to a screen.
|
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param func A function to remove
|
2010-08-25 20:37:49 +02:00
|
|
|
-- @name disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Emit a signal to a screen.
|
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param ... Various arguments, optional.
|
|
|
|
-- @name emit_signal
|
|
|
|
-- @class function
|