//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImPlotApi.Internal
{
///
///
/// C++:
/// implot_internal.h:429
///
struct ImPlotAnnotation {
///
///
///
///
/// Interior plot label/annotation
///
///
[StructLayout(LayoutKind.Explicit, Size = 32)]
public partial struct ImPlotAnnotation
{
///
///
/// C++:
/// implot_internal.h:430
///
ImVec2 Pos
///
///
///
///
/// Interior plot label/annotation
///
///
[FieldOffset(0)]
public float2 Pos;
///
///
/// C++:
/// implot_internal.h:431
///
ImVec2 Offset
///
///
///
///
/// Interior plot label/annotation
///
///
[FieldOffset(8)]
public float2 Offset;
///
///
/// C++:
/// implot_internal.h:432
///
ImU32 ColorBg
///
///
///
///
/// Interior plot label/annotation
///
///
[FieldOffset(16)]
public uint ColorBg;
///
///
/// C++:
/// implot_internal.h:433
///
ImU32 ColorFg
///
///
///
///
/// Interior plot label/annotation
///
///
[FieldOffset(20)]
public uint ColorFg;
///
///
/// C++:
/// implot_internal.h:434
///
int TextOffset
///
///
///
///
/// Interior plot label/annotation
///
///
[FieldOffset(24)]
public int TextOffset;
///
///
/// C++:
/// implot_internal.h:435
///
bool Clamp
///
///
///
///
/// Interior plot label/annotation
///
///
[FieldOffset(28)]
public Bool8 Clamp;
}
///
///
/// C++:
/// implot_internal.h:429
///
struct ImPlotAnnotation {
///
///
///
///
/// Interior plot label/annotation
///
///
public unsafe partial struct ImPlotAnnotationPtr(ImPlotAnnotation* ptr) : INullable
{
private ImPlotAnnotation* _ptr = ptr;
public ImPlotAnnotation* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImPlotAnnotationPtr(ImPlotAnnotation* ptr) => new(ptr);
public static implicit operator ImPlotAnnotation*(ImPlotAnnotationPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// implot_internal.h:430
///
ImVec2 Pos
///
///
///
///
/// Interior plot label/annotation
///
///
public ref float2 Pos => ref Unsafe.AsRef(&_ptr->Pos);
///
///
/// C++:
/// implot_internal.h:431
///
ImVec2 Offset
///
///
///
///
/// Interior plot label/annotation
///
///
public ref float2 Offset => ref Unsafe.AsRef(&_ptr->Offset);
///
///
/// C++:
/// implot_internal.h:432
///
ImU32 ColorBg
///
///
///
///
/// Interior plot label/annotation
///
///
public ref uint ColorBg => ref Unsafe.AsRef(&_ptr->ColorBg);
///
///
/// C++:
/// implot_internal.h:433
///
ImU32 ColorFg
///
///
///
///
/// Interior plot label/annotation
///
///
public ref uint ColorFg => ref Unsafe.AsRef(&_ptr->ColorFg);
///
///
/// C++:
/// implot_internal.h:434
///
int TextOffset
///
///
///
///
/// Interior plot label/annotation
///
///
public ref int TextOffset => ref Unsafe.AsRef(&_ptr->TextOffset);
///
///
/// C++:
/// implot_internal.h:435
///
bool Clamp
///
///
///
///
/// Interior plot label/annotation
///
///
public ref bool Clamp => ref Unsafe.AsRef(&_ptr->Clamp);
}
}