From 7b6b229ad9d85d1145322b2edd5992a4629c2106 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 17 Apr 2021 20:01:40 -0700 Subject: Change imnodes to imgui-node-editor (more mature, more features) --- .../imgui_node_editor_internal.inl | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 3rdparty/imgui-node-editor/imgui_node_editor_internal.inl (limited to '3rdparty/imgui-node-editor/imgui_node_editor_internal.inl') diff --git a/3rdparty/imgui-node-editor/imgui_node_editor_internal.inl b/3rdparty/imgui-node-editor/imgui_node_editor_internal.inl new file mode 100644 index 0000000..0d16231 --- /dev/null +++ b/3rdparty/imgui-node-editor/imgui_node_editor_internal.inl @@ -0,0 +1,55 @@ +//------------------------------------------------------------------------------ +// LICENSE +// This software is dual-licensed to the public domain and under the following +// license: you are granted a perpetual, irrevocable license to copy, modify, +// publish, and distribute this file as you see fit. +// +// CREDITS +// Written by Michal Cichon +//------------------------------------------------------------------------------ +# ifndef __IMGUI_NODE_EDITOR_INTERNAL_INL__ +# define __IMGUI_NODE_EDITOR_INTERNAL_INL__ +# pragma once + + +//------------------------------------------------------------------------------ +# include "imgui_node_editor_internal.h" + + +//------------------------------------------------------------------------------ +namespace ax { +namespace NodeEditor { +namespace Detail { + + +//------------------------------------------------------------------------------ +//inline ImRect ToRect(const ax::rectf& rect) +//{ +// return ImRect( +// to_imvec(rect.top_left()), +// to_imvec(rect.bottom_right()) +// ); +//} +// +//inline ImRect ToRect(const ax::rect& rect) +//{ +// return ImRect( +// to_imvec(rect.top_left()), +// to_imvec(rect.bottom_right()) +// ); +//} + +inline ImRect ImGui_GetItemRect() +{ + return ImRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax()); +} + + +//------------------------------------------------------------------------------ +} // namespace Detail +} // namespace Editor +} // namespace ax + + +//------------------------------------------------------------------------------ +# endif // __IMGUI_NODE_EDITOR_INTERNAL_INL__ -- cgit v1.2.3-70-g09d2