//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// A single font glyph (code point + coordinates within in ImFontAtlas + offset)
///
///
/// C++:
/// imgui.h:187
///
struct ImFontGlyph
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 44)]
public partial struct ImFontGlyph
{
///
///
/// Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on
/// little-endian as this is used in loops)
///
///
/// C++:
/// imgui.h:3649
///
unsigned int Colored : 1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(0)]
public uint Colored;
///
///
/// Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering.
///
///
/// C++:
/// imgui.h:3650
///
unsigned int Visible : 1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(0)]
public uint Visible;
///
///
/// Index of source in parent font
///
///
/// C++:
/// imgui.h:3651
///
unsigned int SourceIdx : 4
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(0)]
public uint SourceIdx;
///
///
/// 0x0000..0x10FFFF
///
///
/// C++:
/// imgui.h:3652
///
unsigned int Codepoint : 26
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(0)]
public uint Codepoint;
///
///
/// Horizontal distance to advance cursor/layout position.
///
///
/// C++:
/// imgui.h:3653
///
float AdvanceX
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(4)]
public float AdvanceX;
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(8)]
public float X0;
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0, Y0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(12)]
public float Y0;
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0, Y0, X1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(16)]
public float X1;
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0, Y0, X1, Y1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(20)]
public float Y1;
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(24)]
public float U0;
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0, V0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(28)]
public float V0;
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0, V0, U1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(32)]
public float U1;
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0, V0, U1, V1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(36)]
public float V1;
///
///
/// [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)
///
///
/// C++:
/// imgui.h:3656
///
int PackId
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
[FieldOffset(40)]
public int PackId;
}
///
///
/// A single font glyph (code point + coordinates within in ImFontAtlas + offset)
///
///
/// C++:
/// imgui.h:187
///
struct ImFontGlyph
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
public unsafe partial struct ImFontGlyphPtr(ImFontGlyph* ptr) : INullable
{
private ImFontGlyph* _ptr = ptr;
public ImFontGlyph* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImFontGlyphPtr(ImFontGlyph* ptr) => new(ptr);
public static implicit operator ImFontGlyph*(ImFontGlyphPtr wrapper) => wrapper.Ptr;
///
///
/// Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on
/// little-endian as this is used in loops)
///
///
/// C++:
/// imgui.h:3649
///
unsigned int Colored : 1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref uint Colored => ref Unsafe.AsRef(&_ptr->Colored);
///
///
/// Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering.
///
///
/// C++:
/// imgui.h:3650
///
unsigned int Visible : 1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref uint Visible => ref Unsafe.AsRef(&_ptr->Visible);
///
///
/// Index of source in parent font
///
///
/// C++:
/// imgui.h:3651
///
unsigned int SourceIdx : 4
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref uint SourceIdx => ref Unsafe.AsRef(&_ptr->SourceIdx);
///
///
/// 0x0000..0x10FFFF
///
///
/// C++:
/// imgui.h:3652
///
unsigned int Codepoint : 26
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref uint Codepoint => ref Unsafe.AsRef(&_ptr->Codepoint);
///
///
/// Horizontal distance to advance cursor/layout position.
///
///
/// C++:
/// imgui.h:3653
///
float AdvanceX
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float AdvanceX => ref Unsafe.AsRef(&_ptr->AdvanceX);
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float X0 => ref Unsafe.AsRef(&_ptr->X0);
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0, Y0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float Y0 => ref Unsafe.AsRef(&_ptr->Y0);
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0, Y0, X1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float X1 => ref Unsafe.AsRef(&_ptr->X1);
///
///
/// Glyph corners. Offsets from current cursor/layout position.
///
///
/// C++:
/// imgui.h:3654
///
float X0, Y0, X1, Y1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float Y1 => ref Unsafe.AsRef(&_ptr->Y1);
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float U0 => ref Unsafe.AsRef(&_ptr->U0);
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0, V0
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float V0 => ref Unsafe.AsRef(&_ptr->V0);
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0, V0, U1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float U1 => ref Unsafe.AsRef(&_ptr->U1);
///
///
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
/// GetCustomRect() with PackId.
///
///
/// C++:
/// imgui.h:3655
///
float U0, V0, U1, V1
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref float V1 => ref Unsafe.AsRef(&_ptr->V1);
///
///
/// [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)
///
///
/// C++:
/// imgui.h:3656
///
int PackId
///
///
///
///
/// Hold rendering data for one glyph.
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
///
///
public ref int PackId => ref Unsafe.AsRef(&_ptr->PackId);
}
}