radiantkit_core/tools/mod.rs
1pub mod rectangle_tool;
2pub mod selection_tool;
3pub mod tool_manager;
4
5pub use rectangle_tool::*;
6pub use selection_tool::*;
7pub use tool_manager::*;
8
9pub trait RadiantTool<M>: Send + Sync {
10 fn on_mouse_down(&mut self, node_id: u64, node_count: u64, position: [f32; 2]) -> Option<M>;
11 fn on_mouse_move(&mut self, position: [f32; 2]) -> Option<M>;
12 fn on_mouse_up(&mut self, position: [f32; 2]) -> Option<M>;
13}