Module awful.screen

Info:

  • Copyright: 2008 Julien Danjou
  • Release: devel
  • Author: Julien Danjou <julien@danjou.info>

Functions

getbycoord (x, y, default) Return Xinerama screen number corresponding to the given (pixel) coordinates.
focus (screen) Give the focus to a screen, and move pointer.
focus_bydirection (dir, _screen) Give the focus to a screen, and move pointer, by physical position relative to current screen.
focus_relative (i) Give the focus to a screen, and move pointer, but relative to the current focused screen.
padding (_screen, padding) Get or set the screen padding.


Functions

getbycoord (x, y, default)
Return Xinerama screen number corresponding to the given (pixel) coordinates. The number returned can be used as an index into the global `screen` table/object.

Parameters:

  • x The x coordinate
  • y The y coordinate
  • default Optional default return value. If unspecified, 1 is returned.
focus (screen)
Give the focus to a screen, and move pointer. Keeps relative position of the pointer on the screen.

Parameters:

  • screen Screen number.
focus_bydirection (dir, _screen)
Give the focus to a screen, and move pointer, by physical position relative to current screen.

Parameters:

  • dir The direction, can be either "up", "down", "left" or "right".
  • _screen Screen number.
focus_relative (i)
Give the focus to a screen, and move pointer, but relative to the current focused screen.

Parameters:

  • i Value to add to the current focused screen index. 1 will focus next screen, -1 would focus the previous one.
padding (_screen, padding)
Get or set the screen padding.

Parameters:

  • _screen The screen object to change the padding on
  • padding The padding, an table with 'top', 'left', 'right' and/or 'bottom'. Can be nil if you only want to retrieve padding
generated by LDoc 1.4.2