Jakub Sobon
5dd1aff803
Advancing to Go1.10.
...
- switching to math.Round and deleting out clone.
- switching all bytes.Buffer instances to strings.Builder.
2019-04-18 22:55:05 -04:00
Jakub Sobon
10d4a55348
Provide metadata to widgets when drawing.
2019-04-03 23:13:18 -04:00
Jakub Sobon
68fb7606d9
Prevent external mutation of data passed into widgets.
...
Fixes #174 .
2019-03-20 23:20:16 -04:00
Jakub Sobon
62c56c5e58
Adding the ValueCapacity method to SparkLine.
2019-03-03 18:13:17 -05:00
Jakub Sobon
b020770733
Moving widgetapi out of internal.
...
This will allow external users to develop their own widgets.
2019-03-02 22:00:07 -05:00
Jakub Sobon
98394c921a
Moving draw back to internal.
...
Adding test for linestyle.
2019-02-24 01:54:37 -05:00
Jakub Sobon
e4726e4240
Changing all call sites to linestyle.
2019-02-24 01:51:50 -05:00
Jakub Sobon
b74f46509b
Moving runewidth, segdisp and testdraw to internal.
2019-02-24 01:27:17 -05:00
Jakub Sobon
bf61ca1479
Moving draw out of internal.
2019-02-24 01:20:03 -05:00
Jakub Sobon
97ec73069f
Moving align, cell and terminalapi back from internal.
2019-02-24 01:13:26 -05:00
Jakub Sobon
8df9e3307c
Moving faketerm to internal.
2019-02-24 01:09:23 -05:00
Jakub Sobon
bf38f10d25
Moving terminal back to public.
2019-02-24 01:04:57 -05:00
Jakub Sobon
5ac468c10a
Moving terminal, terminalapi and widgetapi to internal subdirectory.
...
And adding a README under internal.
2019-02-23 21:19:16 -05:00
Jakub Sobon
55efbe07fe
Moving numbers to internal subdirectory.
2019-02-23 21:16:13 -05:00
Jakub Sobon
6c03991fb9
Moving draw and event to internal.
2019-02-23 21:10:51 -05:00
Jakub Sobon
7ee222ac58
Moving private libraries into internal subdirectory.
2019-02-23 21:09:38 -05:00
Jakub Sobon
0490734d1e
Running gofmt.
2019-02-23 00:42:47 -05:00
Jakub Sobon
22946f2f65
Allowing widgets to select the scope for mouse events too.
2019-02-23 00:41:58 -05:00
Jakub Sobon
495eaa4ee5
Merge pull request #146 from mum4k/widgets-global-keys
...
Allow widgets to subscribe to global keyboard events
2019-02-22 00:48:42 -05:00
Jakub Sobon
0df7387862
Widgets can now register for global keyboard events.
2019-02-22 00:33:55 -05:00
Jakub Sobon
793925feb8
Migrating all calls to the runewidth wrapper.
2019-02-21 23:24:42 -05:00
Jakub Sobon
231db41590
Constructor of SparkLine now returns an error.
2019-02-15 00:05:45 -05:00
Jakub Sobon
8968704de2
Fixing racy behavior between Options and Draw.
...
This applies to widgets whose Options depend on user data.
Documenting this in the docs and on API and protecting against this
condition in the affected widgets.
2019-01-26 23:58:38 -05:00
Jakub Sobon
964d676e31
Allowing container.Option to report an error.
2019-01-14 00:08:20 -05:00
Jakub Sobon
025e8a7efb
Adding numbers.Round for backward compatibility.
...
And disabling tests of unimplemented components.
2019-01-07 20:53:42 -05:00
Jakub Sobon
e5db7eff21
Responding to comments from @chipmunkie.
2018-07-02 22:28:17 -04:00
Jakub Sobon
dd57b316b0
Fix incorrect color in the SparkLine demo.
2018-06-22 20:48:50 -04:00
Jakub Sobon
4da5097d66
Fixing the SparkLine demo.
2018-06-22 16:33:05 -04:00
Jakub Sobon
f4d2edc3f9
Adding licenses.
2018-06-22 16:30:50 -04:00
Jakub Sobon
9d02f43c6f
Self-review.
2018-06-22 16:27:23 -04:00
Jakub Sobon
a9813c4c76
Implementation of the SparkLine widget.
...
And completing the demo.
2018-06-22 09:40:41 -04:00
Jakub Sobon
2ce014d35a
Fix for compatibility with Go 1.8.
...
Local implementation of math.Round.
2018-06-21 22:19:17 -04:00
Jakub Sobon
d430638eb0
More test cases for the SparkLine widget.
2018-06-21 22:12:13 -04:00
Jakub Sobon
630151301f
Code that determines which sparks runes to use.
2018-06-21 22:11:57 -04:00
Jakub Sobon
27f6d76dc6
Skeleton of the SparkLine widget, tests and demo.
2018-06-21 17:04:19 -04:00