Flix01 / imgui

Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
https://github.com/Flix01/imgui/wiki/ImGui-Addons-Branch-Home
MIT License
395 stars 34 forks source link

NodeGraphEditor Link Callback functions - unclear on how to implement #12

Closed chadmiral closed 7 years ago

chadmiral commented 7 years ago

Hi!

I'm using your Node Graph Editor in a project, and am trying to implement a link callback function. It seems that the enum LinkState {LS_ADDED,LS_DELETED}; is implemented as a protected member of the NodeGraphEditor class, which makes it inaccessible in the global scope. Is this intended? I can easily create the callback if I make that enum public, although that is perhaps not the best way...

Not sure the proper way to create the callback function - do you have an example?

Flix01 commented 7 years ago

Yes, setting NodeState and LinkState public seems to be a sensible choice.

Currently the only example is the demo inside main.cpp. That's why we need user feedback.

Thanks for your support!