//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
///
///
/// C++:
/// imgui.h:3726
/// ,
/// imgui_draw.cpp:3006
///
ImFont* AddFont(const ImFontConfig* font_cfg)
///
///
///
///
/// 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!
///
///
[LibraryImport("imgui")]
public static unsafe partial ImFont* ImFontAtlas_AddFont(ImFontAtlas* target, ImFontConfig* font_cfg);
///
///
/// C++:
/// imgui.h:3727
/// ,
/// imgui_draw.cpp:3105
///
ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL)
///
///
///
///
/// 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!
///
///
/// Load embedded ProggyClean.ttf at size 13, disable oversampling
///
///
[LibraryImport("imgui")]
public static unsafe partial ImFont* ImFontAtlas_AddFontDefault(
ImFontAtlas* target,
ImFontConfig* font_cfg
);
///
///
/// C++:
/// imgui.h:3728
/// ,
/// imgui_draw.cpp:3133
///
/// ImFont* AddFontFromFileTTF(const char* filename, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)
///
///
///
///
/// 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!
///
///
[LibraryImport("imgui")]
public static unsafe partial ImFont* ImFontAtlas_AddFontFromFileTTF(
ImFontAtlas* target,
byte* filename,
float size_pixels,
ImFontConfig* font_cfg,
uint* glyph_ranges
);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:3729
/// ,
/// imgui_draw.cpp:3159
///
/// ImFont* AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)
///
///
///
///
/// 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!
///
///
/// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless
/// font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build().
///
///
[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
);
///
///
/// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp.
///
///
/// C++:
/// imgui.h:3730
/// ,
/// imgui_draw.cpp:3173
///
/// 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)
///
///
///
///
/// 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!
///
///
[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
);
///
///
/// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with
/// -base85 parameter.
///
///
/// C++:
/// imgui.h:3731
/// ,
/// imgui_draw.cpp:3185
///
/// ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL)
///
///
///
///
/// 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!
///
///
[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
);
///
///
/// C++:
/// imgui.h:3732
/// ,
/// imgui_draw.cpp:3224
///
void RemoveFont(ImFont* font)
///
///
///
///
/// 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!
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_RemoveFont(ImFontAtlas* target, ImFont* font);
///
///
/// Clear everything (input fonts, output glyphs/textures)
///
///
/// C++:
/// imgui.h:3734
/// ,
/// imgui_draw.cpp:2657
///
void Clear()
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_Clear(ImFontAtlas* target);
///
///
/// Compact cached glyphs and texture.
///
///
/// C++:
/// imgui.h:3735
/// ,
/// imgui_draw.cpp:2666
///
void CompactCache()
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_CompactCache(ImFontAtlas* target);
///
///
/// Change font loader at runtime.
///
///
/// C++:
/// imgui.h:3736
/// ,
/// imgui_draw.cpp:2671
///
void SetFontLoader(const ImFontLoader* font_loader)
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_SetFontLoader(ImFontAtlas* target, ImFontLoader* font_loader);
///
///
/// [OBSOLETE] Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges,
/// etc.) = all the data used to build the texture and fonts.
///
///
/// C++:
/// imgui.h:3739
/// ,
/// imgui_draw.cpp:2676
///
void ClearInputData()
///
///
///
///
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_ClearInputData(ImFontAtlas* target);
///
///
/// [OBSOLETE] Clear input+output font data (same as ClearInputData() + glyphs storage, UV coordinates).
///
///
/// C++:
/// imgui.h:3740
/// ,
/// imgui_draw.cpp:2703
///
void ClearFonts()
///
///
///
///
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_ClearFonts(ImFontAtlas* target);
///
///
/// [OBSOLETE] Clear CPU-side copy of the texture data. Saves RAM once the texture has been copied to
/// graphics memory.
///
///
/// C++:
/// imgui.h:3741
/// ,
/// imgui_draw.cpp:2694
///
void ClearTexData()
///
///
///
///
/// As we are transitioning toward a new font system, we expect to obsolete those soon:
///
///
/// Clear CPU-side copy of the texture data.
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_ClearTexData(ImFontAtlas* target);
///
///
/// Basic Latin, Extended Latin
///
///
/// C++:
/// imgui.h:3765
/// ,
/// imgui_draw.cpp:4753
///
const ImWchar* GetGlyphRangesDefault()
///
///
///
///
/// Since 1.92: specifying glyph ranges is only useful/necessary if your backend doesn't support
/// ImGuiBackendFlags_RendererHasTextures!
///
///
/// Retrieve list of range (2 int per range, values are inclusive)
///
///
[LibraryImport("imgui")]
public static unsafe partial uint* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* target);
///
///
/// Register a rectangle. Return -1 (ImFontAtlasRectId_Invalid) on error.
///
///
/// C++:
/// imgui.h:3802
/// ,
/// imgui_draw.cpp:3251
///
ImFontAtlasRectId AddCustomRect(int width, int height, ImFontAtlasRect* out_r = NULL)
///
///
///
///
/// 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
///
///
/// 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.
///
///
[LibraryImport("imgui")]
public static unsafe partial ImFontAtlasRectId ImFontAtlas_AddCustomRect(
ImFontAtlas* target,
int width,
int height,
ImFontAtlasRect* out_r
);
///
///
/// Unregister a rectangle. Existing pixels will stay in texture until resized / garbage collected.
///
///
/// C++:
/// imgui.h:3803
/// ,
/// imgui_draw.cpp:3273
///
void RemoveCustomRect(ImFontAtlasRectId id)
///
///
///
///
/// 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
///
///
[LibraryImport("imgui")]
public static unsafe partial void ImFontAtlas_RemoveCustomRect(ImFontAtlas* target, ImFontAtlasRectId id);
///
///
/// Get rectangle coordinates for current texture. Valid immediately, never store this (read above)!
///
///
/// C++:
/// imgui.h:3804
/// ,
/// imgui_draw.cpp:3330
///
bool GetCustomRect(ImFontAtlasRectId id, ImFontAtlasRect* out_r) const
///
///
///
///
/// 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
///
///
[LibraryImport("imgui")]
public static unsafe partial Bool8 ImFontAtlas_GetCustomRect(
ImFontAtlas* target,
ImFontAtlasRectId id,
ImFontAtlasRect* out_r
);
}
}
}