Closed exerro closed 7 years ago
Percentages should simply map to an AST structure, for example 100%
-> 100/100 * parent.width
-> parent.width
. It might be useful to have dynamically generated AST values. Not really sure why, but it can't hurt. As such, functions should be supported as this AST value (where in fact they return the AST value (or even another function, just for fun?)).
Implement percentages in dynamic values. They should be context sensitive, with a few inbuilt ones, and a good framework for adding in custom ones.
set_width "100%"
-set_width "parent.width * 1"
set_height "100%"
-set_height "parent.height * 1"