awesome/lib/gears
Emmanuel Lepage Vallée 00ba63b44e
gears.surface: Add crop (#3882)
* added surface crop function

* added busted tests

* added devShell Flake

* Revert "added devShell Flake"

This reverts commit 0acb3d4e43.

* general purpose crop added

* cleanup

* merged functions, added tests

* replaced gdebug.print_error with error

* clearer error message for crop

Co-authored-by: Lucas Schwiderski <4508454+sclu1034@users.noreply.github.com>

* make error message shorter

* surface.crop: Fix doc warnings.

---------

Co-authored-by: Paul Schneider <74120050+paulhersch@users.noreply.github.com>
Co-authored-by: Paul Schneider <paul.schneider2@student.uni-halle.de>
Co-authored-by: Lucas Schwiderski <4508454+sclu1034@users.noreply.github.com>
2023-12-31 15:15:50 -08:00
..
object object: Make the legacy accessor code more robust. 2019-12-04 02:05:09 -05:00
sort doc: Add a mandatory `@noreturn` for functions and methods. 2022-08-29 22:49:45 -07:00
cache.lua add docs for gears.cache 2020-01-05 20:58:36 -06:00
color.lua gears.color: Update the property documentation. 2022-08-29 22:49:47 -07:00
debug.lua doc: Add a mandatory `@noreturn` for functions and methods. 2022-08-29 22:49:45 -07:00
filesystem.lua Move some filesystem related logic in the screenshot lib to gears 2022-11-13 16:53:32 -08:00
geometry.lua Implement fixes for Luacheck 0.26.1 2022-08-28 16:59:14 -07:00
init.lua gears: Add a new sort module 2018-03-04 01:29:33 -05:00
matcher.lua doc: Add a mandatory `@noreturn` for functions and methods. 2022-08-29 22:49:45 -07:00
math.lua doc: Add documentation linting and fix all issues it found. 2022-08-29 22:48:54 -07:00
matrix.lua doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
object.lua doc: Add a mandatory `@noreturn` for functions and methods. 2022-08-29 22:49:45 -07:00
protected_call.lua doc: Add documentation linting and fix all issues it found. 2022-08-29 22:48:54 -07:00
shape.lua shape: Add a "solid shadow" shape. (#3489) 2022-10-16 02:29:09 -07:00
string.lua Added gears.string.psplit function to support patterns (#3839) 2023-11-18 17:14:35 -08:00
surface.lua gears.surface: Add crop (#3882) 2023-12-31 15:15:50 -08:00
table.lua doc: Add documentation linting and fix all issues it found. 2022-08-29 22:48:54 -07:00
timer.lua gears.timer: Update the property documentation. 2022-08-29 22:49:47 -07:00
wallpaper.lua gears.wallpaper: Deprecate. 2021-09-24 08:42:42 -07:00