mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add menu functions to ImRaii (#2227)
This commit is contained in:
parent
98c5fbd666
commit
26aaf974bc
1 changed files with 9 additions and 0 deletions
|
|
@ -65,6 +65,15 @@ public static partial class ImRaii
|
|||
public static IEndObject Combo(string label, string previewValue, ImGuiComboFlags flags)
|
||||
=> new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue, flags));
|
||||
|
||||
public static IEndObject Menu(string label)
|
||||
=> new EndConditionally(ImGui.EndMenu, ImGui.BeginMenu(label));
|
||||
|
||||
public static IEndObject MenuBar()
|
||||
=> new EndConditionally(ImGui.EndMenuBar, ImGui.BeginMenuBar());
|
||||
|
||||
public static IEndObject MainMenuBar()
|
||||
=> new EndConditionally(ImGui.EndMainMenuBar, ImGui.BeginMainMenuBar());
|
||||
|
||||
public static IEndObject Group()
|
||||
{
|
||||
ImGui.BeginGroup();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue