//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for GetTypingSelectRequest()
///
///
/// C++:
/// imgui_internal.h:188
///
struct ImGuiTypingSelectState
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 104)]
public unsafe partial struct ImGuiTypingSelectState
{
///
///
/// User-facing data
///
///
/// C++:
/// imgui_internal.h:1788
///
ImGuiTypingSelectRequest Request
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
[FieldOffset(0)]
public ImGuiTypingSelectRequest Request;
///
/// Search buffer: no need to make dynamic as this search is very transient.
///
[FieldOffset(24)]
public fixed byte SearchBuffer[64];
///
///
/// C++:
/// imgui_internal.h:1790
///
ImGuiID FocusScope
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
[FieldOffset(88)]
public ImGuiID FocusScope;
///
///
/// C++:
/// imgui_internal.h:1791
///
int LastRequestFrame = 0
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
[FieldOffset(92)]
public int LastRequestFrame;
///
///
/// C++:
/// imgui_internal.h:1792
///
float LastRequestTime = 0.0f
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
[FieldOffset(96)]
public float LastRequestTime;
///
///
/// After a certain single char repeat count we lock into SingleCharMode. Two benefits: 1) buffer never
/// fill, 2) we can provide an immediate SingleChar mode without timer elapsing.
///
///
/// C++:
/// imgui_internal.h:1793
///
bool SingleCharModeLock = false
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
[FieldOffset(100)]
public Bool8 SingleCharModeLock;
}
///
///
/// Storage for GetTypingSelectRequest()
///
///
/// C++:
/// imgui_internal.h:188
///
struct ImGuiTypingSelectState
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiTypingSelectStatePtr(ImGuiTypingSelectState* ptr) : INullable
{
private ImGuiTypingSelectState* _ptr = ptr;
public ImGuiTypingSelectState* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTypingSelectStatePtr(ImGuiTypingSelectState* ptr) => new(ptr);
public static implicit operator ImGuiTypingSelectState*(ImGuiTypingSelectStatePtr wrapper) => wrapper.Ptr;
///
///
/// User-facing data
///
///
/// C++:
/// imgui_internal.h:1788
///
ImGuiTypingSelectRequest Request
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
public ref ImGuiTypingSelectRequest Request => ref Unsafe.AsRef(&_ptr->Request);
///
/// Search buffer: no need to make dynamic as this search is very transient.
///
public Span SearchBuffer => MemoryMarshal.CreateSpan(ref _ptr->SearchBuffer[0], 64);
///
///
/// C++:
/// imgui_internal.h:1790
///
ImGuiID FocusScope
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
public ref ImGuiID FocusScope => ref Unsafe.AsRef(&_ptr->FocusScope);
///
///
/// C++:
/// imgui_internal.h:1791
///
int LastRequestFrame = 0
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
public ref int LastRequestFrame => ref Unsafe.AsRef(&_ptr->LastRequestFrame);
///
///
/// C++:
/// imgui_internal.h:1792
///
float LastRequestTime = 0.0f
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
public ref float LastRequestTime => ref Unsafe.AsRef(&_ptr->LastRequestTime);
///
///
/// After a certain single char repeat count we lock into SingleCharMode. Two benefits: 1) buffer never
/// fill, 2) we can provide an immediate SingleChar mode without timer elapsing.
///
///
/// C++:
/// imgui_internal.h:1793
///
bool SingleCharModeLock = false
///
///
///
///
/// Storage for GetTypingSelectRequest()
///
///
public ref bool SingleCharModeLock => ref Unsafe.AsRef(&_ptr->SingleCharModeLock);
}
}