Commit Graph

1776 Commits

Author SHA1 Message Date
Jonathan Daugherty
62baeb66dd Render.hs: improve message on skip 2022-07-04 09:09:13 -07:00
Jonathan Daugherty
5fb650fd71 Render.hs: pass trivially on absence of terminal 2022-07-04 09:00:28 -07:00
Jonathan Daugherty
5993603b02 Render.hs test program: various enhancements 2022-07-04 08:53:35 -07:00
Jonathan Daugherty
fabc13c627 Render.hs: whitespace 2022-07-04 08:47:06 -07:00
Jonathan Daugherty
1901af0792 Render.hs: whitespace 2022-07-04 08:46:47 -07:00
Jonathan Daugherty
59da9b55e5 Update test render program to match renderWidget API change 2022-07-04 08:43:34 -07:00
Jonathan Daugherty
30a65fc7e0 renderWidget: add attribute map argument and update documentation 2022-07-04 08:41:00 -07:00
Jonathan Daugherty
f3ef855f76 renderWidget: whitespace 2022-07-04 08:32:12 -07:00
Jonathan Daugherty
835d875331
Merge pull request #374 from valyagolev/vg-render-widget
Add Brick.Main.renderWidget
2022-07-04 08:28:03 -07:00
Valentin Golev
c41daa9368 catch VtyMissingTermEnvVar 2022-07-04 02:40:00 +02:00
Valentin Golev
a5249e5e92 simplified renderWidget, and Render test example 2022-07-03 23:49:59 +02:00
Valentin Golev
b68310e740 renderWidget function 2022-07-01 04:02:27 +02:00
Jonathan Daugherty
c06231cce9 table: another haddock addition 2022-06-20 14:21:11 -07:00
Jonathan Daugherty
84573dace9 table: more haddock additions 2022-06-20 14:17:25 -07:00
Jonathan Daugherty
322bd7d0bb Update README and README demo program to match 2022-06-19 21:52:45 -07:00
Jonathan Daugherty
410fcaa212 Forms: typo 2022-06-19 14:18:41 -07:00
Jonathan Daugherty
fa1330d216 cabal: update copyright range 2022-06-19 14:17:21 -07:00
Jonathan Daugherty
aac39c4801 Table: more cleanup 2022-06-19 14:08:28 -07:00
Jonathan Daugherty
03d2a10129 table: cleanup 2022-06-19 13:48:23 -07:00
Jonathan Daugherty
16bf5b7e59 Table: improve documentation 2022-06-19 13:37:00 -07:00
Jonathan Daugherty
a039911c9e Table: use multi-way if to clean up 2022-06-19 13:30:47 -07:00
Jonathan Daugherty
cb7afe24a8 README: update border drawing example 2022-06-19 13:25:17 -07:00
Jonathan Daugherty
da6a7994e6 Bump version, update changelog 2022-06-19 13:13:34 -07:00
Jonathan Daugherty
c4ed0a4a91 Add missing import for older GHCs 2022-06-19 13:12:26 -07:00
Jonathan Daugherty
708c74c339 Bump version, update changelog 2022-06-19 13:05:53 -07:00
Jonathan Daugherty
04db41b1f3 Table: remove non-empty and all-empty cell restrictions 2022-06-19 13:03:03 -07:00
Jonathan Daugherty
4b1c6ab808
Merge pull request #373 from dmwit/issue-370
make empty BorderMaps even emptier (resolves issue 370)
2022-06-19 12:19:13 -07:00
Daniel Wagner
539a594c27 make empty BorderMaps even emptier (issue 370)
The BorderMap module provides a notion of an empty map. Previously, this
was accidentally conflating two kinds of emptiness: an map that doesn't
track points, and a map that tracks a point (or multiple points) but
doesn't associate it with anything. This meant that the empty map was
not a unit for the union operation, which seems like a natural
expectation.

