Reference

# Module `screen`

awesome screen API

Author:

Julien Danjou <julien@danjou.info>

Copyright© 2008-2009 Julien Danjou

## Functions

add_signal (name, func) | Add a signal to a screen.
count () | Get the number of screen.
emit_signal (name, ...) | Emit a signal to a screen.
remove_signal (name, func) | Remove a signal to a screen.
tags (tags_table) | Get or set screen tags.

## Tables

screen | Screen is a table where indexes are screen number.

## Functions

add_signal (name, func)
  Add a signal to a screen.

  ### Parameters

  - name: A signal name.
  - func: A function to call when the signal is emitted.
count ()
  Get the number of screen.

  ### Return value:

  The screen count, at least 1.
emit_signal (name, ...)
  Emit a signal to a screen.

  ### Parameters

  - name: A signal name.
  - ...: Various arguments, optional.
remove_signal (name, func)
  Remove a signal to a screen.

  ### Parameters

  - name: A signal name.
  - func: A function to remove
tags (tags_table)
  Get or set screen tags.

  ### Parameters

  - tags_table: None or a table of tags to set to the screen. The table must contains at least one tag.

## Tables

screen
  Screen is a table where indexes are screen number. You can use screen[1] to get access to the first screen, etc. Each screen has a set of properties. Fields
  - geometry: The screen coordinates. Immutable.
  - workarea: The screen workarea.
  - index: The screen number.