2009-08-20 16:18:52 +02:00
|
|
|
--- awesome mousegrabber API
|
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
|
|
|
module("mousegrabber")
|
|
|
|
|
|
|
|
--- Grab the mouse pointer and list motions, calling callback function at each
|
|
|
|
-- motion. The callback function must return a boolean value: true to
|
|
|
|
-- continue grabbing, false to stop.
|
|
|
|
-- The function is called with one argument:
|
|
|
|
-- a table containing modifiers pointer coordinates.
|
|
|
|
-- @param func A callback function as described above.
|
2011-12-22 10:23:25 +01:00
|
|
|
-- @param cursor The name of a X cursor to use while grabbing.
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @name run
|
|
|
|
-- @class function
|
|
|
|
|
|
|
|
--- Stop grabbing the mouse pointer.
|
|
|
|
-- @param -
|
|
|
|
-- @name stop
|
|
|
|
-- @class function
|
2012-08-11 23:55:26 +02:00
|
|
|
|
|
|
|
--- Check if the mousegrabber is running.
|
|
|
|
-- @param -
|
|
|
|
-- @return A boolean value, true if running, false otherwise.
|
|
|
|
-- @name isrunning
|
|
|
|
-- @class function
|