mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,104 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
public static partial class ImGuiInputTextCallbackDataExtensions
|
||||
{
|
||||
/// <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>
|
||||
public static unsafe void DeleteChars(this ImGuiInputTextCallbackDataPtr target, int pos, int bytesCount) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_DeleteChars(target, pos, bytesCount);
|
||||
|
||||
/// <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>
|
||||
public static unsafe void InsertChars(this ImGuiInputTextCallbackDataPtr target, int pos, ImString text)
|
||||
{
|
||||
fixed (byte* text_fixed = text)
|
||||
{
|
||||
PInvoke.ImGuiInputTextCallbackData_InsertChars(target, pos, text_fixed, text_fixed + text.Length);
|
||||
}
|
||||
}
|
||||
|
||||
/// <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>
|
||||
public static unsafe void SelectAll(this ImGuiInputTextCallbackDataPtr target) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_SelectAll(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>
|
||||
public static unsafe void ClearSelection(this ImGuiInputTextCallbackDataPtr target) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_ClearSelection(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>
|
||||
public static unsafe bool HasSelection(this ImGuiInputTextCallbackDataPtr target) =>
|
||||
PInvoke.ImGuiInputTextCallbackData_HasSelection(target);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue