mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 13:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,94 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.FreeType
|
||||
{
|
||||
public partial class ImGuiFreeType
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L67">imgui_freetype.h:67</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L21595">imgui.cpp:21595</see>
|
||||
/// <br/><c>const ImFontLoader* GetFontLoader()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'.
|
||||
/// If you need to dynamically select between multiple builders:
|
||||
/// - you can manually assign this builder with 'atlas->SetFontLoader(ImGuiFreeType::GetFontLoader())'
|
||||
/// - prefer deep-copying this into your own ImFontLoader instance if you use hot-reloading that messes up static data.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe ImFontLoaderPtr GetFontLoader() => PInvoke.GetFontLoader();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L71">imgui_freetype.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE()
|
||||
/// However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetAllocatorFunctions(
|
||||
ImGuiMemAllocFunc allocFunc,
|
||||
ImGuiMemFreeFunc freeFunc,
|
||||
Ptr userData = default
|
||||
) =>
|
||||
PInvoke.SetAllocatorFunctions(
|
||||
Marshal.GetFunctionPointerForDelegate(allocFunc),
|
||||
Marshal.GetFunctionPointerForDelegate(freeFunc),
|
||||
userData
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L71">imgui_freetype.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = nullptr)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE()
|
||||
/// However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static unsafe void SetAllocatorFunctions(
|
||||
delegate* unmanaged[Cdecl]<nuint, void*, void*> allocFunc,
|
||||
delegate* unmanaged[Cdecl]<void*, void*, void> freeFunc,
|
||||
Ptr userData = default
|
||||
) => PInvoke.SetAllocatorFunctions((nint)allocFunc, (nint)freeFunc, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_freetype.h#L74">imgui_freetype.h:74</see>
|
||||
/// <br/><c>bool DebugEditFontLoaderFlags(ImGuiFreeTypeLoaderFlags* p_font_loader_flags)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Display UI to edit ImFontAtlas::FontLoaderFlags (shared) or ImFontConfig::FontLoaderFlags (single
|
||||
/// source)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe bool DebugEditFontLoaderFlags(ref ImGuiFreeTypeLoaderFlags pFontLoaderFlags)
|
||||
{
|
||||
fixed (ImGuiFreeTypeLoaderFlags* pFontLoaderFlags_fixed = &pFontLoaderFlags)
|
||||
{
|
||||
return PInvoke.DebugEditFontLoaderFlags(pFontLoaderFlags_fixed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue