Commit Graph

332 Commits

Author SHA1 Message Date
Jonathan Daugherty
999d45a632 During rendering, make cropping a caller responsibility to permit last-minute cropping and better support for layers; update rogue demo; add centerAbout; export Context and its lenses; use better box layout for demo UI 2015-06-07 18:37:36 -07:00
Jonathan Daugherty
e05f92f3f3 list: clean up drawing routine 2015-06-07 17:44:51 -07:00
Jonathan Daugherty
4e3899819d whitespace 2015-06-07 17:41:02 -07:00
Jonathan Daugherty
19d714ab4f Stop exporting h/vRelease now that they are implementation details of viewports 2015-06-07 17:40:06 -07:00
Jonathan Daugherty
11919834e2 visible: ignore visibility requests for empty images 2015-06-07 17:38:50 -07:00
Jonathan Daugherty
aa18aba79d Get rid of now-unused type variable on Render type 2015-06-07 17:36:50 -07:00
Jonathan Daugherty
5aac657d2f Get rid of scrolling wrappers, replace with viewport abstraction and primitives 2015-06-07 17:33:34 -07:00
Jonathan Daugherty
1a6cf1a660 whitespace 2015-06-03 19:39:05 -07:00
Jonathan Daugherty
6628dd9c9e Rename some core functions to have slightly better names and argument orderings 2015-06-03 19:34:51 -07:00
Jonathan Daugherty
f19764e65a Use lenses in rendering internals to access result fields 2015-05-29 21:03:00 -07:00
Jonathan Daugherty
b409e7f4a8 Rename Prim module hierarchy 2015-05-29 18:25:46 -07:00
Jonathan Daugherty
bbd178ef20 Rename Prim to Render 2015-05-29 18:22:12 -07:00
Jonathan Daugherty
d351e396e6 Rename Render to Result 2015-05-29 18:18:37 -07:00
Jonathan Daugherty
a210801262 Better name for "apply" 2015-05-26 16:20:24 -07:00
Jonathan Daugherty
3620506406 Merge pull request #1 from hallettj/feature/more-list-functions
Add more list transformations
2015-05-26 16:16:52 -07:00
Jesse Hallett
a9469eac5c Implements moveTo 2015-05-26 03:00:56 -07:00
Jesse Hallett
d8538b10db Implements listReplace - replaces list content while preserving selected index 2015-05-26 03:00:56 -07:00
Jesse Hallett
76a3379d2f Implements listSelectedElement 2015-05-26 03:00:22 -07:00
Jesse Hallett
a7a8ffd940 Implements listRemove 2015-05-26 03:00:22 -07:00
Jonathan Daugherty
0008d6d1e0 Remove some unused language extension pragmas 2015-05-25 22:31:39 -07:00
Jonathan Daugherty
e29a0b1bb6 Update todo 2015-05-25 22:10:11 -07:00
Jonathan Daugherty
d17754b35f Rename with to withLens 2015-05-25 22:05:32 -07:00
Jonathan Daugherty
9ef4fa3a95 Fix list and scrolling wrappers to properly postpone state accesses 2015-05-25 20:43:30 -07:00
Jonathan Daugherty
91dd580781 Make rendering use a reader monad for the rendering context 2015-05-25 20:17:52 -07:00
Jonathan Daugherty
382b4e0b8f Get rid of Primitive type in favor of primitive computations; move prim-building into a rendering monad 2015-05-25 19:57:57 -07:00
Jonathan Daugherty
653e828de1 Move all rendering internals to internal module, export selectively 2015-05-25 19:40:47 -07:00
Jonathan Daugherty
3bf0bafdc3 Back out change to make Prim a monad since it is not yet an effectful rendering monad, but rather a prim construction environment 2015-05-25 18:36:26 -07:00
Jonathan Daugherty
da9ada013f Cleanup and Prim monad usage fixes 2015-05-25 18:31:55 -07:00
Jonathan Daugherty
c5ccbfcdfe Make prim-building happen in a state monad over underlying data model 2015-05-25 18:07:20 -07:00
Jonathan Daugherty
526fc05f22 Rename SetSize to SaveSize 2015-05-24 12:14:43 -07:00
Jonathan Daugherty
0173aa55db Add gross hack to work around rendering staleness in With interpretation 2015-05-24 12:11:51 -07:00
Jonathan Daugherty
8ff7a3d390 Make Render fields lazy 2015-05-24 12:11:36 -07:00
Jonathan Daugherty
44e211d18f Export list moveBy and use in demo 2015-05-24 12:11:27 -07:00
Jonathan Daugherty
6c1a61abe2 v/hBox: long lines 2015-05-24 00:11:00 -07:00
Jonathan Daugherty
fdcdf21b09 Update todo 2015-05-22 13:20:52 -07:00
Jonathan Daugherty
debe0e4653 Make list/edit draw functions build outer prims and take a lens for list/edit access 2015-05-19 20:43:15 -07:00
Jonathan Daugherty
6130d81e3e Add hBorderWithLabel 2015-05-19 20:34:54 -07:00
Jonathan Daugherty
1489557418 whitespace 2015-05-19 20:26:48 -07:00
Jonathan Daugherty
6a2bbf6bbf Improve organization of scrolling types and re-use common logic 2015-05-19 19:56:22 -07:00
Jonathan Daugherty
aaab0edfa1 Update todo 2015-05-19 19:34:28 -07:00
Jonathan Daugherty
6eb4f7ca28 hScroll: add support for scrolling to windows rather than points 2015-05-19 19:34:18 -07:00
Jonathan Daugherty
6221a2e229 whitespace/layout 2015-05-19 19:31:24 -07:00
Jonathan Daugherty
0977f4bd2c Update todo 2015-05-19 19:29:49 -07:00
Jonathan Daugherty
76a7fc83c8 Add support for scrolling to windows rather than points and add support for variably-sized list prims 2015-05-19 19:28:22 -07:00
Jonathan Daugherty
0c7914175a Merge simple demo 2015-05-19 10:25:12 -07:00
Jonathan Daugherty
2af0357d46 Add ultra-minimal demo program 2015-05-19 10:23:58 -07:00
Jonathan Daugherty
5232a53b97 Add gitignore 2015-05-18 22:17:36 -07:00
Jonathan Daugherty
94b891ee6b Add ctrl-arrow note 2015-05-18 21:58:56 -07:00
Jonathan Daugherty
1f91ed32ff Improve translation prim, add translation demo 2015-05-18 21:58:16 -07:00
Jonathan Daugherty
5a75e0a7b5 Update UI 2015-05-18 21:52:26 -07:00