//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for GetTypingSelectRequest() (aimed to be public)
///
///
/// C++:
/// imgui_internal.h:189
///
struct ImGuiTypingSelectRequest
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 24)]
public partial struct ImGuiTypingSelectRequest
{
///
///
/// Flags passed to GetTypingSelectRequest()
///
///
/// C++:
/// imgui_internal.h:1777
///
ImGuiTypingSelectFlags Flags
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
[FieldOffset(0)]
public ImGuiTypingSelectFlags Flags;
///
///
/// C++:
/// imgui_internal.h:1778
///
int SearchBufferLen
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
[FieldOffset(4)]
public int SearchBufferLen;
///
///
/// Search buffer contents (use full string. unless SingleCharMode is set, in which case use
/// SingleCharSize).
///
///
/// C++:
/// imgui_internal.h:1779
///
const char* SearchBuffer
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
[FieldOffset(8)]
public Ptr SearchBuffer;
///
///
/// Set when buffer was modified this frame, requesting a selection.
///
///
/// C++:
/// imgui_internal.h:1780
///
bool SelectRequest
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
[FieldOffset(16)]
public Bool8 SelectRequest;
///
///
/// Notify when buffer contains same character repeated, to implement special mode. In this situation it
/// preferred to not display any on-screen search indication.
///
///
/// C++:
/// imgui_internal.h:1781
///
bool SingleCharMode
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
[FieldOffset(17)]
public Bool8 SingleCharMode;
///
///
/// Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If
/// (SearchBufferLen==RepeatCharSize) only 1 letter has been input.
///
///
/// C++:
/// imgui_internal.h:1782
///
ImS8 SingleCharSize
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
[FieldOffset(18)]
public sbyte SingleCharSize;
}
///
///
/// Storage for GetTypingSelectRequest() (aimed to be public)
///
///
/// C++:
/// imgui_internal.h:189
///
struct ImGuiTypingSelectRequest
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiTypingSelectRequestPtr(ImGuiTypingSelectRequest* ptr) : INullable
{
private ImGuiTypingSelectRequest* _ptr = ptr;
public ImGuiTypingSelectRequest* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTypingSelectRequestPtr(ImGuiTypingSelectRequest* ptr) => new(ptr);
public static implicit operator ImGuiTypingSelectRequest*(ImGuiTypingSelectRequestPtr wrapper) => wrapper.Ptr;
///
///
/// Flags passed to GetTypingSelectRequest()
///
///
/// C++:
/// imgui_internal.h:1777
///
ImGuiTypingSelectFlags Flags
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
public ref ImGuiTypingSelectFlags Flags => ref Unsafe.AsRef(&_ptr->Flags);
///
///
/// C++:
/// imgui_internal.h:1778
///
int SearchBufferLen
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
public ref int SearchBufferLen => ref Unsafe.AsRef(&_ptr->SearchBufferLen);
///
///
/// Search buffer contents (use full string. unless SingleCharMode is set, in which case use
/// SingleCharSize).
///
///
/// C++:
/// imgui_internal.h:1779
///
const char* SearchBuffer
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
public ref Ptr SearchBuffer => ref Unsafe.AsRef>(&_ptr->SearchBuffer);
///
///
/// Set when buffer was modified this frame, requesting a selection.
///
///
/// C++:
/// imgui_internal.h:1780
///
bool SelectRequest
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
public ref bool SelectRequest => ref Unsafe.AsRef(&_ptr->SelectRequest);
///
///
/// Notify when buffer contains same character repeated, to implement special mode. In this situation it
/// preferred to not display any on-screen search indication.
///
///
/// C++:
/// imgui_internal.h:1781
///
bool SingleCharMode
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
public ref bool SingleCharMode => ref Unsafe.AsRef(&_ptr->SingleCharMode);
///
///
/// Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If
/// (SearchBufferLen==RepeatCharSize) only 1 letter has been input.
///
///
/// C++:
/// imgui_internal.h:1782
///
ImS8 SingleCharSize
///
///
///
///
/// Returned by GetTypingSelectRequest(), designed to eventually be public.
///
///
public ref sbyte SingleCharSize => ref Unsafe.AsRef(&_ptr->SingleCharSize);
}
}