| 10 | { |
| 11 | public: |
| 12 | void show() |
| 13 | { |
| 14 | ImGui::Begin("simple node editor"); |
| 15 | |
| 16 | ImNodes::BeginNodeEditor(); |
| 17 | ImNodes::BeginNode(1); |
| 18 | |
| 19 | ImNodes::BeginNodeTitleBar(); |
| 20 | ImGui::TextUnformatted("simple node :)"); |
| 21 | ImNodes::EndNodeTitleBar(); |
| 22 | |
| 23 | ImNodes::BeginInputAttribute(2); |
| 24 | ImGui::Text("input"); |
| 25 | ImNodes::EndInputAttribute(); |
| 26 | |
| 27 | ImNodes::BeginOutputAttribute(3); |
| 28 | ImGui::Indent(40); |
| 29 | ImGui::Text("output"); |
| 30 | ImNodes::EndOutputAttribute(); |
| 31 | |
| 32 | ImNodes::EndNode(); |
| 33 | ImNodes::EndNodeEditor(); |
| 34 | |
| 35 | ImGui::End(); |
| 36 | } |
| 37 | }; |
| 38 | |
| 39 | static HelloWorldNodeEditor editor; |
no test coverage detected