Commit Graph

376 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
5371e9e636 mv termbox.go backend.go 2019-03-07 02:12:05 -08:00
Caleb Bassi
a9772ca753 Change list widget scroll method names 2019-03-01 14:04:59 -08:00
Caleb Bassi
a8109c55df Fix list scrolling (Fix #228) 2019-03-01 13:30:21 -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
9735f6dda8 Add ColumnResizer field to table 2019-02-28 18:36:49 -08:00
Caleb Bassi
3006e4efe4 Change various widget field names 2019-02-28 18:35:40 -08:00
Caleb Bassi
fd5a830d7a Rename style parsing functions 2019-02-24 14:56:34 -08:00
Caleb Bassi
f8e30bacd3 Update readme 2019-02-24 14:55:58 -08:00
Caleb Bassi
67284dd15c Update out of date changelog 2019-02-24 14:55:48 -08:00
Caleb Bassi
63c2a0d709 Merge pull request #227 from anson0370/unicode_string_display
fix: #226
2019-02-24 10:10:52 -08:00
Anson Chan
b5e7ca951a refactor: use a []CellWithX instead a chan of CellWithX to make it more sense 2019-02-24 11:29:35 +08:00
Caleb Bassi
179acca35e Formatting 2019-02-22 12:44:48 -08:00
Anson Chan
bbf3bb6797 fix: #226, unicode strings display in paragraph, table and list 2019-02-22 13:08:41 +08:00
Caleb Bassi
bb0b559103 readme: add termdash to related works section 2019-02-13 20:50:05 -08:00
Caleb Bassi
a795c07466 readme: add tview to 'related projects' section 2019-02-07 03:21:27 -08:00
Caleb Bassi
0278568ed8 Update README 2019-02-04 20:16:27 -08:00
Caleb Bassi
5ece2b7178 Improve/add comments 2019-02-01 22:16:02 -08:00
Caleb Bassi
71648dedc1 Update README 2019-02-01 21:44:55 -08:00
Caleb Bassi
9bbf7adda8 Merge pull request #222 from ryanlewis/master
Table render improvements
2019-02-01 21:21:45 -08:00
Caleb Bassi
a77ad90f64 Make scrollAmount public and refactor previous scrolling methods 2019-02-01 21:07:23 -08:00
Caleb Bassi
013ef15209 Update List example with more scrolling options 2019-02-01 21:05:03 -08:00
Caleb Bassi
fab01d4358 Merge pull request #221 from NovA9232/master
Added more scrolling options to list widget.
2019-02-01 20:48:15 -08:00
Ryan Lewis
3eaafc7706 Tweaked background colour rendering on seperators when using row fill 2019-02-01 18:24:46 +00:00
Ryan Lewis
83319fb800 Fill whole rows with row style 2019-02-01 18:12:22 +00:00
Ryan Lewis
ddd058e89d Allow override of styles for individual rows 2019-02-01 17:24:33 +00:00
Ryan Lewis
d1c58b4ba9 Set the separator styles to that of the block 2019-02-01 17:22:43 +00:00
hmmmmmmmm
df176218f1
Added a floor function for scrolling.
A floor function was needed to calculate the number of rows to scroll by when scrolling by half a page.
2019-02-01 14:09:51 +00:00
hmmmmmmmm
8e972f7541
Added more list scrolling functionality.
You can now go up and down by half a page, and to top and bottom. I also added a function called 'scrollAmount' that allows you to scroll by the number of rows you would like to scroll by.
2019-02-01 14:07:54 +00:00
hmmmmmmmm
ed41775aa5
Merge pull request #2 from gizak/master
Update fork
2019-02-01 14:04:51 +00:00
Caleb Bassi
bbe260b1c3 Update readme 2019-01-31 22:04:50 -08:00
Caleb Bassi
31540a46ad Fix list PageUp scrolling 2019-01-31 19:15:11 -08:00
Caleb Bassi
436eb3a261 Add list page scrolling to list example 2019-01-31 19:14:37 -08:00
Caleb Bassi
c0336475e6 Merge pull request #218 from NovA9232/master
Added PageUp and PageDown functions to List.
2019-01-31 18:56:08 -08:00
hmmmmmmmm
91de22dab3
Ran go fmt to clean it up a bit. 2019-01-31 17:27:53 +00:00
hmmmmmmmm
ff41683113
Added page up and page down functions to list. 2019-01-31 17:06:46 +00:00
hmmmmmmmm
4d16db6e79
Merge pull request #1 from gizak/master
Merge pull request #217 from NovA9232/master
2019-01-31 17:01:17 +00:00
Caleb Bassi
cdc401406b
Merge pull request #217 from NovA9232/master
List scrolls automatically.
2019-01-31 05:53:10 -08:00
hmmmmmmmm
52d428bd5a
List scrolls automatically.
If the selected item is off the screen, the list will scroll up/down so that the item is visable.
2019-01-31 10:15:31 +00:00
Caleb Bassi
a01016fd0d Update readme 2019-01-28 01:13:33 -08:00
Caleb Bassi
2298d75b8d Update README.md 2019-01-27 22:45:40 -08:00
Caleb Bassi
79bb597a33 Add scrolling to List widget 2019-01-26 22:32:08 -08:00
Caleb Bassi
7ea3439d3a Fix paragraph 2019-01-26 05:20:41 -08:00
Caleb Bassi
067b2c5514 Refactor canvas into seperate repo 2019-01-26 05:19:45 -08:00
Caleb Bassi
ad36843630 Fix demo example 2019-01-26 02:49:34 -08:00
Caleb Bassi
5b78b896c9 Add WrapText option to Paragraph 2019-01-26 02:47:47 -08:00
Caleb Bassi
a5828eb2da Update readme 2019-01-25 04:14:49 -08:00
Caleb Bassi
96910aa8a3 Refactor events.go 2019-01-25 03:41:35 -08:00
Caleb Bassi
e0e85dab9d s/NewLineChart/NewPlot in examples 2019-01-25 03:05:49 -08:00