brick v0.62 Release Notes
-
API changes:
Brick.Widgets.Core
got new functionscrop{Left,Right,Bottom,Top}To
. Unlike thecrop...By
functions, which crop on the specified side by a particular amount, thesecrop...To
functions crop on the specified side and take a desired overall width of the final result and use that to determine how much to crop. A widgetx
of widthw
could thus be cropped equivalently withcropLeftBy a x
andcropLeftTo (w - a) x
.
Other changes:
- Added
programs/CroppingDemo.hs
to demonstrate the new (and preexisting) cropping functions.