Expand description
Debug wrappers that record UI declaration operations while building a live interface.
Use the types in debug_element_configuring at the start of your UiFn::draw_in
callback to mirror the normal cotis::element_configuring API while appending every
open, configure, close, and leaf-config operation into a
LeafedInterfaceDeclaration.
§Usage pattern
ⓘ
fn draw_in(&mut self, layout: &mut ConfiguredParentElement<'_, _, ConfigType>) {
let mut root = DebugInitialConfiguredParentElement::new(layout, &mut self.decl);
let mut element = root.new_element();
element.set_config(my_config);
// Drop or close_element records Close automatically
}Modules§
- debug_
element_ configuring - Recording wrappers around
cotis::element_configuringfor stage-1 capture.