GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
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;
}