This has been resolved by revising the empty map to be the one that
tracks no points. Callers that expected that behavior were left alone,
while callers that expected the other behavior were fixed to use
`emptyCoordinates`.
2022-06-19 14:51:22 -04:00
Jonathan Daugherty
6ccdd8c1f1 emptyResult: use explicit record syntax 2022-06-18 10:08:17 -07:00
Jonathan Daugherty
9cc4c7d57f Bump version, update changelog 2022-06-18 09:10:34 -07:00
Jonathan Daugherty
67c1b99989 Table: add additional cautionary note to the docs about empty cells 2022-06-18 09:05:35 -07:00
Jonathan Daugherty
55c13f7ff4 Table: fill and pad empty cells to avoid layout issues (fixes #369)
This change makes it so that when cells are empty (have zero width and
height) and are top- and left-aligned, we pad them to take up the same
amount of width and height as their row- and column-wise neighbors. This
was already the case for other alignment settings, but the top- and
left-aligned cases were not getting padded.
2022-06-18 09:03:43 -07:00
Jonathan Daugherty
d196695ab7 relativeTo: remove unused Show constraint 2022-05-24 17:43:21 -07:00
Jonathan Daugherty
c416d04a4a relativeTo: improve documentation 2022-05-24 17:43:13 -07:00
Jonathan Daugherty
b97300faf7 LayerDemo: add missing CPP pragma 2022-05-23 13:51:24 -07:00
Jonathan Daugherty
2bc6db1973 LayerDemo: fix for older GHCs 2022-05-23 13:44:00 -07:00
Jonathan Daugherty
83a74ddacd Bump version, update changelog 2022-05-23 13:30:24 -07:00
Jonathan Daugherty
2fecf53fe7 Core: add relativeTo to support positioning elements relative to elements in lower layers 2022-05-23 13:18:33 -07:00
Jonathan Daugherty
4dff4c4c2d
Merge pull request #368 from ajithnn/patch-1 2022-05-23 07:45:21 -07:00
ajithnn
62773c53e5 Add Ullekha to the featured projects list 2022-05-23 16:27:41 +05:30
Jonathan Daugherty
c5ee667f72 Mouse demo: improve click message slightly 2022-05-12 08:14:27 -07:00
Jonathan Daugherty
e2a1f32fb0 Mouse demo: remove redundant clickable 2022-05-12 08:00:13 -07:00
Jonathan Daugherty
b5c8a5d055 README: add htyper 2022-04-17 09:52:39 -07:00
Jonathan Daugherty
07068b4d8d Bump version, update changelog 2022-03-31 22:03:07 -07:00
Jonathan Daugherty
ef56215004 Merge branch 'master' of github.com:jtdaugherty/brick 2022-03-31 22:01:53 -07:00
Jonathan Daugherty
96f06bdfb4 cropExtents: be robust to negative upper-left corner coordinates
This change fixes a bug that surfaces when an extent has been moved
partially "off screen." This can happen if an extent is translated so
that its left or top edges are outside of the rendered image. Prior to
this change, such extents would get cropped so that their upper-left
corners were always clamped to (0,0). This was wrong because it
fundamentally broke the extents' coorinate system. This change not only
preserves upper-left corner coordinates but also updates the width and
height calculations in extent-cropping to ensure that the new width and
height values still reflect the true "width" and "height" of an extent
even if some of that width or height is not visible in a rendered image.
This is essential for ensuring that mouse click detection works as
needed to translate screen-space coordinates of mouse clicks into local
(extent) coordinates for extent-matching purposes.
2022-03-31 21:58:45 -07:00
Jonathan Daugherty
d799c51f22
Merge pull request #363 from akazukin5151/patch-1
Projects: Add kpxhs
2022-03-17 17:04:49 -07:00
Tsui Yik Ching
9fe2908d43
Projects: Add kpxhs 2022-03-17 23:54:18 +00:00
Jonathan Daugherty
ec2f45f07e Bump version, update changelog 2022-03-07 08:32:07 -08:00
Jonathan Daugherty
315f19e060 Remove brick-markup-demo, Data.Text.Markup, and Brick.Markup 2022-03-07 08:29:36 -08:00