mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
46 lines
2.3 KiB
C#
46 lines
2.3 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3894">imgui_internal.h:3894</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4522">imgui_widgets.cpp:4522</see>
|
|
/// <br/>
|
|
/// <c>bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// InputText
|
|
/// </para>
|
|
/// <code>
|
|
/// Edit a string of text
|
|
/// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!".
|
|
/// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match
|
|
/// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator.
|
|
/// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect.
|
|
/// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h
|
|
/// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are
|
|
/// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188)
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 InputTextEx_internal(
|
|
byte* label,
|
|
byte* hint,
|
|
byte* buf,
|
|
int buf_size,
|
|
float2* size_arg,
|
|
ImGuiInputTextFlags flags,
|
|
nint callback,
|
|
void* user_data
|
|
);
|
|
}
|
|
}
|