Commit Graph

79 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
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
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
d17754b35f Rename with to withLens 2015-05-25 22:05:32 -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
44e211d18f Export list moveBy and use in demo 2015-05-24 12:11:27 -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
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
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
Jonathan Daugherty
54f26d9ba5 Remove "ed" suffix from bordering and centering functions 2015-05-18 21:48:02 -07:00
Jonathan Daugherty
c9c4b611fb Make demo UI a little more interesting 2015-05-18 21:18:51 -07:00
Jonathan Daugherty
9d3367e46a Just use a single style keybinding in the demo 2015-05-18 21:09:59 -07:00
Jonathan Daugherty
cb61befb03 Syntax nit 2015-05-18 21:07:55 -07:00
Jonathan Daugherty
f277551e88 Improve border function argument ordering 2015-05-18 21:03:48 -07:00
Jonathan Daugherty
188883dfdb Shorten border style names 2015-05-18 21:01:59 -07:00
Jonathan Daugherty
0357bd22ce Demo: show different border styles 2015-05-18 20:59:58 -07:00
Jonathan Daugherty
900bc295c8 Make bordered widgets skinnable 2015-05-18 19:10:28 -07:00
Jonathan Daugherty
2809fd4a19 Rename Name to CursorName since that is what it is 2015-05-18 18:53:34 -07:00
Jonathan Daugherty
1df6668712 Get rid of unused list name 2015-05-18 18:51:06 -07:00
Jonathan Daugherty
4b0e192a90 Code cleanup and rename WithState to With 2015-05-18 18:44:28 -07:00
Jonathan Daugherty
af99a58e23 Make resizing happen during rendering by using state lenses provided in Prim constructors 2015-05-18 18:39:10 -07:00
Jonathan Daugherty
2bade50c6c Make WithState transition state types 2015-05-18 14:14:13 -07:00
Jonathan Daugherty
8ee03756d0 Experiment with approaches for improving state management during rendering 2015-05-18 14:10:00 -07:00
Jonathan Daugherty
42fb2ae811 Main: cleanup 2015-05-18 08:38:30 -07:00
Jonathan Daugherty
bcaf01dd55 Fix broken references to Center module 2015-05-17 19:37:25 -07:00
Jonathan Daugherty
2086c43c97 Split library up into modules 2015-05-17 18:41:38 -07:00
Jonathan Daugherty
7836dd94d2 Resolve warning 2015-05-17 10:01:23 -07:00
Jonathan Daugherty
cd453949e1 Demo list is initially empty 2015-05-17 09:57:13 -07:00
Jonathan Daugherty
ddfe28610a Append to list in demo 2015-05-17 09:55:37 -07:00
Jonathan Daugherty
4422a8a99f Implement list element insertion and add demo 2015-05-17 09:53:00 -07:00
Jonathan Daugherty
6e7d92c994 Better construct/draw naming convention 2015-05-17 09:46:17 -07:00
Jonathan Daugherty
3445daade9 Rename draw function 2015-05-17 09:44:18 -07:00
Jonathan Daugherty
dd5148200b Add type class for things that handle events 2015-05-17 09:41:17 -07:00
Jonathan Daugherty
207180e9ad Rename Fixed to Txt 2015-05-17 09:29:53 -07:00
Jonathan Daugherty
da09e80d39 Add VScroll and List implementations 2015-05-17 09:22:08 -07:00
Jonathan Daugherty
4ffa92b017 Rename appHandleResize 2015-05-17 08:17:06 -07:00
Jonathan Daugherty
c9fcd640d3 whitespace 2015-05-16 19:42:25 -07:00
Jonathan Daugherty
f3a3228f4c Make a type class for things that take resize info 2015-05-16 19:41:33 -07:00
Jonathan Daugherty
2588e48db3 Stale import 2015-05-16 19:17:53 -07:00
Jonathan Daugherty
a720b498c8 Remove unused translation from test program 2015-05-16 19:17:25 -07:00
Jonathan Daugherty
d73f892dae whitespace 2015-05-16 19:16:06 -07:00
Jonathan Daugherty
a7a956471d Unused name 2015-05-16 18:03:23 -07:00
Jonathan Daugherty
a763097066 Implement experimental hscroll wrapper and refactor editor to use it 2015-05-16 17:49:41 -07:00
Jonathan Daugherty
e4cfba7753 Update edit widget 2015-05-15 23:06:55 -07:00
Jonathan Daugherty
5b3597b79d More flexible box layout to support centering and padding 2015-05-15 23:01:33 -07:00
Jonathan Daugherty
15baa4252d Prim hacking 2015-05-15 22:03:53 -07:00