From 57adef1fd4e91736732d9b4313e5502f43ee3fc3 Mon Sep 17 00:00:00 2001 From: Tim Boudreau Date: Mon, 3 Jun 2024 15:54:37 -0400 Subject: [PATCH] Expose `View::default_compute_layout` While this method *is* implementable in custom component by copy-paste programming, it would be preferable for custom components to be able to keep up with any changes in the default implementation by calling it directly instead. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4f66f132..fc46d702 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -195,6 +195,6 @@ pub use peniko; pub use peniko::kurbo; pub use screen_layout::ScreenLayout; pub use taffy; -pub use view::{recursively_layout_view, AnyView, IntoView, View}; +pub use view::{default_compute_layout, recursively_layout_view, AnyView, IntoView, View}; pub use window::{close_window, new_window}; pub use window_id::{Urgency, WindowIdExt};