This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "graph_types.h" | |
| static ImVec2 AnchorRightMid(const ImVec2& node_min, const ImVec2& node_size) | |
| { | |
| return ImVec2(node_min.x + node_size.x, node_min.y + node_size.y * 0.5f); | |
| } | |
| static ImVec2 AnchorLeftMid(const ImVec2& node_min, const ImVec2& node_size) | |
| { | |
| return ImVec2(node_min.x, node_min.y + node_size.y * 0.5f); |