mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,47 @@
|
|||
// <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 if the modal is open, and you can start outputting to it.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L853">imgui.h:853</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12888">imgui.cpp:12888</see>
|
||||
/// <br/><c>bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Popups, Modals
|
||||
/// - They block normal mouse hovering detection (and therefore most mouse interactions) behind them.
|
||||
/// - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE.
|
||||
/// - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls.
|
||||
/// - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time.
|
||||
/// - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered().
|
||||
/// - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack.
|
||||
/// This is sometimes leading to confusing mistakes. May rework this in the future.
|
||||
/// - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards if returned true. ImGuiWindowFlags are forwarded to the window.
|
||||
/// - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar.
|
||||
/// </code>
|
||||
/// <code>
|
||||
/// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup.
|
||||
/// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup).
|
||||
/// - *p_open set back to false in BeginPopupModal() when popup is not open.
|
||||
/// - if you set *p_open to false before calling BeginPopupModal(), it will close the popup.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui")]
|
||||
public static unsafe partial Bool8 BeginPopupModal(byte* name, Bool8* p_open, ImGuiWindowFlags flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue