API reference
Preparing search index…

ImGui.DragIntRange2Ex

  • Edit the lower and upper bounds of an integer range with paired drag controls.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    v_current_min
    Int32Array

    Mutable lower value of the edited range in element [0]. Pass Int32Array storage, not a JS scalar; native access uses the supplied backing memory.

    v_current_max
    Int32Array

    Mutable upper value of the edited range in element [0]. Pass Int32Array storage, not a JS scalar; native access uses the supplied backing memory.

    v_speed
    number = 1.0

    Value change per pixel of mouse dragging, before keyboard modifiers.

    v_min
    number = 0

    Lower end of the value range; for drag widgets v_min >= v_max disables ordinary bounds.

    v_max
    number = 0

    Upper end of the value range; slider flags determine whether manual input is clamped.

    format
    string | Uint8Array

    Native printf-style numeric display format; match it to the value type. Null selects the native default where supported.

    format_max
    null | string | Uint8Array = null

    Display format for the upper range value; null reuses format.

    flags
    number = 0

    ImGuiSliderFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    boolean

    True if the widget changed the supplied value; false if it remained unchanged.

    Source & inheritance

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