//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Stacked color modifier, backup of modified data so we can restore it
///
///
/// C++:
/// imgui_internal.h:150
///
struct ImGuiColorMod
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 20)]
public partial struct ImGuiColorMod
{
///
///
/// C++:
/// imgui_internal.h:905
///
ImGuiCol Col
///
///
///
///
/// Stacked color modifier, backup of modified data so we can restore it
///
///
[FieldOffset(0)]
public ImGuiCol Col;
///
///
/// C++:
/// imgui_internal.h:906
///
ImVec4 BackupValue
///
///
///
///
/// Stacked color modifier, backup of modified data so we can restore it
///
///
[FieldOffset(4)]
public float4 BackupValue;
}
///
///
/// Stacked color modifier, backup of modified data so we can restore it
///
///
/// C++:
/// imgui_internal.h:150
///
struct ImGuiColorMod
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiColorModPtr(ImGuiColorMod* ptr) : INullable
{
private ImGuiColorMod* _ptr = ptr;
public ImGuiColorMod* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiColorModPtr(ImGuiColorMod* ptr) => new(ptr);
public static implicit operator ImGuiColorMod*(ImGuiColorModPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:905
///
ImGuiCol Col
///
///
///
///
/// Stacked color modifier, backup of modified data so we can restore it
///
///
public ref ImGuiCol Col => ref Unsafe.AsRef(&_ptr->Col);
///
///
/// C++:
/// imgui_internal.h:906
///
ImVec4 BackupValue
///
///
///
///
/// Stacked color modifier, backup of modified data so we can restore it
///
///
public ref float4 BackupValue => ref Unsafe.AsRef(&_ptr->BackupValue);
}
}