mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
204 lines
8.9 KiB
C#
204 lines
8.9 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback data when using SetNextWindowSizeConstraints() (rare/advanced use)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L209">imgui.h:209</see>
|
|
/// <br/><c>struct ImGuiSizeCallbackData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
|
public partial struct ImGuiSizeCallbackData
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in
|
|
/// here (need reinterpret_cast<>).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2737">imgui.h:2737</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public nint UserData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-only. Window position, for reference.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2738">imgui.h:2738</see>
|
|
/// <br/><c>ImVec2 Pos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public float2 Pos;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-only. Current window size.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2739">imgui.h:2739</see>
|
|
/// <br/><c>ImVec2 CurrentSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public float2 CurrentSize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2740">imgui.h:2740</see>
|
|
/// <br/><c>ImVec2 DesiredSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public float2 DesiredSize;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback data when using SetNextWindowSizeConstraints() (rare/advanced use)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L209">imgui.h:209</see>
|
|
/// <br/><c>struct ImGuiSizeCallbackData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in
|
|
/// here (need reinterpret_cast<>).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2737">imgui.h:2737</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint UserData => ref Unsafe.AsRef<nint>(&_ptr->UserData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-only. Window position, for reference.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2738">imgui.h:2738</see>
|
|
/// <br/><c>ImVec2 Pos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float2 Pos => ref Unsafe.AsRef<float2>(&_ptr->Pos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-only. Current window size.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2739">imgui.h:2739</see>
|
|
/// <br/><c>ImVec2 CurrentSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float2 CurrentSize => ref Unsafe.AsRef<float2>(&_ptr->CurrentSize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2740">imgui.h:2740</see>
|
|
/// <br/><c>ImVec2 DesiredSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float2 DesiredSize => ref Unsafe.AsRef<float2>(&_ptr->DesiredSize);
|
|
}
|
|
}
|