mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
381 lines
18 KiB
C#
381 lines
18 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>
|
|
/// Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the
|
|
/// key end-user would use to emit an 'A' character)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2577">imgui.h:2577</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1808">imgui.cpp:1808</see>
|
|
/// <br/><c>void AddKeyEvent(ImGuiKey key, bool down)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddKeyEvent(ImGuiIO* target, ImGuiKey key, Bool8 down);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should
|
|
/// be handled by the backend.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2578">imgui.h:2578</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1768">imgui.cpp:1768</see>
|
|
/// <br/><c>void AddKeyAnalogEvent(ImGuiKey key, bool down, float v)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// <code>
|
|
/// Queue a new key down/up event.
|
|
/// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character)
|
|
/// - bool down: Is the key down? use false to signify a key release.
|
|
/// - float analog_value: 0.0f..1.0f
|
|
/// IMPORTANT: THIS FUNCTION AND OTHER "ADD" GRABS THE CONTEXT FROM OUR INSTANCE.
|
|
/// WE NEED TO ENSURE THAT ALL FUNCTION CALLS ARE FULFILLING THIS, WHICH IS WHY GetKeyData() HAS AN EXPLICIT CONTEXT.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddKeyAnalogEvent(
|
|
ImGuiIO* target,
|
|
ImGuiKey key,
|
|
Bool8 down,
|
|
float v
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and
|
|
/// not hovered)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2579">imgui.h:2579</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1837">imgui.cpp:1837</see>
|
|
/// <br/><c>void AddMousePosEvent(float x, float y)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// <para>
|
|
/// Queue a mouse move event
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddMousePosEvent(ImGuiIO* target, float x, float y);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a mouse button change
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2580">imgui.h:2580</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1863">imgui.cpp:1863</see>
|
|
/// <br/><c>void AddMouseButtonEvent(int button, bool down)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddMouseButtonEvent(ImGuiIO* target, int button, Bool8 down);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll
|
|
/// right, wheel_x>0: scroll left.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2581">imgui.h:2581</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1912">imgui.cpp:1912</see>
|
|
/// <br/><c>void AddMouseWheelEvent(float wheel_x, float wheel_y)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// <para>
|
|
/// Queue a mouse wheel event (some mouse/API may only have a Y component)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddMouseWheelEvent(ImGuiIO* target, float wheel_x, float wheel_y);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a mouse source change (Mouse/TouchScreen/Pen)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2582">imgui.h:2582</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1933">imgui.cpp:1933</see>
|
|
/// <br/><c>void AddMouseSourceEvent(ImGuiMouseSource source)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// <code>
|
|
/// This is not a real event, the data is latched in order to be stored in actual Mouse events.
|
|
/// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddMouseSourceEvent(ImGuiIO* target, ImGuiMouseSource source);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to
|
|
/// call this (for multi-viewport support).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2583">imgui.h:2583</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1940">imgui.cpp:1940</see>
|
|
/// <br/><c>void AddMouseViewportEvent(ImGuiID id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddMouseViewportEvent(ImGuiIO* target, ImGuiID id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2584">imgui.h:2584</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1961">imgui.cpp:1961</see>
|
|
/// <br/><c>void AddFocusEvent(bool focused)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddFocusEvent(ImGuiIO* target, Bool8 focused);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a new character input
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2585">imgui.h:2585</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1629">imgui.cpp:1629</see>
|
|
/// <br/><c>void AddInputCharacter(unsigned int c)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// <code>
|
|
/// Pass in translated ASCII characters for text input.
|
|
/// - with glfw you can get those from the callback set in glfwSetCharCallback()
|
|
/// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message
|
|
/// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddInputCharacter(ImGuiIO* target, uint c);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a new character input from a UTF-16 character, it can be a surrogate
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2586">imgui.h:2586</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1646">imgui.cpp:1646</see>
|
|
/// <br/><c>void AddInputCharacterUTF16(ImWchar16 c)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// <code>
|
|
/// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so
|
|
/// we should save the high surrogate.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* target, ushort c);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Queue a new characters input from a UTF-8 string
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2587">imgui.h:2587</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1680">imgui.cpp:1680</see>
|
|
/// <br/><c>void AddInputCharactersUTF8(const char* str)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input Functions
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* target, byte* str);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify
|
|
/// native keycode, scancode.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2589">imgui.h:2589</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1818">imgui.cpp:1818</see>
|
|
/// <br/>
|
|
/// <c>void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// [Optional] Call after AddKeyEvent().
|
|
/// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices.
|
|
/// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_SetKeyEventNativeData(
|
|
ImGuiIO* target,
|
|
ImGuiKey key,
|
|
int native_keycode,
|
|
int native_scancode,
|
|
int native_legacy_index
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native
|
|
/// dialog boxes that are interrupting your application loop/refresh, and you want to disable events
|
|
/// being queued while your app is frozen.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2590">imgui.h:2590</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1831">imgui.cpp:1831</see>
|
|
/// <br/><c>void SetAppAcceptingEvents(bool accepting_events)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native
|
|
/// dialog boxes that are interrupting your application loop/refresh, and you want to disable events
|
|
/// being queued while your app is frozen.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* target, Bool8 accepting_events);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Clear all incoming events.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2591">imgui.h:2591</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1693">imgui.cpp:1693</see>
|
|
/// <br/><c>void ClearEventsQueue()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Clear all incoming events.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_ClearEventsQueue(ImGuiIO* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all
|
|
/// keys/buttons.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2592">imgui.h:2592</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1701">imgui.cpp:1701</see>
|
|
/// <br/><c>void ClearInputKeys()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all
|
|
/// keys/buttons.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_ClearInputKeys(ImGuiIO* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Clear current mouse state.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2593">imgui.h:2593</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L1718">imgui.cpp:1718</see>
|
|
/// <br/><c>void ClearInputMouse()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImGuiIO_ClearInputMouse(ImGuiIO* target);
|
|
}
|
|
}
|
|
}
|