mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
119
Brutal.ImGui/Generated/Functions/ImFontGlyphRangesBuilder.gen.cs
Normal file
119
Brutal.ImGui/Generated/Functions/ImFontGlyphRangesBuilder.gen.cs
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue