示例#1
0
 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();
     }
     ;
 }
示例#2
0
 protected void TabItemView(string label, ImGuiExNative.Callback action)
 {
     if (ImGui.BeginTabItem(label))
     {
         action();
         ImGui.EndTabItem();
     }
     ;
 }
示例#3
0
        /// <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);
        }