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

115 lines
5.2 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>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2726">imgui.h:2726</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4274">imgui_widgets.cpp:4274</see>
/// <br/><c>void DeleteChars(int pos, int bytes_count)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
/// </code>
/// <code>
/// Public API to manipulate UTF-8 text from within a callback.
/// FIXME: The existence of this rarely exercised code path is a bit of a nuisance.
/// Historically they existed because STB_TEXTEDIT_INSERTCHARS() etc. worked on our ImWchar
/// buffer, but nowadays they both work on UTF-8 data. Should aim to merge both.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void ImGuiInputTextCallbackData_DeleteChars(
ImGuiInputTextCallbackData* target,
int pos,
int bytes_count
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2727">imgui.h:2727</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4290">imgui_widgets.cpp:4290</see>
/// <br/><c>void InsertChars(int pos, const char* text, const char* text_end = NULL)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void ImGuiInputTextCallbackData_InsertChars(
ImGuiInputTextCallbackData* target,
int pos,
byte* text,
byte* text_end
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2728">imgui.h:2728</see>
/// <br/><c>void SelectAll()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* target);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2729">imgui.h:2729</see>
/// <br/><c>void ClearSelection()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void ImGuiInputTextCallbackData_ClearSelection(
ImGuiInputTextCallbackData* target
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2730">imgui.h:2730</see>
/// <br/><c>bool HasSelection() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 ImGuiInputTextCallbackData_HasSelection(
ImGuiInputTextCallbackData* target
);
}
}
}