mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
67 lines
3.3 KiB
C#
67 lines
3.3 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
public partial class ImGui
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// return true when activated.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L822">imgui.h:822</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9332">imgui_widgets.cpp:9332</see>
|
|
/// <br/>
|
|
/// <c>bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Menus
|
|
/// - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar.
|
|
/// - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it.
|
|
/// - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it.
|
|
/// - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 MenuItem_0(byte* label, byte* shortcut, Bool8 selected, Bool8 enabled);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// return true when activated + toggle (*p_selected) if p_selected != NULL
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L823">imgui.h:823</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9337">imgui_widgets.cpp:9337</see>
|
|
/// <br/>
|
|
/// <c>bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Menus
|
|
/// - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar.
|
|
/// - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it.
|
|
/// - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it.
|
|
/// - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 MenuItem_1(
|
|
byte* label,
|
|
byte* shortcut,
|
|
Bool8* p_selected,
|
|
Bool8 enabled
|
|
);
|
|
}
|
|
}
|
|
}
|