API reference
Preparing search index…

ImGui.DragFloatEx

  • Edit a numeric value by dragging.

    Parameters

    label
    string | Uint8Array

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

    v
    Float32Array

    Mutable widget value in element [0]; edits are written back into the supplied array. Pass Float32Array 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.0

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

    v_max
    number = 0.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.

    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.

    If v_min >= v_max we have no bound

    Source & inheritance

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