//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Internal state of the currently focused/edited text input box
///
///
/// C++:
/// imgui_internal.h:161
///
struct ImGuiInputTextState
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 120)]
public partial struct ImGuiInputTextState
{
///
///
/// parent UI context (needs to be set explicitly by parent).
///
///
/// C++:
/// imgui_internal.h:1221
///
ImGuiContext* Ctx
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(0)]
public ImGuiContextPtr Ctx;
///
///
/// State for stb_textedit.h
///
///
/// C++:
/// imgui_internal.h:1222
///
ImStbTexteditState* Stb
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(8)]
public Ptr Stb;
///
///
/// copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set.
///
///
/// C++:
/// imgui_internal.h:1223
///
ImGuiInputTextFlags Flags
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(16)]
public ImGuiInputTextFlags Flags;
///
///
/// widget id owning the text state
///
///
/// C++:
/// imgui_internal.h:1224
///
ImGuiID ID
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(20)]
public ImGuiID ID;
///
///
/// UTF-8 length of the string in TextA (in bytes)
///
///
/// C++:
/// imgui_internal.h:1225
///
int TextLen
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(24)]
public int TextLen;
///
///
/// == TextA.Data unless read-only, in which case == buf passed to InputText(). Field only set and valid
/// _inside_ the call InputText() call.
///
///
/// C++:
/// imgui_internal.h:1226
///
const char* TextSrc
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(32)]
public Ptr TextSrc;
///
///
/// main UTF8 buffer. TextA.Size is a buffer size! Should always be >= buf_size passed by user (and of
/// course >= CurLenA + 1).
///
///
/// C++:
/// imgui_internal.h:1227
///
ImVector<char> TextA
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(40)]
public ImVector TextA;
///
///
/// value to revert to when pressing Escape = backup of end-user buffer at the time of focus (in UTF-8,
/// unaltered)
///
///
/// C++:
/// imgui_internal.h:1228
///
ImVector<char> TextToRevertTo
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(56)]
public ImVector TextToRevertTo;
///
///
/// temporary storage for callback to support automatic reconcile of undo-stack
///
///
/// C++:
/// imgui_internal.h:1229
///
ImVector<char> CallbackTextBackup
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(72)]
public ImVector CallbackTextBackup;
///
///
/// end-user buffer capacity (include zero terminator)
///
///
/// C++:
/// imgui_internal.h:1230
///
int BufCapacity
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(88)]
public int BufCapacity;
///
///
/// horizontal offset (managed manually) + vertical scrolling (pulled from child window's own Scroll.y)
///
///
/// C++:
/// imgui_internal.h:1231
///
ImVec2 Scroll
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(92)]
public float2 Scroll;
///
///
/// timer for cursor blink, reset on every user action so the cursor reappears immediately
///
///
/// C++:
/// imgui_internal.h:1232
///
float CursorAnim
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(100)]
public float CursorAnim;
///
///
/// set when we want scrolling to follow the current cursor position (not always!)
///
///
/// C++:
/// imgui_internal.h:1233
///
bool CursorFollow
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(104)]
public Bool8 CursorFollow;
///
///
/// after a double-click to select all, we ignore further mouse drags to update selection
///
///
/// C++:
/// imgui_internal.h:1234
///
bool SelectedAllMouseLock
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(105)]
public Bool8 SelectedAllMouseLock;
///
///
/// edited this frame
///
///
/// C++:
/// imgui_internal.h:1235
///
bool Edited
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(106)]
public Bool8 Edited;
///
///
/// force a reload of user buf so it may be modified externally. may be automatic in future version.
///
///
/// C++:
/// imgui_internal.h:1236
///
bool WantReloadUserBuf
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(107)]
public Bool8 WantReloadUserBuf;
///
///
/// C++:
/// imgui_internal.h:1237
///
int ReloadSelectionStart
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(108)]
public int ReloadSelectionStart;
///
///
/// C++:
/// imgui_internal.h:1238
///
int ReloadSelectionEnd
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
[FieldOffset(112)]
public int ReloadSelectionEnd;
}
///
///
/// Internal state of the currently focused/edited text input box
///
///
/// C++:
/// imgui_internal.h:161
///
struct ImGuiInputTextState
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiInputTextStatePtr(ImGuiInputTextState* ptr) : INullable
{
private ImGuiInputTextState* _ptr = ptr;
public ImGuiInputTextState* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiInputTextStatePtr(ImGuiInputTextState* ptr) => new(ptr);
public static implicit operator ImGuiInputTextState*(ImGuiInputTextStatePtr wrapper) => wrapper.Ptr;
///
///
/// parent UI context (needs to be set explicitly by parent).
///
///
/// C++:
/// imgui_internal.h:1221
///
ImGuiContext* Ctx
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref ImGuiContextPtr Ctx => ref Unsafe.AsRef(&_ptr->Ctx);
///
///
/// State for stb_textedit.h
///
///
/// C++:
/// imgui_internal.h:1222
///
ImStbTexteditState* Stb
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref Ptr Stb => ref Unsafe.AsRef>(&_ptr->Stb);
///
///
/// copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set.
///
///
/// C++:
/// imgui_internal.h:1223
///
ImGuiInputTextFlags Flags
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef(&_ptr->Flags);
///
///
/// widget id owning the text state
///
///
/// C++:
/// imgui_internal.h:1224
///
ImGuiID ID
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// UTF-8 length of the string in TextA (in bytes)
///
///
/// C++:
/// imgui_internal.h:1225
///
int TextLen
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref int TextLen => ref Unsafe.AsRef(&_ptr->TextLen);
///
///
/// == TextA.Data unless read-only, in which case == buf passed to InputText(). Field only set and valid
/// _inside_ the call InputText() call.
///
///
/// C++:
/// imgui_internal.h:1226
///
const char* TextSrc
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref Ptr TextSrc => ref Unsafe.AsRef>(&_ptr->TextSrc);
///
///
/// main UTF8 buffer. TextA.Size is a buffer size! Should always be >= buf_size passed by user (and of
/// course >= CurLenA + 1).
///
///
/// C++:
/// imgui_internal.h:1227
///
ImVector<char> TextA
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref ImVector TextA => ref Unsafe.AsRef>(&_ptr->TextA);
///
///
/// value to revert to when pressing Escape = backup of end-user buffer at the time of focus (in UTF-8,
/// unaltered)
///
///
/// C++:
/// imgui_internal.h:1228
///
ImVector<char> TextToRevertTo
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref ImVector TextToRevertTo => ref Unsafe.AsRef>(&_ptr->TextToRevertTo);
///
///
/// temporary storage for callback to support automatic reconcile of undo-stack
///
///
/// C++:
/// imgui_internal.h:1229
///
ImVector<char> CallbackTextBackup
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref ImVector CallbackTextBackup => ref Unsafe.AsRef>(&_ptr->CallbackTextBackup);
///
///
/// end-user buffer capacity (include zero terminator)
///
///
/// C++:
/// imgui_internal.h:1230
///
int BufCapacity
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref int BufCapacity => ref Unsafe.AsRef(&_ptr->BufCapacity);
///
///
/// horizontal offset (managed manually) + vertical scrolling (pulled from child window's own Scroll.y)
///
///
/// C++:
/// imgui_internal.h:1231
///
ImVec2 Scroll
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref float2 Scroll => ref Unsafe.AsRef(&_ptr->Scroll);
///
///
/// timer for cursor blink, reset on every user action so the cursor reappears immediately
///
///
/// C++:
/// imgui_internal.h:1232
///
float CursorAnim
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref float CursorAnim => ref Unsafe.AsRef(&_ptr->CursorAnim);
///
///
/// set when we want scrolling to follow the current cursor position (not always!)
///
///
/// C++:
/// imgui_internal.h:1233
///
bool CursorFollow
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref bool CursorFollow => ref Unsafe.AsRef(&_ptr->CursorFollow);
///
///
/// after a double-click to select all, we ignore further mouse drags to update selection
///
///
/// C++:
/// imgui_internal.h:1234
///
bool SelectedAllMouseLock
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref bool SelectedAllMouseLock => ref Unsafe.AsRef(&_ptr->SelectedAllMouseLock);
///
///
/// edited this frame
///
///
/// C++:
/// imgui_internal.h:1235
///
bool Edited
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref bool Edited => ref Unsafe.AsRef(&_ptr->Edited);
///
///
/// force a reload of user buf so it may be modified externally. may be automatic in future version.
///
///
/// C++:
/// imgui_internal.h:1236
///
bool WantReloadUserBuf
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref bool WantReloadUserBuf => ref Unsafe.AsRef(&_ptr->WantReloadUserBuf);
///
///
/// C++:
/// imgui_internal.h:1237
///
int ReloadSelectionStart
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref int ReloadSelectionStart => ref Unsafe.AsRef(&_ptr->ReloadSelectionStart);
///
///
/// C++:
/// imgui_internal.h:1238
///
int ReloadSelectionEnd
///
///
///
///
/// Internal state of the currently focused/edited text input box
/// For a given item ID, access with ImGui::GetInputTextState()
///
///
public ref int ReloadSelectionEnd => ref Unsafe.AsRef(&_ptr->ReloadSelectionEnd);
}
}