darktable.gui.libs.select
The buttons that allow to quickly change the selection
Attributes:
🔗darktable.gui.libs.select.register_selection
function(
label : string,
callback : function,
[tooltip : string]
)
Add a new button and call a callback when it is clicked
- label - string - The label to display on the button
- callback - function - The function to call when the button is pressed
- [tooltip] - string - The tooltip to use on the new button
callback -
function(
event : string,
images : table oftypes.dt_lua_image_t
) : table oftypes.dt_lua_image_t
The function to call when the button is pressed
- event - string - The name of the button that was pressed
- images - table of types.dt_lua_image_t - The images in the current collection. This is the same content asdarktable.collection
- return - table of types.dt_lua_image_t - The images to set the selection to