196 lines
8.3 KiB
Plaintext
196 lines
8.3 KiB
Plaintext
|
|
--- Get a widget index.
|
|
-- @param widget The widget to look for
|
|
-- @param[opt] recursive Also check sub-widgets
|
|
-- @param[opt] ... Additional widgets to add at the end of the path
|
|
-- @return The index
|
|
-- @return The parent layout
|
|
-- @return The path between self and widget
|
|
-- @method index
|
|
-- @baseclass wibox.widget
|
|
|
|
--- Get or set the children elements.
|
|
-- @property children
|
|
-- @tparam table children The children.
|
|
-- @baseclass wibox.widget
|
|
|
|
--- 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.
|
|
-- @property all_children
|
|
-- @tparam table children The children.
|
|
-- @baseclass wibox.widget
|
|
|
|
--- 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
|
|
-- @method setup
|
|
-- @baseclass wibox.widget
|
|
|
|
--- Force a widget height.
|
|
-- @property forced_height
|
|
-- @tparam number|nil height The height (`nil` for automatic)
|
|
-- @baseclass wibox.widget
|
|
|
|
--- Force a widget width.
|
|
-- @property forced_width
|
|
-- @tparam number|nil width The width (`nil` for automatic)
|
|
-- @baseclass wibox.widget
|
|
|
|
--- The widget opacity (transparency).
|
|
-- @property opacity
|
|
-- @tparam[opt=1] number opacity The opacity (between 0 and 1)
|
|
-- @baseclass wibox.widget
|
|
|
|
--- The widget visibility.
|
|
-- @property visible
|
|
-- @param boolean
|
|
-- @baseclass wibox.widget
|
|
|
|
--- The widget buttons.
|
|
--
|
|
-- The table contains a list of `awful.button` objects.
|
|
--
|
|
-- @property buttons
|
|
-- @param table
|
|
-- @see awful.button
|
|
-- @baseclass wibox.widget
|
|
|
|
--- Add a new `awful.button` to this widget.
|
|
-- @tparam awful.button button The button to add.
|
|
-- @method add_button
|
|
-- @baseclass wibox.widget
|
|
|
|
--- 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
|
|
-- @baseclass wibox.widget
|
|
-- @method emit_signal_recursive
|
|
|
|
--- When the layout (size) change.
|
|
-- 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.
|
|
-- @signal widget::layout_changed
|
|
-- @see widget::redraw_needed
|
|
-- @baseclass wibox.widget
|
|
|
|
--- When the widget content changed.
|
|
-- 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.
|
|
-- @signal widget::redraw_needed
|
|
-- @see widget::layout_changed
|
|
-- @baseclass wibox.widget
|
|
|
|
--- When a mouse button is pressed over the widget.
|
|
-- @signal button::press
|
|
-- @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.
|
|
-- @tparam number button The button number.
|
|
-- @tparam table mods The modifiers (mod4, mod1 (alt), Control, Shift)
|
|
-- @tparam table find_widgets_result The entry from the result of
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
|
-- @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.
|
|
-- @see mouse
|
|
-- @baseclass wibox.widget
|
|
|
|
--- When a mouse button is released over the widget.
|
|
-- @signal button::release
|
|
-- @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.
|
|
-- @tparam number button The button number.
|
|
-- @tparam table mods The modifiers (mod4, mod1 (alt), Control, Shift)
|
|
-- @tparam table find_widgets_result The entry from the result of
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
|
-- @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.
|
|
-- @see mouse
|
|
-- @baseclass wibox.widget
|
|
|
|
--- When the mouse enter a widget.
|
|
-- @signal mouse::enter
|
|
-- @tparam table find_widgets_result The entry from the result of
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
|
-- @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.
|
|
-- @see mouse
|
|
-- @baseclass wibox.widget
|
|
|
|
--- When the mouse leave a widget.
|
|
-- @signal mouse::leave
|
|
-- @tparam table find_widgets_result The entry from the result of
|
|
-- @{wibox.drawable:find_widgets} for the position that the mouse hit.
|
|
-- @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.
|
|
-- @see mouse
|
|
-- @baseclass wibox.widget
|