protected void TabItemView(string label, ImGuiExNative.Callback action, ref bool p_open, ImGuiTabItemFlags flags) { if (ImGui.BeginTabItem(label, ref p_open, flags)) { action(); ImGui.EndTabItem(); } ; }
protected void TabItemView(string label, ImGuiExNative.Callback action) { if (ImGui.BeginTabItem(label)) { action(); ImGui.EndTabItem(); } ; }
/// <summary> /// Run application /// </summary> public bool Run() { m_Action = new ImGuiExNative.Callback(OnGui); if (IsRunning == false) { try { ImGuiExNative.AddRenderCallback(m_Action); isRuntime = true; return(true); } catch (Exception) { return(false); } } return(false); }