Module: dynamite.utils

A set of generic functions to manipulate layouts.

Awesome layouts provide multiple parameters

Static module functions

dynamite.utils.resize_widget (self, self, delta) Add or remove pixels in different directions.


Static module functions

dynamite.utils.resize_widget (self, self, delta)
Add or remove pixels in different directions.

Widgets wishing to implement resizing must listen to the request.is_accepted signal. This signal has the originating requestor as the first argument and a request object as the second. The widget must check if the request is already granted using if request.is_accepted then return end to avoid a single request to be granted multiple time. Widgets are allowed to modify the delta property of the request object without having to accept the request. To accept the request, the widget must call request:accept(self).

Parameters:

  • self widget The client placeholder or widget to resize.
  • self widget The client placeholder or widget to resize.
  • delta table The amount to resize in each direction.
generated by LDoc 1.4.6 Last updated 2021-11-13 00:35:50