Jonathan Daugherty
7961606ef0
Merge pull request #357 from mlang/find
...
Use find instead of filter and listToMaybe
2022-01-28 12:07:09 -08:00
Mario Lang
25a07c61e6
Use find instead of filter and listToMaybe
2022-01-28 21:00:54 +01:00
Jonathan Daugherty
e20858fa9b
Bump version, update changelog
2022-01-21 10:22:19 -08:00
Jonathan Daugherty
d039c2265e
Merge branch 'master' of github.com:jtdaugherty/brick
2022-01-21 10:21:06 -08:00
Jonathan Daugherty
590af4dce0
cached: do not cache visibility requests
...
This fixes a bug where a cached image can cause a containing viewport to
honor a visibility request when the cached image is re-used. This is
almost certainly never desirable because we probably only want viewports
to scroll visible regions into view the first time they are drawn. This
change makes that so, since the Result returned by 'cached' contains the
visibility requests but its cached representation has them cleared.
2022-01-21 10:19:35 -08:00
Jonathan Daugherty
43d6c2b748
Changelog: typo
2022-01-18 17:57:06 -08:00
Jonathan Daugherty
0b21099b94
Bump version, update changelog
2022-01-18 14:44:16 -08:00
Jonathan Daugherty
a5cda3edb8
reportExtent: actually check requested visibility and update visibility requests accordingly
...
This fix just completes the work that I intended to do in the previous
commit.
API change note: some functions got an additional Ord constraint on the
resource name type, but that shouldn't present any issues for
applications since Ord was already required on that type for some of the
fundamental parts of the API.
2022-01-18 14:25:20 -08:00
Jonathan Daugherty
55857c76c1
Add support for requesting visible regions from EventM
...
This change adds a function, Brick.Main.makeVisible, which can be used
from EventM to request that a region (specified by its resource name) be
scrolled into view on the next rendering. This requires the region to be
named in the drawing using either reportExtent or clickable (which just
calls reportExtent). If the specified region is in a viewport, this will
result in the same behavior as if 'visible' was used to wrap the
specified region.
2022-01-18 12:51:54 -08:00
Jonathan Daugherty
7760d8defc
Bump version, update changelog
2022-01-18 10:36:27 -08:00
Jonathan Daugherty
e41ad936eb
viewport: fix non-scroll direction width/height in the presence of scroll bars
...
Prior to this change, the size of a viewport's contents would be off by
one row or column if a scroll bar was enabled because we weren't
accounting for the extra row or column taken up by the bar. This change
makes it so that viewports that scroll only in one direction apply a
width or height constraint to their contents to account for the reduced
rendering area when a scroll bar is enabled.
2022-01-18 10:32:56 -08:00
Jonathan Daugherty
839ff8bb0d
viewport: remove redundant call to cropToContext due to presence of h/vLimit
2022-01-18 10:28:52 -08:00
Jonathan Daugherty
a2f4345d60
Changelog: add missing entry about change to Context type
2022-01-18 10:21:19 -08:00
Jonathan Daugherty
3fc45a9218
samtay-tutorial: generalize Brick Haddock link
2021-11-21 09:33:40 -08:00
Jonathan Daugherty
f141562756
Brick: improve docs (w.r.t. #349 )
2021-11-20 15:45:33 -08:00
Jonathan Daugherty
026d6bc0ce
viewport: mention Brick.Main API (w.r.t. #349 )
2021-11-20 15:38:41 -08:00
Jonathan Daugherty
da8e859156
lookupViewport: more updates (w.r.t. #349 )
2021-11-20 15:07:58 -08:00
Jonathan Daugherty
d2471911bb
lookupViewport: add extra notes about behavior (relevant to #349 )
2021-11-20 15:04:44 -08:00
Jonathan Daugherty
e53a3115df
guide: add a bit more material about scroll bar API use
2021-11-19 20:56:01 -08:00
Jonathan Daugherty
04545cce8b
README: update copyright
2021-11-19 20:48:42 -08:00
Jonathan Daugherty
2090f2e414
Bump version, update changelog
2021-11-19 20:41:45 -08:00
Jonathan Daugherty
539823ee78
Add mouse click reporting of scroll bar elements
2021-11-19 20:32:47 -08:00
Jonathan Daugherty
663b014110
Add withH/VScrollBarHandles, scrollbarHandleAttr, and renderer fields
2021-11-19 20:00:04 -08:00
Jonathan Daugherty
db382fc1d1
Export ScrollbarRenderer type from Brick.Widgets.Core
2021-11-19 19:21:14 -08:00
Jonathan Daugherty
ba902902d6
Merge branch 'master' of github.com:jtdaugherty/brick
2021-11-19 19:12:58 -08:00
Jonathan Daugherty
60b21486e7
docstring updates
2021-11-19 19:12:52 -08:00
Jonathan Daugherty
b29d90da67
Merge pull request #346 from simonmichael/patch-1
2021-11-17 22:19:48 -08:00
Simon Michael
24ed2a73d4
add hledger-ui, hledger-iadd
2021-11-17 19:45:41 -10:00
Jonathan Daugherty
0ba1fc5584
Whitespace
2021-11-15 21:36:10 -08:00
Jonathan Daugherty
73fcdabe4a
Language nits
2021-11-13 17:35:52 -08:00
Jonathan Daugherty
8966495d47
ViewportScrollbarsDemo: fix keybindings
2021-11-12 19:19:33 -08:00
Jonathan Daugherty
b915768b55
Scroll bar demo program cleanup
2021-11-12 16:51:43 -08:00
Jonathan Daugherty
944e4cd0ca
Whitespace
2021-11-12 16:50:30 -08:00
Jonathan Daugherty
ef5d4b896c
README: mention scroll bars
2021-11-12 16:50:20 -08:00
Jonathan Daugherty
d473298e03
Core: reorder viewport documentation entries
2021-11-12 16:47:31 -08:00
Jonathan Daugherty
e29ad5523d
Core: scroll bar renderer documentation updates
2021-11-12 16:45:12 -08:00
Jonathan Daugherty
d58dea85bc
Core: export horizontal scroll bar renderer
2021-11-12 16:45:04 -08:00
Jonathan Daugherty
4dd85869eb
Make scroll bar functions explicitly handle zero-height/width content cases
2021-11-12 16:41:13 -08:00
Jonathan Daugherty
9ca9a39b89
Add support for vertical and horizontal scroll bars on viewports
2021-11-12 16:31:48 -08:00
Jonathan Daugherty
31e2342799
Merge pull request #344 from NiekPas/patch-2
2021-11-09 07:15:37 -08:00
Niek van de Pas
52dda48ff4
Update README.md
...
Feel free to disagree, but I think the table widget is cool enough to deserve a frontpage mention :)
2021-11-09 16:01:08 +01:00
Jonathan Daugherty
4112d1f86c
Merge pull request #343 from mlang/ghc-9.2.1
...
Bump base to support GHC 9.2.1
2021-11-08 08:10:33 -08:00
Jonathan Daugherty
3cf9bd702a
renderDynBorder: style cleanup
2021-11-08 08:10:12 -08:00
Jonathan Daugherty
443b314f0a
Clean up a few warnings
2021-11-08 08:09:59 -08:00
Jonathan Daugherty
76b148fee4
Remove questionable comment
2021-11-08 08:06:30 -08:00
Jonathan Daugherty
8993868c2c
Github CI: add GHC 9.2.1
2021-11-08 08:02:10 -08:00
Mario Lang
9c78ed50fb
Bump base to support GHC 9.2.1
2021-11-08 07:27:50 +01:00
Jonathan Daugherty
3f40f72969
Merge pull request #342 from NiekPas/patch-1
2021-11-04 06:08:45 -07:00
Niek van de Pas
1c3702197d
Update guide.rst
...
Fix heading level and title
2021-11-04 11:27:20 +01:00
Jonathan Daugherty
16d4d0a159
Merge pull request #340 from sjakobi/less-compat
...
Remove some compat code for base < 4.8 / GHC < 7.10
2021-10-25 15:43:25 -07:00