Commit Graph

30 Commits

Author SHA1 Message Date
Caleb Bassi
eaec27d1df Add sync.Locker interface to Drawable interface
Many widget implementations will want to update asynchronously, so now termui performs locks a widget when drawing. Users should call `Lock()` on their widgets when performing an asynchronous update.
2019-03-07 02:14:11 -08:00
Caleb Bassi
1ec9fa2896 Fix widget padding 2019-02-28 18:52:20 -08:00
Caleb Bassi
9513fa11a1 Add widget padding 2019-02-28 18:50:14 -08:00
Caleb Bassi
20d8f73c36 Update Block comments 2019-01-24 04:02:25 -08:00
Caleb Bassi
958a28575d The Great Rewrite 2019-01-23 20:16:13 -08:00
Caleb Bassi
3629cdceea Minor refactor 2018-09-06 14:48:09 -07:00
Zack Guo
d921faeffe Update copyright 2017-01-14 01:07:43 -05:00
Zack Guo
cfe1ea3b97 Update copyright info 2016-11-10 23:25:53 -05:00
gizak
dada0699b6 Update doc string 2016-01-26 20:45:18 -05:00
gizak
ad8b8b432b Merge branch 'v2' 2015-10-22 11:17:20 -04:00
gizak
4d6b0249c0 Merge branch 'alytvynov-master' 2015-10-20 21:59:18 -04:00
gizak
c30bf1612a Move Tab to extra 2015-10-20 21:45:28 -04:00
gizak
86950762b0 Add Float prop 2015-10-13 01:00:15 -04:00
gizak
e0dec9dbb9 Move widget back to root 2015-10-07 14:25:59 -04:00
gizak
196d9aae34 Theme map lookup 2015-09-21 03:11:58 -04:00
Andrew Lytvynov
4a31d90070 Fill background for borderless one-line paragraph
Previously when we had a Par with Width > len(Text) and custom BgColor
on the underlying Block, it would skip the first row. This means that
it's impossible to have a colored line wider than text width.
Block should offset indexes by 1 only if border is present.
2015-06-01 21:53:57 -07:00
gizak
0042236f53 Minor chanages 2015-05-09 19:29:22 -04:00
gizak
62105f6883 WIP MarkdownTxBuilder 2015-05-02 23:35:06 -04:00
gizak
b65224cdc9 Smash Border into Block 2015-04-26 00:13:49 -04:00
gizak
7aed750f64 WIP use Buffer instead of []Point in Bufferer
Merge https://github.com/Matt3o12/termui.git colored-list
Merge https://github.com/funkygao/termui.git master
Add subdir widget
Use image Rectangle represent buffer area
2015-04-21 09:56:10 -04:00
gizak
b0a574c387 Fix https://github.com/gizak/termui/issues/18
Add Block.chopOverflow and apply it to all widgets
2015-04-09 16:40:49 -04:00
Michael Alexander
27b93c6457 Fix #23 by implementing Block.InnerBounds() and associated test. 2015-04-09 10:19:43 +08:00
gizak
d30d5901e7 Fix https://github.com/gizak/termui/issues/14 2015-03-28 12:58:23 -04:00
gizak
b8d37842ee Add docs 2015-03-24 17:16:43 -04:00
gizak
b689689056 Add build tags for examples 2015-03-20 16:21:50 -04:00
gizak
8ed1b40acf Add grid layout 2015-03-15 15:56:38 -04:00
gizak
bc325c986d Add theme support
Fix some minor bugs
Add default and helloworld themes
Update README
2015-03-11 16:15:59 -04:00
gizak
affd0d9c07 Re-construct Point 2015-03-03 13:28:09 -05:00
gizak
821cc1f44b Add Padding to Block 2015-02-04 16:57:24 -05:00
gizak
cc6b38d600 Add gauge and list component 2015-02-03 20:56:49 -05:00