gantz_egui 0.2.0

UI traits and widgets that make up the GUI for gantz, an environment for creative systems.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{NodeCtx, NodeUi, Registry};

impl NodeUi for gantz_std::ops::Add {
    fn name(&self, _: &dyn Registry) -> &str {
        "+"
    }

    fn ui(
        &mut self,
        _ctx: NodeCtx,
        uictx: egui_graph::NodeCtx,
    ) -> egui::InnerResponse<egui::Response> {
        uictx.framed(|ui| ui.add(egui::Label::new("+").selectable(false)))
    }
}