2016-05-26 07:59:20 +02:00
|
|
|
|
2017-08-14 16:06:44 +02:00
|
|
|
--- Get a widget index.
|
2016-05-26 07:59:20 +02:00
|
|
|
-- @param widget The widget to look for
|
|
|
|
-- @param[opt] recursive Also check sub-widgets
|
2017-08-16 20:07:08 +02:00
|
|
|
-- @param[opt] ... Additional widgets to add at the end of the path
|
2016-05-26 07:59:20 +02:00
|
|
|
-- @return The index
|
|
|
|
-- @return The parent layout
|
2017-08-14 16:06:44 +02:00
|
|
|
-- @return The path between self and widget
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method index
|
|
|
|
|
|
|
|
--- Get or set the children elements.
|
|
|
|
-- @property children
|
|
|
|
-- @tparam table The children
|
2016-05-26 07:59:20 +02:00
|
|
|
|
|
|
|
--- Get all direct and indirect children widgets.
|
|
|
|
-- This will scan all containers recursively to find widgets
|
|
|
|
-- Warning: This method it prone to stack overflow id the widget, or any of its
|
|
|
|
-- children, contain (directly or indirectly) itself.
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @property all_children
|
|
|
|
-- @tparam table The children
|
2016-05-26 07:59:20 +02:00
|
|
|
|
|
|
|
--- Set a declarative widget hierarchy description.
|
|
|
|
-- See [The declarative layout system](../documentation/03-declarative-layout.md.html)
|
|
|
|
-- @param args An array containing the widgets disposition
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method setup
|
2016-05-26 07:59:20 +02:00
|
|
|
|
|
|
|
--- Force a widget height.
|
|
|
|
-- @property forced_height
|
|
|
|
-- @tparam number|nil height The height (`nil` for automatic)
|
|
|
|
|
|
|
|
--- Force a widget width.
|
|
|
|
-- @property forced_width
|
|
|
|
-- @tparam number|nil width The width (`nil` for automatic)
|
|
|
|
|
|
|
|
--- The widget opacity (transparency).
|
|
|
|
-- @property opacity
|
|
|
|
-- @tparam[opt=1] number opacity The opacity (between 0 and 1)
|
|
|
|
|
|
|
|
--- The widget visibility.
|
|
|
|
-- @property visible
|
|
|
|
-- @param boolean
|
|
|
|
|
2018-12-27 00:30:08 +01:00
|
|
|
--- The widget buttons.
|
|
|
|
--
|
|
|
|
-- The table contains a list of `awful.button` objects.
|
|
|
|
--
|
|
|
|
-- @property buttons
|
|
|
|
-- @param table
|
|
|
|
-- @see awful.button
|
2016-05-26 21:05:51 +02:00
|
|
|
|
2016-08-08 08:40:05 +02:00
|
|
|
--- Emit a signal and ensure all parent widgets in the hierarchies also
|
|
|
|
-- forward the signal. This is useful to track signals when there is a dynamic
|
|
|
|
-- set of containers and layouts wrapping the widget.
|
|
|
|
-- @tparam string signal_name
|
|
|
|
-- @param ... Other arguments
|
2019-06-06 22:32:53 +02:00
|
|
|
-- @method emit_signal_recursive
|
2016-08-08 08:40:05 +02:00
|
|
|
|
2016-05-26 21:05:51 +02:00
|
|
|
--- When the layout (size) change.
|
2016-10-01 16:08:01 +02:00
|
|
|
-- This signal is emitted when the previous results of `:layout()` and `:fit()`
|
|
|
|
-- are no longer valid. Unless this signal is emitted, `:layout()` and `:fit()`
|
|
|
|
-- must return the same result when called with the same arguments.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @signal widget::layout_changed
|
|
|
|
-- @see widget::redraw_needed
|
|
|
|
|
|
|
|
--- When the widget content changed.
|
2016-10-01 16:08:01 +02:00
|
|
|
-- This signal is emitted when the content of the widget changes. The widget will
|
|
|
|
-- be redrawn, it is not re-layouted. Put differently, it is assumed that
|
|
|
|
-- `:layout()` and `:fit()` would still return the same results as before.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @signal widget::redraw_needed
|
2016-10-01 16:08:01 +02:00
|
|
|
-- @see widget::layout_changed
|
2016-05-26 21:05:51 +02:00
|
|
|
|
|
|
|
--- When a mouse button is pressed over the widget.
|
|
|
|
-- @signal button::press
|
2016-10-01 16:12:19 +02:00
|
|
|
-- @tparam number lx The horizontal position relative to the (0,0) position in
|
|
|
|
-- the widget.
|
|
|
|
-- @tparam number ly The vertical position relative to the (0,0) position in the
|
|
|
|
-- widget.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @tparam number button The button number.
|
|
|
|
-- @tparam table mods The modifiers (mod4, mod1 (alt), Control, Shift)
|
2016-10-01 16:12:19 +02:00
|
|
|
-- @tparam table find_widgets_result The entry from the result of
|
|
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
2016-10-05 20:27:47 +02:00
|
|
|
-- @tparam wibox.drawable find_widgets_result.drawable The drawable containing
|
|
|
|
-- the widget.
|
|
|
|
-- @tparam widget find_widgets_result.widget The widget being displayed.
|
|
|
|
-- @tparam wibox.hierarchy find_widgets_result.hierarchy The hierarchy
|
|
|
|
-- managing the widget's geometry.
|
|
|
|
-- @tparam number find_widgets_result.x An approximation of the X position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.y An approximation of the Y position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.width An approximation of the width that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.height An approximation of the height that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.widget_width The exact width of the widget
|
|
|
|
-- in its local coordinate system.
|
|
|
|
-- @tparam number find_widgets_result.widget_height The exact height of the widget
|
|
|
|
-- in its local coordinate system.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @see mouse
|
|
|
|
|
|
|
|
--- When a mouse button is released over the widget.
|
|
|
|
-- @signal button::release
|
2016-10-01 16:12:19 +02:00
|
|
|
-- @tparam number lx The horizontal position relative to the (0,0) position in
|
|
|
|
-- the widget.
|
|
|
|
-- @tparam number ly The vertical position relative to the (0,0) position in the
|
|
|
|
-- widget.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @tparam number button The button number.
|
|
|
|
-- @tparam table mods The modifiers (mod4, mod1 (alt), Control, Shift)
|
2016-10-01 16:12:19 +02:00
|
|
|
-- @tparam table find_widgets_result The entry from the result of
|
|
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
2016-10-05 20:27:47 +02:00
|
|
|
-- @tparam wibox.drawable find_widgets_result.drawable The drawable containing
|
|
|
|
-- the widget.
|
|
|
|
-- @tparam widget find_widgets_result.widget The widget being displayed.
|
|
|
|
-- @tparam wibox.hierarchy find_widgets_result.hierarchy The hierarchy
|
|
|
|
-- managing the widget's geometry.
|
|
|
|
-- @tparam number find_widgets_result.x An approximation of the X position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.y An approximation of the Y position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.width An approximation of the width that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.height An approximation of the height that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.widget_width The exact width of the widget
|
|
|
|
-- in its local coordinate system.
|
|
|
|
-- @tparam number find_widgets_result.widget_height The exact height of the widget
|
|
|
|
-- in its local coordinate system.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @see mouse
|
|
|
|
|
|
|
|
--- When the mouse enter a widget.
|
|
|
|
-- @signal mouse::enter
|
2016-10-01 16:09:30 +02:00
|
|
|
-- @tparam table find_widgets_result The entry from the result of
|
2016-10-01 16:12:19 +02:00
|
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
2016-10-05 20:27:47 +02:00
|
|
|
-- @tparam wibox.drawable find_widgets_result.drawable The drawable containing
|
|
|
|
-- the widget.
|
|
|
|
-- @tparam widget find_widgets_result.widget The widget being displayed.
|
|
|
|
-- @tparam wibox.hierarchy find_widgets_result.hierarchy The hierarchy
|
|
|
|
-- managing the widget's geometry.
|
|
|
|
-- @tparam number find_widgets_result.x An approximation of the X position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.y An approximation of the Y position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.width An approximation of the width that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.height An approximation of the height that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.widget_width The exact width of the widget
|
|
|
|
-- in its local coordinate system.
|
|
|
|
-- @tparam number find_widgets_result.widget_height The exact height of the widget
|
|
|
|
-- in its local coordinate system.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @see mouse
|
|
|
|
|
|
|
|
--- When the mouse leave a widget.
|
|
|
|
-- @signal mouse::leave
|
2016-10-01 16:09:30 +02:00
|
|
|
-- @tparam table find_widgets_result The entry from the result of
|
2016-10-01 16:12:19 +02:00
|
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
2016-10-05 20:27:47 +02:00
|
|
|
-- @tparam wibox.drawable find_widgets_result.drawable The drawable containing
|
|
|
|
-- the widget.
|
|
|
|
-- @tparam widget find_widgets_result.widget The widget being displayed.
|
|
|
|
-- @tparam wibox.hierarchy find_widgets_result.hierarchy The hierarchy
|
|
|
|
-- managing the widget's geometry.
|
|
|
|
-- @tparam number find_widgets_result.x An approximation of the X position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.y An approximation of the Y position that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.width An approximation of the width that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.height An approximation of the height that
|
|
|
|
-- the widget is visible at on the surface.
|
|
|
|
-- @tparam number find_widgets_result.widget_width The exact width of the widget
|
|
|
|
-- in its local coordinate system.
|
|
|
|
-- @tparam number find_widgets_result.widget_height The exact height of the widget
|
|
|
|
-- in its local coordinate system.
|
2016-05-26 21:05:51 +02:00
|
|
|
-- @see mouse
|