//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Helper to hold and append into a text buffer (~string builder)
///
///
/// C++:
/// imgui.h:215
///
struct ImGuiTextBuffer
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 16)]
public unsafe partial struct ImGuiTextBuffer
{
///
///
/// C++:
/// imgui.h:2838
///
ImVector<char> Buf
///
///
///
///
/// Helper: Growable text buffer for logging/accumulating text
/// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder')
///
///
[FieldOffset(0)]
public ImVector Buf;
[FieldOffset(0)]
public fixed byte EmptyString[1];
}
///
///
/// Helper to hold and append into a text buffer (~string builder)
///
///
/// C++:
/// imgui.h:215
///
struct ImGuiTextBuffer
///
///
///
///
/// Forward declarations: ImGui layer
///
///
public unsafe partial struct ImGuiTextBufferPtr(ImGuiTextBuffer* ptr) : INullable
{
private ImGuiTextBuffer* _ptr = ptr;
public ImGuiTextBuffer* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTextBufferPtr(ImGuiTextBuffer* ptr) => new(ptr);
public static implicit operator ImGuiTextBuffer*(ImGuiTextBufferPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui.h:2838
///
ImVector<char> Buf
///
///
///
///
/// Helper: Growable text buffer for logging/accumulating text
/// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder')
///
///
public ref ImVector Buf => ref Unsafe.AsRef>(&_ptr->Buf);
public Span EmptyString => MemoryMarshal.CreateSpan(ref _ptr->EmptyString[0], 1);
}
}