//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Style variable information (e.g. to access style variables from an enum)
///
///
/// C++:
/// imgui_internal.h:177
///
struct ImGuiStyleVarInfo
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 4)]
public partial struct ImGuiStyleVarInfo
{
///
///
/// 1+
///
///
/// C++:
/// imgui_internal.h:896
///
ImU32 Count : 8
///
///
[FieldOffset(0)]
public uint Count;
///
///
/// C++:
/// imgui_internal.h:897
///
ImGuiDataType DataType : 8
///
///
[FieldOffset(1)]
public ImGuiDataType DataType;
///
///
/// Offset in parent structure
///
///
/// C++:
/// imgui_internal.h:898
///
ImU32 Offset : 16
///
///
[FieldOffset(2)]
public uint Offset;
}
///
///
/// Style variable information (e.g. to access style variables from an enum)
///
///
/// C++:
/// imgui_internal.h:177
///
struct ImGuiStyleVarInfo
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiStyleVarInfoPtr(ImGuiStyleVarInfo* ptr) : INullable
{
private ImGuiStyleVarInfo* _ptr = ptr;
public ImGuiStyleVarInfo* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiStyleVarInfoPtr(ImGuiStyleVarInfo* ptr) => new(ptr);
public static implicit operator ImGuiStyleVarInfo*(ImGuiStyleVarInfoPtr wrapper) => wrapper.Ptr;
///
///
/// 1+
///
///
/// C++:
/// imgui_internal.h:896
///
ImU32 Count : 8
///
///
public ref uint Count => ref Unsafe.AsRef(&_ptr->Count);
///
///
/// C++:
/// imgui_internal.h:897
///
ImGuiDataType DataType : 8
///
///
public ref ImGuiDataType DataType => ref Unsafe.AsRef(&_ptr->DataType);
///
///
/// Offset in parent structure
///
///
/// C++:
/// imgui_internal.h:898
///
ImU32 Offset : 16
///
///
public ref uint Offset => ref Unsafe.AsRef(&_ptr->Offset);
}
}