API reference
Preparing search index…

ImGui.SetNextWindowSizeConstraints

  • Set next window size limits.

    Parameters

    size_min

    Minimum window dimensions in pixels. Use -1 for both limits on an axis to preserve that dimension.

    size_max

    Maximum window dimensions in pixels; 3.4028234663852886e+38 removes the upper limit. Paired -1 limits preserve an axis.

    custom_callback
    null = null

    Leave null; window size-constraint callbacks are not exposed to JavaScript. Passing a function throws a TypeError.

    custom_callback_data
    null | bigint = null

    Opaque callback user-data address; unused when the callback is null.

    Returns

    void

    use 0.0 or 3.4028234663852886e+38 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).

    The binding supports these numeric limits only. Upstream Dear ImGui also supports size-constraint callbacks, but this API has no JavaScript callback adapter.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0