mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
564 lines
38 KiB
C#
564 lines
38 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
public partial class ImGui
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3726">imgui.h:3726</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3006">imgui_draw.cpp:3006</see>
|
|
/// <br/><c>ImFont* AddFont(const ImFontConfig* font_cfg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFont* ImFontAtlas_AddFont(ImFontAtlas* target, ImFontConfig* font_cfg);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3727">imgui.h:3727</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3105">imgui_draw.cpp:3105</see>
|
|
/// <br/><c>ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// <para>
|
|
/// Load embedded ProggyClean.ttf at size 13, disable oversampling
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFont* ImFontAtlas_AddFontDefault(
|
|
ImFontAtlas* target,
|
|
ImFontConfig* font_cfg
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3728">imgui.h:3728</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3133">imgui_draw.cpp:3133</see>
|
|
/// <br/>
|
|
/// <c>ImFont* AddFontFromFileTTF(const char* filename, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFont* ImFontAtlas_AddFontFromFileTTF(
|
|
ImFontAtlas* target,
|
|
byte* filename,
|
|
float size_pixels,
|
|
ImFontConfig* font_cfg,
|
|
uint* glyph_ranges
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the
|
|
/// atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be
|
|
/// freed.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3729">imgui.h:3729</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3159">imgui_draw.cpp:3159</see>
|
|
/// <br/>
|
|
/// <c>ImFont* AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// <para>
|
|
/// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless
|
|
/// font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build().
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFont* ImFontAtlas_AddFontFromMemoryTTF(
|
|
ImFontAtlas* target,
|
|
void* font_data,
|
|
int font_data_size,
|
|
float size_pixels,
|
|
ImFontConfig* font_cfg,
|
|
uint* glyph_ranges
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3730">imgui.h:3730</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3173">imgui_draw.cpp:3173</see>
|
|
/// <br/>
|
|
/// <c>ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(
|
|
ImFontAtlas* target,
|
|
void* compressed_font_data,
|
|
int compressed_font_data_size,
|
|
float size_pixels,
|
|
ImFontConfig* font_cfg,
|
|
uint* glyph_ranges
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with
|
|
/// -base85 parameter.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3731">imgui.h:3731</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3185">imgui_draw.cpp:3185</see>
|
|
/// <br/>
|
|
/// <c>ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(
|
|
ImFontAtlas* target,
|
|
byte* compressed_font_data_base85,
|
|
float size_pixels,
|
|
ImFontConfig* font_cfg,
|
|
uint* glyph_ranges
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3732">imgui.h:3732</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3224">imgui_draw.cpp:3224</see>
|
|
/// <br/><c>void RemoveFont(ImFont* font)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding:
|
|
/// - One or more fonts.
|
|
/// - Custom graphics data needed to render the shapes needed by Dear ImGui.
|
|
/// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).
|
|
/// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.
|
|
/// It is the rendering backend responsibility to upload texture into your graphics API:
|
|
/// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.
|
|
/// - Backend then set ImTextureData's TexID and BackendUserData.
|
|
/// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.
|
|
/// Legacy path:
|
|
/// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.
|
|
/// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.
|
|
/// Common pitfalls:
|
|
/// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
|
|
/// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
|
|
/// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
|
|
/// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
|
|
/// - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
|
|
/// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future!
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_RemoveFont(ImFontAtlas* target, ImFont* font);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Clear everything (input fonts, output glyphs/textures)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3734">imgui.h:3734</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2657">imgui_draw.cpp:2657</see>
|
|
/// <br/><c>void Clear()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_Clear(ImFontAtlas* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Compact cached glyphs and texture.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3735">imgui.h:3735</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2666">imgui_draw.cpp:2666</see>
|
|
/// <br/><c>void CompactCache()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_CompactCache(ImFontAtlas* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Change font loader at runtime.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3736">imgui.h:3736</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2671">imgui_draw.cpp:2671</see>
|
|
/// <br/><c>void SetFontLoader(const ImFontLoader* font_loader)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_SetFontLoader(ImFontAtlas* target, ImFontLoader* font_loader);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [OBSOLETE] Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges,
|
|
/// etc.) = all the data used to build the texture and fonts.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3739">imgui.h:3739</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2676">imgui_draw.cpp:2676</see>
|
|
/// <br/><c>void ClearInputData()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_ClearInputData(ImFontAtlas* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [OBSOLETE] Clear input+output font data (same as ClearInputData() + glyphs storage, UV coordinates).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3740">imgui.h:3740</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2703">imgui_draw.cpp:2703</see>
|
|
/// <br/><c>void ClearFonts()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_ClearFonts(ImFontAtlas* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// [OBSOLETE] Clear CPU-side copy of the texture data. Saves RAM once the texture has been copied to
|
|
/// graphics memory.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3741">imgui.h:3741</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2694">imgui_draw.cpp:2694</see>
|
|
/// <br/><c>void ClearTexData()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
|
|
/// </para>
|
|
/// <para>
|
|
/// Clear CPU-side copy of the texture data.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_ClearTexData(ImFontAtlas* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Basic Latin, Extended Latin
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3765">imgui.h:3765</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L4753">imgui_draw.cpp:4753</see>
|
|
/// <br/><c>const ImWchar* GetGlyphRangesDefault()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Since 1.92: specifying glyph ranges is only useful/necessary if your backend doesn't support
|
|
/// ImGuiBackendFlags_RendererHasTextures!
|
|
/// </para>
|
|
/// <para>
|
|
/// Retrieve list of range (2 int per range, values are inclusive)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial uint* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Register a rectangle. Return -1 (ImFontAtlasRectId_Invalid) on error.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3802">imgui.h:3802</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3251">imgui_draw.cpp:3251</see>
|
|
/// <br/><c>ImFontAtlasRectId AddCustomRect(int width, int height, ImFontAtlasRect* out_r = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Register and retrieve custom rectangles
|
|
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
|
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
|
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
|
/// - VERY IMPORTANT:
|
|
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
|
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
|
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
|
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
|
/// - Read docs/FONTS.md for more details about using colorful icons.
|
|
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
|
/// - (Pre-1.92 names) ------------> (1.92 names)
|
|
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
|
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
|
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
|
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
|
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
|
/// </code>
|
|
/// <para>
|
|
/// At it is common to do an AddCustomRect() followed by a GetCustomRect(), we provide an optional
|
|
/// 'ImFontAtlasRect* out_r = NULL' argument to retrieve the info straight away.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial ImFontAtlasRectId ImFontAtlas_AddCustomRect(
|
|
ImFontAtlas* target,
|
|
int width,
|
|
int height,
|
|
ImFontAtlasRect* out_r
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Unregister a rectangle. Existing pixels will stay in texture until resized / garbage collected.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3803">imgui.h:3803</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3273">imgui_draw.cpp:3273</see>
|
|
/// <br/><c>void RemoveCustomRect(ImFontAtlasRectId id)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Register and retrieve custom rectangles
|
|
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
|
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
|
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
|
/// - VERY IMPORTANT:
|
|
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
|
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
|
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
|
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
|
/// - Read docs/FONTS.md for more details about using colorful icons.
|
|
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
|
/// - (Pre-1.92 names) ------------> (1.92 names)
|
|
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
|
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
|
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
|
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
|
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial void ImFontAtlas_RemoveCustomRect(ImFontAtlas* target, ImFontAtlasRectId id);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get rectangle coordinates for current texture. Valid immediately, never store this (read above)!
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3804">imgui.h:3804</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L3330">imgui_draw.cpp:3330</see>
|
|
/// <br/><c>bool GetCustomRect(ImFontAtlasRectId id, ImFontAtlasRect* out_r) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Register and retrieve custom rectangles
|
|
/// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.
|
|
/// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)
|
|
/// - You can render your pixels into the texture right after calling the AddCustomRect() functions.
|
|
/// - VERY IMPORTANT:
|
|
/// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.
|
|
/// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().
|
|
/// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.
|
|
/// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.
|
|
/// - Read docs/FONTS.md for more details about using colorful icons.
|
|
/// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.
|
|
/// - (Pre-1.92 names) ------------> (1.92 names)
|
|
/// - GetCustomRectByIndex() --> Use GetCustomRect()
|
|
/// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.
|
|
/// - AddCustomRectRegular() --> Renamed to AddCustomRect()
|
|
/// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
|
|
/// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 ImFontAtlas_GetCustomRect(
|
|
ImFontAtlas* target,
|
|
ImFontAtlasRectId id,
|
|
ImFontAtlasRect* out_r
|
|
);
|
|
}
|
|
}
|
|
}
|