Commit Graph

20 Commits

Author SHA1 Message Date
Jonathan Daugherty
201dfdc4a3 Rename Brick.Core to Brick.Types 2015-07-07 17:00:42 -07:00
Jonathan Daugherty
32c82d0754 Update rogue demo to translate the player rather than using spaces to center it to avoid layer opacity issues 2015-07-03 16:02:35 -07:00
Jonathan Daugherty
afc0c95be8 Flip the arguments to application event handlers to make event pattern-matching more natural 2015-07-01 13:05:28 -07:00
Jonathan Daugherty
9601098d46 Add appStartEvent to support getting scroll requests on the first rendering of the app state before other events have arrived 2015-06-30 19:15:29 -07:00
Jonathan Daugherty
d49423cc4f Get rid of box rendering priority in favor of using size hints to control rendering order 2015-06-27 16:34:45 -07:00
Jonathan Daugherty
6ffc25af75 Rename appMakeEvent 2015-06-25 23:42:52 -07:00
Jonathan Daugherty
552e765ec2 Make main customizable by specifying the event channel 2015-06-25 23:22:22 -07:00
Jonathan Daugherty
d696dfb58b Add suspend-and-resume capability to perform IO without losing application or terminal state 2015-06-25 12:58:32 -07:00
Jonathan Daugherty
258f04ebe3 Make event handlers return whether to continue or shut down, return final application state 2015-06-24 21:24:58 -07:00
Jonathan Daugherty
0c978dc150 Improve module hierarchy further 2015-06-24 20:58:34 -07:00
Jonathan Daugherty
089f9ae41f Improve module hierarchy 2015-06-24 20:54:32 -07:00
Jonathan Daugherty
a73b7f70f4 Rename Render to Widget and make it a record type whose field is the rendering function 2015-06-24 20:34:35 -07:00
Jonathan Daugherty
074aff9b3a txt now takes a Text value, str takes a String 2015-06-21 13:47:47 -07:00
Jonathan Daugherty
7308855d93 Add support for scrollable viewports by making scroll requests in event handlers rather than using render-time visibility requests 2015-06-20 15:02:54 -07:00
Jonathan Daugherty
614724f555 centering: make centering combinators support filled or unfilled padding so centered drawings are layer-friendly 2015-06-07 20:38:07 -07:00
Jonathan Daugherty
4e7da0792f Make border style part of the rendering context and expose functions to get or change it; update border functions so they implicitly use the style in the context 2015-06-07 19:40:49 -07:00
Jonathan Daugherty
4267a809f2 Rename translate to translateBy to avoid import clashes with Vty.translate 2015-06-07 19:27:20 -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
86332b6c6b Rogue: updates 2015-05-10 17:17:47 -07:00
Jonathan Daugherty
2b76a75d16 Add ported version of vty rogue demo 2015-05-10 16:57:53 -07:00