brutal/Brutal.ImGui/Generated/Enums/ImGuiPopupFlags.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

310 lines
20 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1359">imgui.h:1359</see>
/// <br/><c>enum ImGuiPopupFlags_</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
[Flags]
public enum ImGuiPopupFlags : int
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1361">imgui.h:1361</see>
/// <br/><c>ImGuiPopupFlags_None = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
None = 0,
/// <summary>
/// <para>
/// For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as
/// ImGuiMouseButton_Left)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1362">imgui.h:1362</see>
/// <br/><c>ImGuiPopupFlags_MouseButtonLeft = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
MouseButtonLeft = 0,
/// <summary>
/// <para>
/// For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as
/// ImGuiMouseButton_Right)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1363">imgui.h:1363</see>
/// <br/><c>ImGuiPopupFlags_MouseButtonRight = 1</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
MouseButtonRight = 1,
/// <summary>
/// <para>
/// For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as
/// ImGuiMouseButton_Middle)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1364">imgui.h:1364</see>
/// <br/><c>ImGuiPopupFlags_MouseButtonMiddle = 2</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
MouseButtonMiddle = 2,
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1365">imgui.h:1365</see>
/// <br/><c>ImGuiPopupFlags_MouseButtonMask_ = 0x1F</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
MouseButtonMask = 0x1F,
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1366">imgui.h:1366</see>
/// <br/><c>ImGuiPopupFlags_MouseButtonDefault_ = 1</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
MouseButtonDefault = 1,
/// <summary>
/// <para>
/// For OpenPopup*(), BeginPopupContext*(): don't reopen same popup if already open (won't reposition, won't
/// reinitialize navigation)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1367">imgui.h:1367</see>
/// <br/><c>ImGuiPopupFlags_NoReopen = 1 &lt;&lt; 5</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
NoReopen = 1 << 5,
/// <summary>
/// <para>
/// For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the
/// popup stack
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1369">imgui.h:1369</see>
/// <br/><c>ImGuiPopupFlags_NoOpenOverExistingPopup = 1 &lt;&lt; 7</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
NoOpenOverExistingPopup = 1 << 7,
/// <summary>
/// <para>
/// For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1370">imgui.h:1370</see>
/// <br/><c>ImGuiPopupFlags_NoOpenOverItems = 1 &lt;&lt; 8</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
NoOpenOverItems = 1 << 8,
/// <summary>
/// <para>
/// For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1371">imgui.h:1371</see>
/// <br/><c>ImGuiPopupFlags_AnyPopupId = 1 &lt;&lt; 10</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
AnyPopupId = 1 << 10,
/// <summary>
/// <para>
/// For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1372">imgui.h:1372</see>
/// <br/><c>ImGuiPopupFlags_AnyPopupLevel = 1 &lt;&lt; 11</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
AnyPopupLevel = 1 << 11,
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1373">imgui.h:1373</see>
/// <br/><c>ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
/// - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
/// we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
/// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
/// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
/// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
/// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
/// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
/// </code>
/// </remarks>
AnyPopup = AnyPopupId | AnyPopupLevel,
}
}