Re:Conrod – A Rust GUI Library
by darkpore on Saturday August 30, 2014 @01:42AM
(#8245776)
Is there any plan to abstract away the need to handle drawing the widgets yourself, and provide layout functionality?
[ Parent
| on HN ]
Re:Conrod – A Rust GUI Library
by mitchmindtree on Saturday August 30, 2014 @02:02AM
(#8245814)
- 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)!