2012-10-14 17:14:22 +02:00
|
|
|
--- awesome drawable API
|
|
|
|
-- @author Uli Schlachter <psychon@znc.in>
|
|
|
|
-- @copyright 2012 Uli Schlachter
|
2014-05-26 21:26:52 +02:00
|
|
|
-- @release @AWESOME_VERSION@
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @classmod drawable
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Drawable object.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @field surface The drawable's cairo surface.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function drawable
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Get drawable geometry. The geometry consists of x, y, width and height.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @return A table with drawable coordinates and geometry.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function geometry
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Refresh the drawable. When you are drawing to the surface, you have
|
|
|
|
-- call this function when you are done to make the result visible.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
|
|
|
-- @function refresh
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Add a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param func A function to call when the signal is emitted.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function connect_signal
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Remove a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param func A function to remove.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function disconnect_signal
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Emit a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @param name A signal name.
|
2015-02-26 22:06:34 +01:00
|
|
|
-- @param[opt] ... Various arguments.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function emit_signal
|
2012-10-14 17:14:22 +02:00
|
|
|
|
|
|
|
--- Get the number of instances.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @return The number of drawable objects alive.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function instances
|