git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit9ec0fe6d8e88422088744f99ef76362138abd82f
parent8720592dec
authorLucas Galante <[email protected]>
date2026-07-23 11:14
chore: export get_text_buffer_laid_out through engine

Hand-aggregate clients that place boxed text (pc.text_boxed) need the
matching measurement to clamp scrolling — re-export the backend's shaping
helper so an app can measure with exactly the wrap/metrics the renderer
will use (first consumer: cce-email's detail-pane body scroll).

Co-Authored-By: Claude Fable 5 <[email protected]>

 src/engine.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/engine.rs b/src/engine.rs
index f56fdd5..7b207e6 100644
--- a/src/engine.rs
+++ b/src/engine.rs
@@ -10,4 +10,5 @@ pub use crate::backend::window_runner::{
     extra_quad_vertices, push_extra_quad_vertices, extra_quad_vertices_clipped,
     push_extra_quad_vertices_clipped, circle_vertices, circle_border_vertices,
     arc_background_vertices, push_arc_background_vertices, push_plate_solid_border_vertices,
+    get_text_buffer_laid_out,
 };