Commit Graph

565 Commits

Author SHA1 Message Date
Jonathan Daugherty
b391bedb0c List: update haddock for handled events 2015-08-19 22:28:11 -07:00
Jonathan Daugherty
fb8dc330bc Types: implement handleEventLensed 2015-08-19 22:26:25 -07:00
Jonathan Daugherty
b05f9fd414 Markup: remove stale import 2015-08-19 22:15:16 -07:00
Jonathan Daugherty
1b76bf95ba EventM: haddock improvement 2015-08-19 22:00:18 -07:00
Jonathan Daugherty
78d54f8b46 Next: better docs 2015-08-19 21:56:49 -07:00
Jonathan Daugherty
508bd3260b Minor haddock improvement 2015-08-19 21:55:25 -07:00
Jonathan Daugherty
9c5af1625f Viewport: haddock 2015-08-19 21:51:59 -07:00
Jonathan Daugherty
95778e4395 lookupViewport: haddock 2015-08-19 21:50:49 -07:00
Jonathan Daugherty
9d686a516a List: add support for page up and page down key events using viewport state retrieval 2015-08-19 21:48:12 -07:00
Jonathan Daugherty
b39a1bb168 Types: export the Viewport type and lenses 2015-08-19 21:47:52 -07:00
Jonathan Daugherty
ede945f48d EventM: run as a reader transformer over the map of recent viewport state 2015-08-19 21:47:38 -07:00
Jonathan Daugherty
1671c3732c List: pass the item height to the constructor instead of the draw function to make it available to event handlers 2015-08-19 21:46:55 -07:00
Jonathan Daugherty
ee64f2faf4 Merge branch 'master' into feature/eventm-change 2015-08-19 20:04:09 -07:00
Jonathan Daugherty
37e11e74b8 Whitespace 2015-08-19 20:03:59 -07:00
Jonathan Daugherty
f829b4370c Monoid import fixes needed for older GHCs 2015-08-19 20:03:42 -07:00
Jonathan Daugherty
0f84d19cdf API: handleEvent now runs in EventM 2015-08-19 19:52:34 -07:00
Jonathan Daugherty
736a81de97 API: move EventM and Next to Brick.Types 2015-08-19 19:48:55 -07:00
Jonathan Daugherty
35aa2ad8a4 Monster patch: move most data types to Brick.Types, remove IsString
instance for Widget

- This makes the module layout more predictable since Brick.Widgets.Core
  now (mostly) only contains widgets and widget transformations
- Utility functions closely related to types are now in Brick.Types
- Brick.Types.Internal contains types used internal by the renderer,
  some are re-exported by Brick.Types
2015-08-19 19:40:06 -07:00
Jonathan Daugherty
32b2740409 Edit: use multilineStr to render editors (fixes #8) 2015-08-19 09:21:35 -07:00
Jonathan Daugherty
682e749636 TODO: add notes 2015-08-18 13:17:21 -07:00
Jonathan Daugherty
c4759f0ba2 List: haddock typo 2015-08-18 13:12:39 -07:00
Jonathan Daugherty
693abbb345 List: refactor rendering routine to only render the items in view (fixes #7)
- Changes renderList to expect an item height and all rendered items
  must match this height
- Uses vector slicing to efficiently get the sub-list of items to be
  rendered
- Renders 2 * H items at time instead of all N, where H is the height of
  the list's viewport
2015-08-18 13:06:36 -07:00
Jonathan Daugherty
74aa344564 ListDemo: missing uses of Vector API 2015-08-18 09:39:58 -07:00
Jonathan Daugherty
5b5db6feaf List: missing uses of Vector API 2015-08-18 09:10:15 -07:00
Jonathan Daugherty
14d2147c85 List: use Vector instead of [] to manage elements to improve performance 2015-08-17 23:33:47 -07:00
Jonathan Daugherty
d7bf9e1c97 List: instead of passing the draw function to the constructor, we pass it at rendering time 2015-08-17 22:19:08 -07:00
Jonathan Daugherty
d33181ed0b Make str and txt single-line only and add slower multiline variants 2015-08-17 21:13:00 -07:00
Jonathan Daugherty
473a5e11b5 README: use absolute URLs for links to support linking from Hackage 2015-08-12 09:19:04 -07:00
Jonathan Daugherty
521d662786 Edit: fix module docstring now that editors are multi-line 2015-08-11 18:24:07 -07:00
Jonathan Daugherty
69503f6641 Depend on vty 5.3.1 2015-08-11 16:00:45 -07:00
Jonathan Daugherty
47ef979221 Increase vty bound to 5.3 and remove comment about now-fixed bug 2015-08-11 15:32:12 -07:00
Jonathan Daugherty
e0830de4c1 README: mention FAQ first 2015-08-10 13:06:48 -07:00
Jonathan Daugherty
14f06fea71 README: mention FAQ 2015-08-10 13:06:14 -07:00
Jonathan Daugherty
0b5e52dcb4 Start FAQ 2015-08-10 13:05:39 -07:00
Jonathan Daugherty
5ae68f6781 README: also include terminal emulator in bug reports 2015-08-10 10:00:27 -07:00
Jonathan Daugherty
1c79445592 Include user guide and readme in package 2015-08-09 12:57:05 -07:00
Jonathan Daugherty
5256ec57c4 cabal: add vty-ui deprecation notice 2015-08-08 21:19:38 -07:00
Jonathan Daugherty
8ec4f4c1dc Update README 2015-08-08 21:18:30 -07:00
Jonathan Daugherty
5f6df6dbc4 Remove stale demo 2015-08-06 19:26:22 -07:00
Jonathan Daugherty
90066b51ca More cabal file improvements 2015-08-06 19:25:11 -07:00
Jonathan Daugherty
31a689c62e Seed changelog 2015-08-06 19:19:02 -07:00
Jonathan Daugherty
e4e62a1d04 Update package description and add hello, world demo 2015-08-06 19:10:47 -07:00
Jonathan Daugherty
35dae04541 README tweaks 2015-08-06 18:51:52 -07:00
Jonathan Daugherty
70fe5a01e2 Rename the manual to the user guide 2015-08-06 18:45:49 -07:00
Jonathan Daugherty
1b9c0ea669 Update TODO 2015-08-06 18:43:02 -07:00
Jonathan Daugherty
0ce5ca74dd Merge branch 'master' of github.com:jtdaugherty/brick 2015-07-30 10:52:26 -07:00
Jonathan Daugherty
e631ed7a63 Update string handling to account for Vty change where empty strings have zero height 2015-07-30 10:52:20 -07:00
Jonathan Daugherty
8ef8e0f633 Update TODO 2015-07-24 16:04:21 -07:00
Jonathan Daugherty
8ff74b6c3c docs: mention cropToContext 2015-07-24 16:02:18 -07:00
Jonathan Daugherty
af678a9b10 Document and export cropToContext 2015-07-24 16:02:09 -07:00