Jonathan Daugherty
df28848f3f
str: right-pad short lines in multi-line text strings
2015-07-03 15:49:13 -07:00
Jonathan Daugherty
f609feac2a
Combine cursor and visbility request offset functions into one
2015-07-03 14:12:50 -07:00
Jonathan Daugherty
c68c95d954
Improve performance of h/vCenter by using images instead of box combinators to control padding
2015-07-03 14:05:38 -07:00
Jonathan Daugherty
aec98739b6
Fix a bug where a viewport forgot to preserve visibility requests and cursor locations when its rendering turned up empty
2015-07-03 14:04:49 -07:00
Jonathan Daugherty
41a365daa1
Core: export cursor/visibility request translation functions
2015-07-03 14:04:18 -07:00
Jonathan Daugherty
b4f7a9ac66
More docstrings for Brick.Main
2015-07-01 14:00:41 -07:00
Jonathan Daugherty
97db20061a
Use function argument pattern-matching in resizeOrQuit
2015-07-01 13:09:05 -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
e1a1f90a98
Add TerminalLocation instance for CursorLocation
2015-07-01 00:05:27 -07:00
Jonathan Daugherty
3e422dd8df
Expose lenses for dealing with cursor location fields
2015-07-01 00:03:37 -07:00
Jonathan Daugherty
37052daf97
Use s instead of a as App state type variable
2015-07-01 00:00:03 -07:00
Jonathan Daugherty
c4c80492f4
Add documentation to Brick.Main
2015-06-30 23:40:52 -07:00
Jonathan Daugherty
618f6f4e4e
Stop exporting supplyVtyEvents since that should not need to be managed externally
2015-06-30 23:18:26 -07:00
Jonathan Daugherty
edb3abf509
Export ViewportScroll fields separately to please haddock
2015-06-30 23:16:55 -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
189d340f2c
Support strings with newlines
2015-06-29 16:46:40 -07:00
Jonathan Daugherty
c763aa1761
Replace directional fills with padding combinators, add padding demo program
2015-06-28 23:04:27 -07:00
Jonathan Daugherty
2e3bef7f8e
Add resizeOrQuit for easy simple event handling
2015-06-28 22:40:12 -07:00
Jonathan Daugherty
52bf9ec288
Clean up attribute management combinators, use attribute names instead of attributes
2015-06-28 22:08:54 -07:00
Jonathan Daugherty
e02192e38a
BorderStyle: derive Read, Show
2015-06-28 21:39:46 -07:00
Jonathan Daugherty
6d9e555d18
Border.Style: module docstring
2015-06-28 21:37:19 -07:00
Jonathan Daugherty
9ec2d7eb7b
Border: add function to build border style from a character
2015-06-28 21:28:55 -07:00
Jonathan Daugherty
ce54d48f42
Markup: export GetAttr type class
2015-06-28 21:25:21 -07:00
Jonathan Daugherty
fd2d379d68
Haddock for border style module
2015-06-28 21:25:07 -07:00
Jonathan Daugherty
94c0061299
Border: remove stale imports
2015-06-28 21:00:56 -07:00
Jonathan Daugherty
e2cfcb3b9f
Add beginnings of a benchmark suite
2015-06-28 21:00:46 -07:00
Jonathan Daugherty
361046b203
List: render list elements using default attribute names so that elements that use attribute names still fall back to the list defaults
2015-06-28 20:05:23 -07:00
Jonathan Daugherty
371d7768eb
Fix bugs in listRemove
2015-06-28 13:10:51 -07:00
Jonathan Daugherty
4f55085a1a
Make simpleMain interface as simple as possible
2015-06-28 12:48:39 -07:00
Jonathan Daugherty
4b679d1fad
simpleMain: only halt on input event; permit resizes
2015-06-28 12:08:00 -07:00
Jonathan Daugherty
700081f7cd
Change list/edit lens naming convention to use L suffix
...
- Lenses for edit and list widgets now have L suffixes, e.g.
editorNameL
- Non-lens equivalents for edit and list field accessors are now
exported for non-lens use cases
- suffixLenses is added as an alternative to makeLenses for building
these lenses
2015-06-28 11:57:38 -07:00
Jonathan Daugherty
0ba00780c0
Add TerminalLocation interface for Location-like things and use it
2015-06-28 11:35:28 -07:00
Jonathan Daugherty
a4ed1dda89
Make editor fields lenses and export them
2015-06-28 11:20:53 -07:00
Jonathan Daugherty
e79d145766
Export editCursorPos
2015-06-28 11:13:18 -07:00
Jonathan Daugherty
af4ff1dfe1
Rename editStr to editContents
2015-06-28 11:13:04 -07:00
Jonathan Daugherty
6e8ac5eb57
Remove location field export in favor of overloaded _1 and _2 lenses
2015-06-28 11:10:42 -07:00
Jonathan Daugherty
4e9de7c80c
Make editor interface consistent with list by accepting a content drawing function
2015-06-28 11:02:18 -07:00
Jonathan Daugherty
3bcc144114
Make list fields lenses and export them
2015-06-28 10:58:54 -07:00
Jonathan Daugherty
a599acb143
Remove stale comments
2015-06-27 18:32:50 -07:00
Jonathan Daugherty
3ebdcbee9a
Move infinite widget size checks to viewport renderer
2015-06-27 18:32:14 -07:00
Jonathan Daugherty
882fde1e08
h/vBox: reduce to emptyWidget on empty lists
2015-06-27 18:31:55 -07:00
Jonathan Daugherty
5eb61ff8ef
Add emptyWidget
2015-06-27 18:31:35 -07:00
Jonathan Daugherty
b840db52bb
Remove withContext
2015-06-27 17:07:25 -07:00
Jonathan Daugherty
d7a06f1765
Remove unused BoxRender field
2015-06-27 16:59:05 -07:00
Jonathan Daugherty
e1f01a279a
Center: use unused padding value, remove stale imports
2015-06-27 16:58:57 -07:00
Jonathan Daugherty
9aaf09e339
whitespace
2015-06-27 16:53:00 -07:00
Jonathan Daugherty
0217aa64c5
Make single-row/column fill primitives
2015-06-27 16:51:20 -07:00
Jonathan Daugherty
a995539af8
layout
2015-06-27 16:35:41 -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
a1574eeed5
Replace all fills and pads with one fill primitive
2015-06-27 15:41:38 -07:00