Commit Graph

33 Commits

Author SHA1 Message Date
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 782d7c3117
Container now supports dynamic layout changes. 2019-03-29 00:24:22 -04:00
Jakub Sobon 0f0f1d4bc8
Validate the tree only once at creation. 2019-03-28 22:50:29 -04:00
Jakub Sobon c755affe43
Ability to set IDs on containers. 2019-03-28 22:46:33 -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
Jakub Sobon e4726e4240
Changing all call sites to linestyle. 2019-02-24 01:51:50 -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 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 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 11ec278c1a
Fixing a comment. 2019-02-03 23:47:15 -05:00
Jakub Sobon 9a7e7b5af8
Support variable size container splits. 2019-01-14 01:11:55 -05:00
Jakub Sobon 964d676e31
Allowing container.Option to report an error. 2019-01-14 00:08:20 -05:00
Jakub Sobon 72df12349c
Exposing alignment directly instead wrapping in options.
And removing experimental code in favor of individual widget demos.
2018-05-07 21:48:22 +01:00
Jakub Sobon 5aed5ecf24
Changing the default alignment of widget canvases to center and middle.
Fixes #25.
2018-05-07 18:53:29 +01:00
Jakub Sobon f128e8508c
Container's border now supports a title.
Fixes #22.
Fixes #19.
2018-05-07 18:48:52 +01:00
Jakub Sobon 48fb6a5e29
Widgets can now specify the maximum size of their canvas.
Also moving align types out of container so they can be reused.
2018-05-07 12:40:40 +01:00
Jakub Sobon 2cd3343c81 Adding licences and a script to automate the same. 2018-04-14 23:06:57 +01:00
Jakub Sobon 3a058b407f
Renaming widget to widgetapi for consistency with terminalapi. 2018-04-09 03:33:24 +01:00
Jakub Sobon c896b5160f
Containers now track focus. 2018-04-06 04:56:36 +02:00
Jakub Sobon 28f6bfdb3e
Adding option to draw container borders in color.
And updating the faketerm diff function to also display differences in
options.
2018-04-05 19:57:46 +02:00
Jakub Sobon 1911e2190a
Making the container API easier to use. 2018-04-01 16:00:20 +02:00
Jakub Sobon 6b592b7d34
Adding the draw library.
And a function that draws boxes.
2018-03-30 01:41:22 +03:00
Jakub Sobon 59e1bd6472
Implementing cell, buffer, container options and fake terminal.
Push after a partial commit to prevent data loss.
This isn't complete and doesn't have complete test coverage.
2018-03-28 21:34:20 +03:00
Jakub Sobon bc42865277
Defining the APIs. 2018-03-27 19:01:35 +01:00