2009-08-20 16:18:52 +02:00
|
|
|
--- awesome mouse API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
2014-05-26 21:26:52 +02:00
|
|
|
-- @release @AWESOME_VERSION@
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @module mouse
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Mouse library.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field screen Mouse screen number.
|
2015-02-15 22:33:23 +01:00
|
|
|
-- @table mouse
|
|
|
|
|
|
|
|
--- A table with X and Y coordinates.
|
|
|
|
-- @field x X coordinate.
|
|
|
|
-- @field y Y coordinate.
|
|
|
|
-- @table coords_table
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Get or set the mouse coords.
|
2015-02-15 22:33:23 +01:00
|
|
|
-- @tparam coords_table coords_table None or a table with x and y keys as mouse coordinates.
|
|
|
|
-- @tparam boolean silent Disable mouse::enter or mouse::leave events that could be triggered by the pointer when moving.
|
|
|
|
-- @treturn coords_table A table with mouse coordinates.
|
|
|
|
-- @function coords
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Get the client or any object which is under the pointer.
|
2015-02-15 22:33:23 +01:00
|
|
|
-- @treturn client.client|nil A client or nil.
|
|
|
|
-- @function object_under_pointer
|