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

commitaeae298d8a3da0524a9aa7c446119ddf019ac384
parent1dfeac928f
authorLucas Galante <[email protected]>
date2026-07-03 23:11
feat: implement grid_snap_enabled getter for graph image snapping

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

diff --git a/src/widget/display/graph.rs b/src/widget/display/graph.rs
index 4f66f77..4d6962a 100644
--- a/src/widget/display/graph.rs
+++ b/src/widget/display/graph.rs
@@ -82,6 +82,9 @@ impl Graph {
     pub fn grid_origin(&self) -> (f32, f32) {
         (self.grid_origin_x, self.grid_origin_y)
     }
+    pub fn grid_snap_enabled(&self) -> bool {
+        self.grid_snap_enabled
+    }
     pub fn set_cell_color(&mut self, color: [f32; 3]) {
         self.cell_color = color;
     }