Commit Graph

240 Commits

Author SHA1 Message Date
Jonathan Daugherty
77d56768b8 Update todo 2015-06-07 19:08:23 -07:00
Jonathan Daugherty
49915d6460 Clean up edit and list draw routines 2015-06-07 19:05:35 -07:00
Jonathan Daugherty
4d715b2b43 Move editor and list padding into viewports to pad after uninhibited rendering has occurred, move box combinators into the internal module and re-export in the public one 2015-06-07 19:03:20 -07:00
Jonathan Daugherty
fa71a1a206 Remove traces from rendering logic 2015-06-07 18:53:32 -07:00
Jonathan Daugherty
286ce1d820 Unify cursor names and regular names and use editor and list names to name viewports 2015-06-07 18:52:04 -07:00
Jonathan Daugherty
9ac1528d67 Export context reader function to avoid having to import "ask" 2015-06-07 18:45:33 -07:00
Jonathan Daugherty
52c1fe032e Make the rogue demo buildable again 2015-06-07 18:41:59 -07:00
Jonathan Daugherty
8060abe882 Better names for context constraint fields 2015-06-07 18:41:43 -07:00
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