5 Commits

Author SHA1 Message Date
Joonas Javanainen
6e246b0c7c
Fix most Clippy warnings 2020-02-15 12:58:25 +02:00
Joonas Javanainen
46d099f40f
Require explicit ending/popping of almost all stack tokens
This is probably going to be controversial...
Calling end/pop in the Drop implementation causes way too many problems,
and interacts very badly with panics.

There are closure-based simpler implementations of almost everything
except parameter stacks that are still convenient to use. However, if we
end up switching to &mut Ui in most functions (very much possible in the
future!), closures will complicate matters so push/pop and begin/end
pairs are still relevant.
2019-07-13 17:19:32 +03:00
Joonas Javanainen
3f7cc4d242
Update documentation and add some tests 2019-07-12 22:57:11 +03:00
Joonas Javanainen
f1c041b3f3
Update layout API 2019-07-12 20:59:41 +03:00
Joonas Javanainen
597f51410b
Add some layout functions, improve docs 2019-06-30 23:48:01 +03:00