2010-10-06 20:49:30 +02:00
|
|
|
--- awesome drawin API
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @author Julien Danjou <julien@danjou.info>
|
|
|
|
-- @copyright 2008-2009 Julien Danjou
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @classmod drawin
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2010-10-06 20:49:30 +02:00
|
|
|
--- Drawin object.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field border_width Border width.
|
|
|
|
-- @field border_color Border color.
|
|
|
|
-- @field ontop On top of other windows.
|
|
|
|
-- @field cursor The mouse cursor.
|
|
|
|
-- @field visible Visibility.
|
2010-10-06 20:49:30 +02:00
|
|
|
-- @field opacity The opacity of the drawin, between 0 and 1.
|
2014-03-01 19:28:06 +01:00
|
|
|
-- @field type The window type (desktop, normal, dock, …).
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @field x The x coordinates.
|
|
|
|
-- @field y The y coordinates.
|
2010-10-06 20:49:30 +02:00
|
|
|
-- @field width The width of the drawin.
|
|
|
|
-- @field height The height of the drawin.
|
2012-10-14 17:14:22 +02:00
|
|
|
-- @field drawable The drawin's drawable.
|
2014-03-01 19:28:06 +01:00
|
|
|
-- @field window The X window id.
|
2012-11-05 17:56:56 +01:00
|
|
|
-- @field shape_bounding The drawin's bounding shape as a (native) cairo surface.
|
|
|
|
-- @field shape_clip The drawin's clip shape as a (native) cairo surface.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @table drawin
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2010-10-06 20:49:30 +02:00
|
|
|
--- Get or set mouse buttons bindings to a drawin.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param buttons_table A table of buttons objects, or nothing.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function buttons
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2010-10-06 20:49:30 +02:00
|
|
|
--- Get or set drawin struts.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param strut A table with new strut, or nothing
|
2010-10-06 20:49:30 +02:00
|
|
|
-- @return The drawin strut in a table.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function struts
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2010-10-06 20:49:30 +02:00
|
|
|
--- Get or set drawin geometry. That's the same as accessing or setting the x, y, width or height
|
|
|
|
-- properties of a drawin.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param A table with coordinates to modify.
|
2010-10-06 20:49:30 +02:00
|
|
|
-- @return A table with drawin coordinates and geometry.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function geometry
|
2009-08-20 16:18:52 +02:00
|
|
|
|
2014-03-07 13:49:24 +01:00
|
|
|
--- Change a xproperty.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2014-03-07 13:49:24 +01:00
|
|
|
-- @param name The name of the X11 property
|
|
|
|
-- @param value The new value for the property
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function set_xproperty
|
2014-03-07 13:49:24 +01:00
|
|
|
|
|
|
|
--- Get the value of a xproperty.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2014-03-07 13:49:24 +01:00
|
|
|
-- @param name The name of the X11 property
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function get_xproperty
|
2014-03-07 13:49:24 +01:00
|
|
|
|
2009-08-20 16:18:52 +02:00
|
|
|
--- Add a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A signal name.
|
2009-08-30 06:20:52 +02:00
|
|
|
-- @param func A function to call when the signal is emitted.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function connect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Remove a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param func A function to remove.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function disconnect_signal
|
2009-08-20 16:18:52 +02:00
|
|
|
|
|
|
|
--- Emit a signal.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2009-08-20 16:18:52 +02:00
|
|
|
-- @param name A signal name.
|
|
|
|
-- @param ... Various arguments, optional.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function emit_signal
|
2010-09-17 17:10:53 +02:00
|
|
|
|
|
|
|
--- Get the number of instances.
|
2014-05-20 00:22:35 +02:00
|
|
|
--
|
2010-10-06 20:49:30 +02:00
|
|
|
-- @return The number of drawin objects alive.
|
2014-05-20 00:22:35 +02:00
|
|
|
-- @function instances
|