// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; namespace Brutal.ImGuiApi.Internal { /// /// /// Maintain a line index for a text buffer. /// /// /// C++: /// imgui_internal.h:139 ///
struct ImGuiTextIndex ///
///
/// /// /// Utilities /// (other types which are not forwarded declared are: ImBitArray<>, ImSpan<>, ImSpanAllocator<>, ImStableVector<>, ImPool<>, ImChunkStream<>) /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] public partial struct ImGuiTextIndex { /// /// /// C++: /// imgui_internal.h:802 ///
ImVector<int> LineOffsets ///
///
/// /// /// Helper: ImGuiTextIndex /// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. /// /// [FieldOffset(0)] public ImVector LineOffsets; /// /// /// Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) /// /// /// C++: /// imgui_internal.h:803 ///
int EndOffset = 0 ///
///
/// /// /// Helper: ImGuiTextIndex /// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. /// /// [FieldOffset(16)] public int EndOffset; } /// /// /// Maintain a line index for a text buffer. /// /// /// C++: /// imgui_internal.h:139 ///
struct ImGuiTextIndex ///
///
/// /// /// Utilities /// (other types which are not forwarded declared are: ImBitArray<>, ImSpan<>, ImSpanAllocator<>, ImStableVector<>, ImPool<>, ImChunkStream<>) /// /// public unsafe partial struct ImGuiTextIndexPtr(ImGuiTextIndex* ptr) : INullable { private ImGuiTextIndex* _ptr = ptr; public ImGuiTextIndex* Ptr => _ptr; public bool IsNull() => _ptr is null; public static implicit operator ImGuiTextIndexPtr(ImGuiTextIndex* ptr) => new(ptr); public static implicit operator ImGuiTextIndex*(ImGuiTextIndexPtr wrapper) => wrapper.Ptr; /// /// /// C++: /// imgui_internal.h:802 ///
ImVector<int> LineOffsets ///
///
/// /// /// Helper: ImGuiTextIndex /// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. /// /// public ref ImVector LineOffsets => ref Unsafe.AsRef>(&_ptr->LineOffsets); /// /// /// Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) /// /// /// C++: /// imgui_internal.h:803 ///
int EndOffset = 0 ///
///
/// /// /// Helper: ImGuiTextIndex /// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. /// /// public ref int EndOffset => ref Unsafe.AsRef(&_ptr->EndOffset); } }