Commit Graph

11 Commits

Author SHA1 Message Date
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 b98948326b
Comment from @chipmunkie. 2018-06-13 17:28:32 +01:00
Jakub Sobon 8a1bb34b05
Generalized text trimming logic.
So it can be reused in widgets.

Also adding some missing default values for options.
2018-05-27 19:28:49 +01:00
Jakub Sobon c2dab55b50
The draw package now supports full-width runes. 2018-05-20 22:50:57 +01:00
Jakub Sobon b98013ea45
Removing commit that doesn't belong to this history. 2018-05-14 22:32:07 +01:00
Jakub Sobon a824210882
Defining options for the text widget. 2018-05-14 22:07:04 +01:00
Jakub Sobon 88fc5b2782
Unifying the last API in the draw package.
Fixes #23.
2018-05-07 16:50:27 +01:00
Jakub Sobon 2473cd46d6
A function that draws a rectangle.
Also:
- implementing text trimming and wrapping.
- Switching log.Fatalf to panic() for more understandable test errors.
2018-05-06 19:28:52 +01:00
Jakub Sobon 2cd3343c81 Adding licences and a script to automate the same. 2018-04-14 23:06:57 +01:00
Jakub Sobon 5c32ca7f7f
Support for keyboard, mouse, widget options and alignment. 2018-04-09 03:17:40 +01:00
Jakub Sobon 0bbb28d13d
Adding a fake widget. 2018-04-07 14:24:55 +02:00