igBegin2() private method

private igBegin2 ( string name, bool &p_opened, Vector2 size_on_first_use, float bg_alpha, WindowFlags flags ) : bool
name string
p_opened bool
size_on_first_use Vector2
bg_alpha float
flags WindowFlags
return bool
コード例 #1
0
ファイル: ImGui.cs プロジェクト: timgroote/BadgerEdit
        public static unsafe bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, float backgroundAlpha, WindowFlags flags)
        {
            byte openedLocal = opened ? (byte)1 : (byte)0;
            bool ret         = ImGuiNative.igBegin2(windowTitle, &openedLocal, startingSize, backgroundAlpha, flags);

            opened = openedLocal != 0;
            return(ret);
        }
コード例 #2
0
        public static unsafe bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, WindowFlags flags)
        {
            byte openedLocal = opened ? (byte)1 : (byte)0;
            bool ret         = ImGuiNative.igBegin2(windowTitle, &openedLocal, startingSize.ToNumericsVector2(), 1f, flags);

            opened = openedLocal != 0;
            return(ret);
        }
コード例 #3
0
 public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, float backgroundAlpha, WindowFlags flags)
 {
     return(ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, backgroundAlpha, flags));
 }
コード例 #4
0
 public static bool Begin(string windowTitle, ref bool opened, ImVec2 startingSize, float backgroundAlpha,
                          ImGuiWindowFlags flags = ImGuiWindowFlags.Default)
 {
     return(ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, backgroundAlpha, flags));
 }
コード例 #5
0
ファイル: ImGui.cs プロジェクト: se5a/ImGuiCS
 public static bool Begin(string windowTitle, ref bool opened, ImVec2 startingSize, ImGuiWindowFlags flags = ImGuiWindowFlags.Default)
 => ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, 1f, flags);
コード例 #6
0
ファイル: ImGui.cs プロジェクト: se5a/ImGuiCS
 public static bool Begin(string windowTitle, ref bool opened, float backgroundAlpha, ImGuiWindowFlags flags = ImGuiWindowFlags.Default)
 => ImGuiNative.igBegin2(windowTitle, ref opened, new ImVec2(), backgroundAlpha, flags);