6 ms·
Is there any plan to abstract away the need to handle drawing the widgets yourself, and provide layout functionality?
by darkpore 12y ago
Is there any plan to abstract away the need to handle drawing the widgets yourself, and provide layout functionality?
- mitchmindtree 12y ago- re layout: yes, at the moment there's a widget_matrix which can help with positioning, but I'm also keen to add slightly more friendly functionality into the ui_context: i.e. uic.add_widget(direction, padding, |position|{ /* widget::draw... */ }) or something along these lines. I'm totally open to other suggestions and inspiration too :) - re draw: this function is actually the only instance of code required for the widget (hence the "immediate-mode"ness), so I'm not too sure what else could be abstracted away (other than some args)!