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

commit1dfeac928f83a251e0025eab2cc01fdb52466066
parent0681a4b796
authorLucas Galante <[email protected]>
date2026-07-03 18:23
fix: implement rect bounds method on Graph Element to fix pixel clipping

 src/widget/display/graph.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/widget/display/graph.rs b/src/widget/display/graph.rs
index e3982fc..4f66f77 100644
--- a/src/widget/display/graph.rs
+++ b/src/widget/display/graph.rs
@@ -281,6 +281,7 @@ impl Element for Graph {
     }
 
     fn set_rect(&mut self, x: f32, y: f32, w: f32, h: f32) { self.x = x; self.y = y; self.w = w; self.h = h; }
+    fn rect(&self) -> (f32, f32, f32, f32) { (self.x, self.y, self.w, self.h) }
 
     fn all_quads(&self, ctx: &UiContext) -> Vec<(f32, f32, f32, f32, [f32; 4])> {
         let mut quads = Vec::new();