Commit Graph

1776 Commits

Author SHA1 Message Date
Jonathan Daugherty
f4e63ea1d0 README: add Wordle 2022-02-03 08:47:22 -08:00
Jonathan Daugherty
ab9ddacd27 withAttr: docs update 2022-02-02 21:52:40 -08:00
Jonathan Daugherty
586df3c83b overrideAttr: update docs 2022-02-02 21:50:40 -08:00
Jonathan Daugherty
afc0c1da0f updateAttrMap: docs update 2022-02-02 21:48:18 -08:00
Jonathan Daugherty
e06bd1d7bb modifyDefAttr: update docs 2022-02-02 21:47:06 -08:00
Jonathan Daugherty
b60479253a AttrMap: docs tweak 2022-02-02 21:46:10 -08:00
Jonathan Daugherty
a450b27212 guide: update attribute map section from Kevin Q's feedback 2022-02-02 21:43:22 -08:00
Jonathan Daugherty
7e6bd61f8c Core: fix syntax error 2022-01-31 16:41:46 -08:00
Jonathan Daugherty
4ad3ffb5a2 Core.hyperlink: use attrL rather than duplicating context attribute lookup 2022-01-31 16:29:56 -08:00
Jonathan Daugherty
c1bce6a434 Core: improve attribute API docs somewhat 2022-01-31 16:09:26 -08:00
Jonathan Daugherty
338deace08 Improve docs for scroll bar handle enabling functions 2022-01-31 09:44:59 -08:00
Jonathan Daugherty
e402db29d4 suffixLenses: fix makeLenses link 2022-01-31 09:28:04 -08:00
Jonathan Daugherty
929d7b296a overrideAttr: imrove docs 2022-01-31 09:27:10 -08:00
Jonathan Daugherty
3fd091b5ac Bump version, update changelog 2022-01-31 09:17:13 -08:00
Jonathan Daugherty
ea36444495 FileBrowser API change: export getters for all FileBrowser fields, stop exporting Lens for entry filter
This change removes fileBrowserEntryFilterL from the public API (which
was unsafe because it could not update the appropriate internal
state when used) and replaces it with fileBrowserEntryFilterG,
a getter for the same field. Users of the lens should be using
setFileBrowserEntryFilter.
2022-01-30 20:48:51 -08:00
Jonathan Daugherty
563dc75686 File browser docs: clarification 2022-01-30 20:17:35 -08:00
Jonathan Daugherty
dd4639e770 Typo 2022-01-30 16:59:52 -08:00
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