mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
91 lines
3.4 KiB
C#
91 lines
3.4 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper to build glyph ranges from text/string data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L188">imgui.h:188</see>
|
|
/// <br/><c>struct ImFontGlyphRangesBuilder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
|
public partial struct ImFontGlyphRangesBuilder
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Store 1-bit per Unicode code point (0=unused, 1=used)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3665">imgui.h:3665</see>
|
|
/// <br/><c>ImVector<ImU32> UsedChars</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges().
|
|
/// This is essentially a tightly packed of vector of 64k booleans = 8KB storage.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImVector<uint> UsedChars;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helper to build glyph ranges from text/string data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L188">imgui.h:188</see>
|
|
/// <br/><c>struct ImFontGlyphRangesBuilder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* ptr) : INullable
|
|
{
|
|
private ImFontGlyphRangesBuilder* _ptr = ptr;
|
|
public ImFontGlyphRangesBuilder* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImFontGlyphRangesBuilder*(ImFontGlyphRangesBuilderPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Store 1-bit per Unicode code point (0=unused, 1=used)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3665">imgui.h:3665</see>
|
|
/// <br/><c>ImVector<ImU32> UsedChars</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges().
|
|
/// This is essentially a tightly packed of vector of 64k booleans = 8KB storage.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<uint> UsedChars => ref Unsafe.AsRef<ImVector<uint>>(&_ptr->UsedChars);
|
|
}
|
|
}
|