abey79 / vsvg

Fast and portable tools for plotter users
http://whisk.rs
MIT License
107 stars 12 forks source link

`Option` and `Vec` support for sketch params #65

Open abey79 opened 9 months ago

abey79 commented 9 months ago

One way to go about this is to have Widget:ui take label: Option<&str>. When passed None, the impl should skip rendering the label and just rendering the actual control. This way, macro code for vectors and option can manually handle the label part (for option, the label should actually be a checkbox, for vector it would be in index).