MCPcopy Create free account
hub / github.com/Nelarius/imnodes / HelloWorldNodeEditor

Class HelloWorldNodeEditor

example/hello.cpp:9–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace
8{
9class HelloWorldNodeEditor
10{
11public:
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
39static HelloWorldNodeEditor editor;
40} // namespace

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected