group BeginWindow calls

internals
David Pethes 8 years ago
parent 65398a751b
commit e5b1e7c522
  1. 20
      src/ImGui.NET/ImGui.cs

@ -511,6 +511,16 @@ namespace ImGuiNET
return ImGuiNative.igBegin2(windowTitle, ref opened, new Vector2(), backgroundAlpha, flags); return ImGuiNative.igBegin2(windowTitle, ref opened, new Vector2(), backgroundAlpha, flags);
} }
public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, WindowFlags flags)
{
return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, 1f, flags);
}
public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, float backgroundAlpha, WindowFlags flags)
{
return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, backgroundAlpha, flags);
}
public static bool BeginMenu(string label) public static bool BeginMenu(string label)
{ {
return ImGuiNative.igBeginMenu(label, true); return ImGuiNative.igBeginMenu(label, true);
@ -531,11 +541,6 @@ namespace ImGuiNET
ImGuiNative.igCloseCurrentPopup(); ImGuiNative.igCloseCurrentPopup();
} }
public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, WindowFlags flags)
{
return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, 1f, flags);
}
public static void EndMenuBar() public static void EndMenuBar()
{ {
ImGuiNative.igEndMenuBar(); ImGuiNative.igEndMenuBar();
@ -546,11 +551,6 @@ namespace ImGuiNET
ImGuiNative.igEndMenu(); ImGuiNative.igEndMenu();
} }
public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, float backgroundAlpha, WindowFlags flags)
{
return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, backgroundAlpha, flags);
}
public static void Separator() public static void Separator()
{ {
ImGuiNative.igSeparator(); ImGuiNative.igSeparator();

Loading…
Cancel
Save