cotis-modules-debug 0.1.0-alpha

Record, replay, and isolate Cotis layout and UI declaration pipelines
Documentation
//! 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`](cotis::cotis_app::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`](crate::serialize_targets::LeafedInterfaceDeclaration).
//!
//! # Usage pattern
//!
//! ```rust,ignore
//! 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
//! }
//! ```

pub mod debug_element_configuring;