DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
HU1: document toolbar test widget bounds helper
macadminHU84d84f9b1eac
diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rsindex 953c8feb0..e03c89133 100644--- a/crates/ui-egui/src/toolbar.rs+++ b/crates/ui-egui/src/toolbar.rs@@ -664,6 +664,7 @@ mod tests {8.0 + super::BTN * cols + 4.0 * (cols - 1.0) + 8.0}+ /// Returns the bounds of the labeled test widget, failing if the label cannot be found.fn rect(h: &egui_kittest::Harness<'static, test_window::Window>, label: &str) -> egui::Rect {h.get_by_label(label).rect()}