mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
119 lines
4.9 KiB
C#
119 lines
4.9 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
public static partial class ImFontGlyphRangesBuilderExtensions
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3668">imgui.h:3668</see>
|
|
/// <br/><c>inline void Clear()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void Clear(this ImFontGlyphRangesBuilderPtr target) =>
|
|
PInvoke.ImFontGlyphRangesBuilder_Clear(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get bit n in the array
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3669">imgui.h:3669</see>
|
|
/// <br/><c>inline bool GetBit(size_t n) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe bool GetBit(this ImFontGlyphRangesBuilderPtr target, nuint n) =>
|
|
PInvoke.ImFontGlyphRangesBuilder_GetBit(target, n);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set bit n in the array
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3670">imgui.h:3670</see>
|
|
/// <br/><c>inline void SetBit(size_t n)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void SetBit(this ImFontGlyphRangesBuilderPtr target, nuint n) =>
|
|
PInvoke.ImFontGlyphRangesBuilder_SetBit(target, n);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Add character
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3671">imgui.h:3671</see>
|
|
/// <br/><c>inline void AddChar(ImWchar c)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void AddChar(this ImFontGlyphRangesBuilderPtr target, uint c) =>
|
|
PInvoke.ImFontGlyphRangesBuilder_AddChar(target, c);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Add string (each character of the UTF-8 string are added)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3672">imgui.h:3672</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5019">imgui_draw.cpp:5019</see>
|
|
/// <br/><c>void AddText(const char* text, const char* text_end = NULL)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
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);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of
|
|
/// ASCII/Latin+Ext
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3673">imgui.h:3673</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5032">imgui_draw.cpp:5032</see>
|
|
/// <br/><c>void AddRanges(const ImWchar* ranges)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void AddRanges(this ImFontGlyphRangesBuilderPtr target, ReadOnlySpan<uint> ranges)
|
|
{
|
|
fixed (uint* ranges_fixed = ranges)
|
|
{
|
|
PInvoke.ImFontGlyphRangesBuilder_AddRanges(target, ranges_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Output new ranges
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3674">imgui.h:3674</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L5039">imgui_draw.cpp:5039</see>
|
|
/// <br/><c>void BuildRanges(ImVector<ImWchar>* out_ranges)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void BuildRanges(this ImFontGlyphRangesBuilderPtr target, out ImVector<uint> outRanges)
|
|
{
|
|
fixed (ImVector<uint>* outRanges_fixed = &outRanges)
|
|
{
|
|
PInvoke.ImFontGlyphRangesBuilder_BuildRanges(target, outRanges_fixed);
|
|
}
|
|
}
|
|
}
|
|
}
|