//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public static partial class ImFontGlyphRangesBuilderExtensions
{
///
///
/// C++:
/// imgui.h:3668
///
inline void Clear()
///
///
public static unsafe void Clear(this ImFontGlyphRangesBuilderPtr target) =>
PInvoke.ImFontGlyphRangesBuilder_Clear(target);
///
///
/// Get bit n in the array
///
///
/// C++:
/// imgui.h:3669
///
inline bool GetBit(size_t n) const
///
///
public static unsafe bool GetBit(this ImFontGlyphRangesBuilderPtr target, nuint n) =>
PInvoke.ImFontGlyphRangesBuilder_GetBit(target, n);
///
///
/// Set bit n in the array
///
///
/// C++:
/// imgui.h:3670
///
inline void SetBit(size_t n)
///
///
public static unsafe void SetBit(this ImFontGlyphRangesBuilderPtr target, nuint n) =>
PInvoke.ImFontGlyphRangesBuilder_SetBit(target, n);
///
///
/// Add character
///
///
/// C++:
/// imgui.h:3671
///
inline void AddChar(ImWchar c)
///
///
public static unsafe void AddChar(this ImFontGlyphRangesBuilderPtr target, uint c) =>
PInvoke.ImFontGlyphRangesBuilder_AddChar(target, c);
///
///
/// Add string (each character of the UTF-8 string are added)
///
///
/// C++:
/// imgui.h:3672
/// ,
/// imgui_draw.cpp:5019
///
void AddText(const char* text, const char* text_end = NULL)
///
///
public static unsafe void AddText(this ImFontGlyphRangesBuilderPtr target, ImString text)
{
fixed (byte* text_fixed = text)
{
PInvoke.ImFontGlyphRangesBuilder_AddText(target, text_fixed, text_fixed + text.Length);
}
}
///
///
/// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of
/// ASCII/Latin+Ext
///
///
/// C++:
/// imgui.h:3673
/// ,
/// imgui_draw.cpp:5032
///
void AddRanges(const ImWchar* ranges)
///
///
public static unsafe void AddRanges(this ImFontGlyphRangesBuilderPtr target, ReadOnlySpan ranges)
{
fixed (uint* ranges_fixed = ranges)
{
PInvoke.ImFontGlyphRangesBuilder_AddRanges(target, ranges_fixed);
}
}
///
///
/// Output new ranges
///
///
/// C++:
/// imgui.h:3674
/// ,
/// imgui_draw.cpp:5039
///
void BuildRanges(ImVector<ImWchar>* out_ranges)
///
///
public static unsafe void BuildRanges(this ImFontGlyphRangesBuilderPtr target, out ImVector outRanges)
{
fixed (ImVector* outRanges_fixed = &outRanges)
{
PInvoke.ImFontGlyphRangesBuilder_BuildRanges(target, outRanges_fixed);
}
}
}
}