//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
///
///
/// C++:
/// imgui.h:184
///
struct ImFontAtlasRect
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 24)]
public partial struct ImFontAtlasRect
{
///
///
/// Position (in current texture)
///
///
/// C++:
/// imgui.h:3687
///
unsigned short x
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
[FieldOffset(0)]
public ushort x;
///
///
/// Position (in current texture)
///
///
/// C++:
/// imgui.h:3687
///
unsigned short x, y
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
[FieldOffset(2)]
public ushort y;
///
///
/// Size
///
///
/// C++:
/// imgui.h:3688
///
unsigned short w
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
[FieldOffset(4)]
public ushort w;
///
///
/// Size
///
///
/// C++:
/// imgui.h:3688
///
unsigned short w, h
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
[FieldOffset(6)]
public ushort h;
///
///
/// UV coordinates (in current texture)
///
///
/// C++:
/// imgui.h:3689
///
ImVec2 uv0
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
[FieldOffset(8)]
public float2 uv0;
///
///
/// UV coordinates (in current texture)
///
///
/// C++:
/// imgui.h:3689
///
ImVec2 uv0, uv1
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
[FieldOffset(16)]
public float2 uv1;
}
///
///
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
///
///
/// C++:
/// imgui.h:184
///
struct ImFontAtlasRect
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
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;
///
///
/// Position (in current texture)
///
///
/// C++:
/// imgui.h:3687
///
unsigned short x
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
public ref ushort x => ref Unsafe.AsRef(&_ptr->x);
///
///
/// Position (in current texture)
///
///
/// C++:
/// imgui.h:3687
///
unsigned short x, y
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
public ref ushort y => ref Unsafe.AsRef(&_ptr->y);
///
///
/// Size
///
///
/// C++:
/// imgui.h:3688
///
unsigned short w
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
public ref ushort w => ref Unsafe.AsRef(&_ptr->w);
///
///
/// Size
///
///
/// C++:
/// imgui.h:3688
///
unsigned short w, h
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
public ref ushort h => ref Unsafe.AsRef(&_ptr->h);
///
///
/// UV coordinates (in current texture)
///
///
/// C++:
/// imgui.h:3689
///
ImVec2 uv0
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
public ref float2 uv0 => ref Unsafe.AsRef(&_ptr->uv0);
///
///
/// UV coordinates (in current texture)
///
///
/// C++:
/// imgui.h:3689
///
ImVec2 uv0, uv1
///
///
///
///
/// 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->TexRef
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
///
///
public ref float2 uv1 => ref Unsafe.AsRef(&_ptr->uv1);
}
}