brutal/Brutal.ImGui/Generated/PInvoke/SetNextWindowSizeConstraints.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

47 lines
2.2 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// set next window size limits. use 0.0f or FLT_MAX if you don't want limits. Use -1 for both min and
/// max of same axis to preserve current size (which itself is a constraint). Use callback to apply
/// non-trivial programmatic constraints.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L482">imgui.h:482</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8996">imgui.cpp:8996</see>
/// <br/>
/// <c>void SetNextWindowSizeConstraints(const ImVec2&amp; size_min, const ImVec2&amp; size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Window manipulation
/// - Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin).
/// </code>
/// <code>
/// For each axis:
/// - Use 0.0f as min or FLT_MAX as max if you don't want limits, e.g. size_min = (500.0f, 0.0f), size_max = (FLT_MAX, FLT_MAX) sets a minimum width.
/// - Use -1 for both min and max of same axis to preserve current size which itself is a constraint.
/// - See "Demo-&gt;Examples-&gt;Constrained-resizing window" for examples.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void SetNextWindowSizeConstraints(
float2* size_min,
float2* size_max,
nint custom_callback,
void* custom_callback_data
);
}
}
}