Mario Lang
e634306c21
Edit: Bind M-< and M-> to gotoBOF and gotoEOF
2021-07-20 01:11:43 +02:00
Jonathan Daugherty
b4423d2a5a
Merge pull request #329 from mlang/typo
...
Fix a weird typo cluster
2021-07-19 14:58:17 -07:00
Mario Lang
61b106db85
Fix a weird typo cluster
2021-07-19 23:56:36 +02:00
Jonathan Daugherty
bed6304cdd
Core: use infix fmap
2021-06-29 08:14:58 -07:00
Jonathan Daugherty
7d0a87f102
Whitespace
2021-06-29 08:14:50 -07:00
Jonathan Daugherty
46944a367b
Merge pull request #327 from mlang/simple
...
Simplify (avoid redundant uses of &, mostly)
2021-06-29 08:13:40 -07:00
Mario Lang
d1f2b955b4
Simplify
...
foo <- bar; return $ f foo = fmap f bar
(& foo) = foo
2021-06-29 11:46:08 +02:00
Jonathan Daugherty
8ca73ffa1c
Fix spelling
2021-06-24 17:44:47 -07:00
Jonathan Daugherty
810a8ab633
Merge pull request #326 from mlang/putCursor
...
Implement support for the new PositionOnly constructor
2021-06-24 17:44:20 -07:00
Mario Lang
919d44f942
Use putCursor in renderCheckbox and renderRadio
2021-06-25 02:40:53 +02:00
Mario Lang
ca8b1bae67
Implement support for the new PositionOnly constructor
...
The API putCursor will request positioning but keep cursor invisible.
2021-06-25 02:22:52 +02:00
Jonathan Daugherty
d95cc7f839
Bump version, update changelog
2021-06-13 08:32:16 -07:00
Jonathan Daugherty
b3b5c3a227
Merge branch 'master' of github.com:jtdaugherty/brick
2021-06-13 08:31:04 -07:00
Jonathan Daugherty
4a0cedfb22
Viewport: add _vpContentSize field, vpContentSize lens
...
This change adds a new field to the Viewport type to track the size of
the viewport content. Previously, the size of the content was not
tracked anywhere, which made it possible to compute how much of the
content was visible in relation to the total content available.
2021-06-13 08:29:29 -07:00
Jonathan Daugherty
2af969ab2c
Merge pull request #322 from gerdreiss/master
...
Projects: add brewsage
2021-04-30 07:09:27 -07:00
Gerd Reiss
5e8a6c0226
Projects: add brewsage
2021-04-30 12:11:40 +02:00
Jonathan Daugherty
7d5fb8cd9d
Bump version, update changelog
2021-04-29 12:34:02 -07:00
Jonathan Daugherty
0382c09753
FileBrowserDemo: fix qualified import
2021-04-29 12:14:08 -07:00
Jonathan Daugherty
33350f4592
PaddingDemo: fix qualified imports
2021-04-29 12:12:58 -07:00
Jonathan Daugherty
1c0abbfe97
Import cleanup
2021-04-29 12:12:15 -07:00
Jonathan Daugherty
53f7122552
Add cropping demo program
2021-04-29 12:11:29 -07:00
Jonathan Daugherty
0af90c9453
Core: add crop{Left,Right,Bottom,Top}To functions
2021-04-29 12:11:21 -07:00
Jonathan Daugherty
9be30aa723
Merge pull request #321 from DamienCassou/hyahtzee2
...
Projects: add hyahtzee2
2021-04-22 12:20:11 -07:00
Damien Cassou
7ff70acca5
Projects: add hyahtzee2
2021-04-22 21:09:42 +02:00
Jonathan Daugherty
d1603b0e78
Merge pull request #320 from 2mol/patch-1
...
Projects: add pboy
2021-04-20 07:49:47 -07:00
Juri
842cfff7f6
Projects: add pboy
2021-04-20 16:34:41 +02:00
Jonathan Daugherty
b875c48557
Projects: add maze
2021-04-09 08:57:13 -07:00
Jonathan Daugherty
a1405874f4
Forms: rewrite editShowableField in terms of editShowableFieldWithValidate
2021-04-08 17:59:34 -07:00
Jonathan Daugherty
34373d4000
Forms: resolve warnings
2021-04-08 17:59:25 -07:00
Jonathan Daugherty
9242f70b1b
Bump version, update changelog
2021-04-08 17:54:17 -07:00
Jonathan Daugherty
d4d83ea4da
Forms: another haddock clarification
2021-04-08 17:52:29 -07:00
Jonathan Daugherty
2a36fce1d3
Forms: clarify need to store Form value in User Guide and haddock
2021-04-08 17:51:06 -07:00
Jonathan Daugherty
a7ad04039f
Brick.Forms: documentation typo
2021-04-08 17:47:49 -07:00
Jonathan Daugherty
c2aa3e77d9
editShowableFieldWithValidate: make validate function return Bool
2021-04-08 17:33:56 -07:00
Jonathan Daugherty
775016325e
Merge pull request #317 from benjaminselfridge/feature/edit-showable-validate
...
Adds editShowableFieldWithValidate
2021-04-07 22:48:13 -07:00
Ben Selfridge
f40edb025a
Adds editShowableFieldWithValidate
...
This function for Brick.Forms allows the user to specify an additional function
to validate input in addition to `readMaybe`, as a slightly more flexible
version of `editShowableField`.
2021-04-07 22:06:18 -07:00
Jonathan Daugherty
531d868323
Fix base bound for future changes
2021-04-05 09:24:53 -07:00
Jonathan Daugherty
b2c9a4cbb5
Merge pull request #315 from benjaminselfridge/patch-1
...
Includes link to fifteen
2021-03-30 07:36:01 -07:00
Ben Selfridge
a43c63b704
Includes link to fifteen
...
This adds a link to my `fifteen` game in the list of brick examples.
2021-03-30 07:24:52 -07:00
Jonathan Daugherty
cd47fcc2d5
Merge pull request #311 from hapytex/improvement/record-patterns
...
use record patterns instead of multiple underscores
2021-03-15 14:21:34 -07:00
Jonathan Daugherty
e517605453
Merge pull request #312 from hapytex/improvement/fmap-over-pure-app
...
Use <$> over pure ... <*>
2021-03-15 14:19:09 -07:00
Willem Van Onsem
ddeb2fcb13
use fmap for Main tests
2021-03-15 21:19:22 +01:00
Willem Van Onsem
369d5975f1
use fmap for BorderMap
2021-03-15 21:17:11 +01:00
Willem Van Onsem
d6d1245005
use record patterns for MouseDemo
2021-03-15 21:13:48 +01:00
Jonathan Daugherty
824ea662a9
Merge pull request #309 from mimi1vx/patch-2
...
Fix condition for base version.
2021-03-11 08:09:59 -08:00
Ondřej Súkup
e7072c5cab
Fix condition for base version.
...
Unfortunately `base <=4.15` is false for `base-4.15.0.0` so fix condition to `base < 4.16`
2021-03-11 12:17:07 +01:00
Jonathan Daugherty
1c5c7713fa
Bump version, update changelog
2021-02-06 20:12:54 -08:00
Jonathan Daugherty
4e983975b3
Merge pull request #307 from phsmenon/fix-cache-clickables
...
Include clickable elements in the rendering cache.
2021-02-05 19:53:19 -08:00
Hari Menon
1212b58857
Add a code comment about the updates to the rendering cache
2021-02-05 22:43:53 -05:00
Hari Menon
92c69b6776
Include clickable elements in the rendering cache.
...
Mouse events for `Widget`s were being received inconsistently if/when
they are cached. This appears to be because `Widget`s when rendered
update the list of clickable elements that `brick` should track for
mouse activity. However, when a `Widget` is cached, this information is
lost.
This commit updates the rendering cache to also include the clickable
elements exposed by a `Widget` and update `brick`'s tracking list
appropriately when utilizing the cache.
2021-02-05 18:18:07 -05:00