brutal/Brutal.ImGui/Generated/Structs/ImFontAtlasRect.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

288 lines
12 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>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L184">imgui.h:184</see>
/// <br/><c>struct ImFontAtlasRect</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImDrawList, ImFontAtlas layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
public partial struct ImFontAtlasRect
{
/// <summary>
/// <para>
/// Position (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
/// <br/><c>unsigned short x</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
[FieldOffset(0)]
public ushort x;
/// <summary>
/// <para>
/// Position (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
/// <br/><c>unsigned short x, y</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
[FieldOffset(2)]
public ushort y;
/// <summary>
/// <para>
/// Size
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
/// <br/><c>unsigned short w</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
[FieldOffset(4)]
public ushort w;
/// <summary>
/// <para>
/// Size
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
/// <br/><c>unsigned short w, h</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
[FieldOffset(6)]
public ushort h;
/// <summary>
/// <para>
/// UV coordinates (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
/// <br/><c>ImVec2 uv0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
[FieldOffset(8)]
public float2 uv0;
/// <summary>
/// <para>
/// UV coordinates (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
/// <br/><c>ImVec2 uv0, uv1</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
[FieldOffset(16)]
public float2 uv1;
}
/// <summary>
/// <para>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L184">imgui.h:184</see>
/// <br/><c>struct ImFontAtlasRect</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImDrawList, ImFontAtlas layer
/// </para>
/// </remarks>
public unsafe partial struct ImFontAtlasRectPtr(ImFontAtlasRect* ptr) : INullable
{
private ImFontAtlasRect* _ptr = ptr;
public ImFontAtlasRect* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImFontAtlasRectPtr(ImFontAtlasRect* ptr) => new(ptr);
public static implicit operator ImFontAtlasRect*(ImFontAtlasRectPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// Position (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
/// <br/><c>unsigned short x</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
public ref ushort x => ref Unsafe.AsRef<ushort>(&_ptr->x);
/// <summary>
/// <para>
/// Position (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
/// <br/><c>unsigned short x, y</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
public ref ushort y => ref Unsafe.AsRef<ushort>(&_ptr->y);
/// <summary>
/// <para>
/// Size
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
/// <br/><c>unsigned short w</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
public ref ushort w => ref Unsafe.AsRef<ushort>(&_ptr->w);
/// <summary>
/// <para>
/// Size
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
/// <br/><c>unsigned short w, h</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
public ref ushort h => ref Unsafe.AsRef<ushort>(&_ptr->h);
/// <summary>
/// <para>
/// UV coordinates (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
/// <br/><c>ImVec2 uv0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
public ref float2 uv0 => ref Unsafe.AsRef<float2>(&_ptr->uv0);
/// <summary>
/// <para>
/// UV coordinates (in current texture)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
/// <br/><c>ImVec2 uv0, uv1</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
/// Those values may not be cached/stored as they are only valid for the current value of atlas-&gt;TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
/// </code>
/// </remarks>
public ref float2 uv1 => ref Unsafe.AsRef<float2>(&_ptr->uv1);
}
}