mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
259 lines
12 KiB
C#
259 lines
12 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
public static partial class ImGuiInputTextStateExtensions
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1242">imgui_internal.h:1242</see>
|
|
/// <br/><c>void ClearText()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void ClearText(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_ClearText_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1243">imgui_internal.h:1243</see>
|
|
/// <br/><c>void ClearFreeMemory()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void ClearFreeMemory(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_ClearFreeMemory_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Cannot be inline because we call in code in stb_textedit.h implementation
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1244">imgui_internal.h:1244</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4234">imgui_widgets.cpp:4234</see>
|
|
/// <br/><c>void OnKeyPressed(int key)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void OnKeyPressed(this ImGuiInputTextStatePtr target, int key) =>
|
|
PInvoke.ImGuiInputTextState_OnKeyPressed_internal(target, key);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1245">imgui_internal.h:1245</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4241">imgui_widgets.cpp:4241</see>
|
|
/// <br/><c>void OnCharPressed(unsigned int c)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void OnCharPressed(this ImGuiInputTextStatePtr target, uint c) =>
|
|
PInvoke.ImGuiInputTextState_OnCharPressed_internal(target, c);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1248">imgui_internal.h:1248</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4253">imgui_widgets.cpp:4253</see>
|
|
/// <br/><c>void CursorAnimReset()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// <para>
|
|
/// Those functions are not inlined in imgui_internal.h, allowing us to hide ImStbTexteditState from that
|
|
/// header.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void CursorAnimReset(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_CursorAnimReset_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1249">imgui_internal.h:1249</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4254">imgui_widgets.cpp:4254</see>
|
|
/// <br/><c>void CursorClamp()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void CursorClamp(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_CursorClamp_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1250">imgui_internal.h:1250</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4255">imgui_widgets.cpp:4255</see>
|
|
/// <br/><c>bool HasSelection() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe bool HasSelection(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_HasSelection_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1251">imgui_internal.h:1251</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4256">imgui_widgets.cpp:4256</see>
|
|
/// <br/><c>void ClearSelection()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void ClearSelection(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_ClearSelection_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1252">imgui_internal.h:1252</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4257">imgui_widgets.cpp:4257</see>
|
|
/// <br/><c>int GetCursorPos() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int GetCursorPos(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_GetCursorPos_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1253">imgui_internal.h:1253</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4258">imgui_widgets.cpp:4258</see>
|
|
/// <br/><c>int GetSelectionStart() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int GetSelectionStart(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_GetSelectionStart_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1254">imgui_internal.h:1254</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4259">imgui_widgets.cpp:4259</see>
|
|
/// <br/><c>int GetSelectionEnd() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe int GetSelectionEnd(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_GetSelectionEnd_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1255">imgui_internal.h:1255</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4260">imgui_widgets.cpp:4260</see>
|
|
/// <br/><c>void SelectAll()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cursor & Selection
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void SelectAll(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_SelectAll_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1262">imgui_internal.h:1262</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4261">imgui_widgets.cpp:4261</see>
|
|
/// <br/><c>void ReloadUserBufAndSelectAll()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Reload user buf (WIP #2890)
|
|
/// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
|
|
/// strcpy(my_buf, "hello");
|
|
/// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
|
|
/// state->ReloadUserBufAndSelectAll();
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ReloadUserBufAndSelectAll(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_ReloadUserBufAndSelectAll_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1263">imgui_internal.h:1263</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4262">imgui_widgets.cpp:4262</see>
|
|
/// <br/><c>void ReloadUserBufAndKeepSelection()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Reload user buf (WIP #2890)
|
|
/// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
|
|
/// strcpy(my_buf, "hello");
|
|
/// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
|
|
/// state->ReloadUserBufAndSelectAll();
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ReloadUserBufAndKeepSelection(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_ReloadUserBufAndKeepSelection_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1264">imgui_internal.h:1264</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L4263">imgui_widgets.cpp:4263</see>
|
|
/// <br/><c>void ReloadUserBufAndMoveToEnd()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Reload user buf (WIP #2890)
|
|
/// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
|
|
/// strcpy(my_buf, "hello");
|
|
/// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
|
|
/// state->ReloadUserBufAndSelectAll();
|
|
/// </code>
|
|
/// </remarks>
|
|
public static unsafe void ReloadUserBufAndMoveToEnd(this ImGuiInputTextStatePtr target) =>
|
|
PInvoke.ImGuiInputTextState_ReloadUserBufAndMoveToEnd_internal(target);
|
|
}
|
|
}
|