brutal/Brutal.ImGui/Generated-Internal/PInvoke/TypingSelectFindMatch_internal.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

43 lines
2.2 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#L3697">imgui_internal.h:3697</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7439">imgui_widgets.cpp:7439</see>
/// <br/>
/// <c>int TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Typing-Select API
/// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature)
/// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!)
/// </code>
/// <code>
/// Default handler for finding a result for typing-select. You may implement your own.
/// You might want to display a tooltip to visualize the current request SearchBuffer
/// When SingleCharMode is set:
/// - it is better to NOT display a tooltip of other on-screen display indicator.
/// - the index of the currently focused item is required.
/// if your SetNextItemSelectionUserData() values are indices, you can obtain it from ImGuiMultiSelectIO::NavIdItem, otherwise from g.NavLastValidSelectionUserData.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial int TypingSelectFindMatch_internal(
ImGuiTypingSelectRequest* req,
int items_count,
nint get_item_name_func,
void* user_data,
int nav_item_idx
);
}
}