Andreea Sobon
a645df600a
Update CHANGELOG.md and rephrease test description.
2021-01-05 09:52:19 -05:00
Andreea Sobon
f8470e7dfe
Fix formatting issues.
2021-01-04 12:34:23 -05:00
Andreea Sobon
22ae449020
Support setting of different colors for container's border and title.
2021-01-04 12:20:40 -05:00
Jakub Sobon
7ac5acfd6b
Container option that sets the container as focused.
2020-12-27 03:08:57 -05:00
Jakub Sobon
42652429b4
Correcting text in container/options.go
2020-12-27 01:17:55 -05:00
Jakub Sobon
5c68b72bbe
Test coverage for closed focus groups.
2020-12-27 01:00:42 -05:00
Jakub Sobon
69bc767fb5
Containers can now belong to multiple focus groups.
2020-12-07 02:14:11 -05:00
Jakub Sobon
bfcc2972fa
Test verifying that KeyFocusSkip has no effect on focus groups.
2020-12-07 00:55:29 -05:00
Jakub Sobon
c1f1c03e95
Basic test cases for closed focus groups.
2020-12-02 01:06:23 -05:00
Jakub Sobon
916354c855
Fixing a typo in function comments.
2020-11-29 23:28:43 -05:00
Jakub Sobon
fe482ab6e6
Container options for focus group support.
2020-11-29 23:21:36 -05:00
Jakub Sobon
2f36dce2ed
Containers can request to be skipped when focus is moved using keyboard keys.
2020-11-29 22:38:43 -05:00
Jakub Sobon
f07f4e8534
Improving focus tests.
...
The test cases can now use trees with any number of containers and have
a scalable way of referring to individual containers in the tree.
2020-11-28 14:57:53 -05:00
Jakub Sobon
2c1b1a4bfe
Allow widgets to request keyboard events exclusively.
2020-11-28 00:32:55 -05:00
Jakub Sobon
dc2118baa7
Container test cases exercising delivery of event metadata.
2020-11-27 23:27:31 -05:00
Jakub Sobon
dd6acb15e1
Give metadata about events to widgets.
2020-11-24 22:03:58 -05:00
Jakub Sobon
bd1a2ef7a3
Improving comments.
2020-11-24 19:48:35 -05:00
Jakub Sobon
ff431b782d
e2e test cases for keyboard based focus changes.
2020-11-24 15:19:14 -05:00
Jakub Sobon
e4edc8f15a
Ability to focus the previous container using keyboard.
2020-11-24 14:24:08 -05:00
Jakub Sobon
1fd4b044cf
Clarifying the meaning of DFS.
2020-11-23 22:44:28 -05:00
Jakub Sobon
e8565e739d
Correcting documentation for the new options.
2020-11-23 22:42:29 -05:00
Jakub Sobon
0771a92dc2
Ability to move focus to the next container using a key.
2020-11-23 22:33:24 -05:00
Jakub Sobon
034007e85f
Renaming `tbx` to `t` to fix compilation errors.
2020-11-14 02:29:09 -05:00
Jakub Sobon
3cbd993521
Making tcell the default in all demos and examples.
2020-11-14 01:09:07 -05:00
Jakub Sobon
06eb7623bd
Modifying imports 'internal' -> 'private'.
2020-04-10 15:26:45 -04:00
Jakub Sobon
f01746199f
Support fixed size splits in the grid API.
2019-05-24 00:23:39 -04:00
nijynot
957330c387
Tweak comments and use Default const in validation
2019-05-11 15:27:39 +02:00
nijynot
c80b59da13
Fix pointer and SplitFixed test
...
* Add DefaultSplitFixed const
* Add comments to SplitFixed
2019-05-10 13:21:55 +02:00
nijynot
b6986c9b4c
Add test and refactor `validateOptions()`
2019-05-09 11:44:13 +02:00
nijynot
70a5255d5e
Refactor `SplitFixed()` to use SplitCells
...
* Add basic tests to `SplitFixed()`
* Panic when both `SplitFixed()` and `SplitPercent()` are used
* Refactor `validateOptions()` into two smaller functions
2019-05-08 21:58:48 +02:00
nijynot
4aa60fe8e7
Refactor fixed container feature to `SplitFixed()` which takes one arg
2019-05-06 21:51:53 +02:00
nijynot
7c5232b662
Add support for fixed heights in SplitHorizontal()
2019-05-05 22:11:51 +02:00
Jakub Sobon
d31b767d5d
Allow options on intermediate containers in the grid.
...
Fixes #181 .
2019-04-07 16:58:18 -04:00
Jakub Sobon
10d4a55348
Provide metadata to widgets when drawing.
2019-04-03 23:13:18 -04:00
Jakub Sobon
f3ff03c1ed
Discover widgets dynamically.
...
Events now discover widgets when they are sent. Previously widgets
subscribed directly to events which is incompatible with dynamic
layouts. Only widgets currently placed into containers should be getting
events.
2019-03-30 00:30:13 -04:00
Jakub Sobon
782d7c3117
Container now supports dynamic layout changes.
2019-03-29 00:24:22 -04:00
Jakub Sobon
85bcf9d8d9
Function that finds container with a specific ID.
2019-03-28 23:04:34 -04:00
Jakub Sobon
0f0f1d4bc8
Validate the tree only once at creation.
2019-03-28 22:50:29 -04:00
Jakub Sobon
461a242338
Margin to be set while Drawing only.
...
Background: #165
2019-03-28 22:48:10 -04:00
Jakub Sobon
c755affe43
Ability to set IDs on containers.
2019-03-28 22:46:33 -04:00
Jakub Sobon
96d136019e
Calculating container areas upon Draw only.
2019-03-28 22:30:09 -04:00
Jakub Sobon
ab013dd021
Better documentation for Grid.
...
Noting restriction of max height/width and what happens if all widths /
heights are less than 100%.
2019-03-11 22:02:49 -04:00
Jakub Sobon
4203d0e794
Correctly track container focus when the terminal size increases.
...
Fixes #169 .
2019-03-11 01:04:03 -04:00
Jakub Sobon
f3e414fee1
Adding licences.
2019-03-11 00:12:33 -04:00
Jakub Sobon
a170c5f99d
Fixing lint issues.
2019-03-10 23:54:42 -04:00
Jakub Sobon
0469007a4c
Adding licences.
2019-03-10 23:00:02 -04:00
Jakub Sobon
2cb4cc9797
Adding a grid builder.
2019-03-10 22:59:44 -04:00
Jakub Sobon
74769824a4
Support margin around containers.
2019-03-03 02:38:35 -05:00
Jakub Sobon
9a021b52b1
Containers now support padding of their content.
2019-03-03 01:16:36 -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