node-based graph editor
git clone https://git.lucas.co/cce-graph.git
Implement ui_context for Application to support default draggable window
src/main.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main.rs b/src/main.rs
index 5c1bcaf..b19ffe4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -61,6 +61,10 @@ impl GraphApp {
impl Application for GraphApp {
type Message = AppMessage;
+ fn ui_context(&self) -> Option<&cce_ui::context::UiContext> {
+ Some(&self.ui_context)
+ }
+
fn new(_qh: &QueueHandle<EngineState<Self>>, _sender: calloop::channel::Sender<Self::Message>) -> Self {
let mut graph = Graph::new();