//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Callback data when using SetNextWindowSizeConstraints() (rare/advanced use)
///
///
/// C++:
/// imgui.h:209
///
struct ImGuiSizeCallbackData
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 32)]
public partial struct ImGuiSizeCallbackData
{
///
///
/// Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in
/// here (need reinterpret_cast<>).
///
///
/// C++:
/// imgui.h:2737
///
void* UserData
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
[FieldOffset(0)]
public nint UserData;
///
///
/// Read-only. Window position, for reference.
///
///
/// C++:
/// imgui.h:2738
///
ImVec2 Pos
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
[FieldOffset(8)]
public float2 Pos;
///
///
/// Read-only. Current window size.
///
///
/// C++:
/// imgui.h:2739
///
ImVec2 CurrentSize
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
[FieldOffset(16)]
public float2 CurrentSize;
///
///
/// Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing.
///
///
/// C++:
/// imgui.h:2740
///
ImVec2 DesiredSize
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
[FieldOffset(24)]
public float2 DesiredSize;
}
///
///
/// Callback data when using SetNextWindowSizeConstraints() (rare/advanced use)
///
///
/// C++:
/// imgui.h:209
///
struct ImGuiSizeCallbackData
///
///
///
///
/// Forward declarations: ImGui layer
///
///
public unsafe partial struct ImGuiSizeCallbackDataPtr(ImGuiSizeCallbackData* ptr) : INullable
{
private ImGuiSizeCallbackData* _ptr = ptr;
public ImGuiSizeCallbackData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiSizeCallbackDataPtr(ImGuiSizeCallbackData* ptr) => new(ptr);
public static implicit operator ImGuiSizeCallbackData*(ImGuiSizeCallbackDataPtr wrapper) => wrapper.Ptr;
///
///
/// Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in
/// here (need reinterpret_cast<>).
///
///
/// C++:
/// imgui.h:2737
///
void* UserData
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
public ref nint UserData => ref Unsafe.AsRef(&_ptr->UserData);
///
///
/// Read-only. Window position, for reference.
///
///
/// C++:
/// imgui.h:2738
///
ImVec2 Pos
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
public ref float2 Pos => ref Unsafe.AsRef(&_ptr->Pos);
///
///
/// Read-only. Current window size.
///
///
/// C++:
/// imgui.h:2739
///
ImVec2 CurrentSize
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
public ref float2 CurrentSize => ref Unsafe.AsRef(&_ptr->CurrentSize);
///
///
/// Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing.
///
///
/// C++:
/// imgui.h:2740
///
ImVec2 DesiredSize
///
///
///
///
/// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().
/// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough.
///
///
public ref float2 DesiredSize => ref Unsafe.AsRef(&_ptr->DesiredSize);
}
}