Skip to main content

Module declaration_debugger

Module declaration_debugger 

Source
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_configuring for stage-1 capture.