API reference
Preparing search index…

ImGui.SliderScalar

  • Edit one numeric value of a selected data type with a horizontal slider.

    Parameters

    label
    string | Uint8Array

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

    data_type
    number

    ImGuiDataType describing the native scalar layout at p_data and the associated limit/step addresses.

    p_data
    bigint

    Nonzero bigint address of writable scalar data in data_type layout. Not a TypedArray. Keep the allocation alive for this call. N variants access components consecutive values.

    p_min
    bigint

    Nonzero bigint address of the required bound in data_type layout. Not a TypedArray. Keep the allocation alive for this call.

    p_max
    bigint

    Nonzero bigint address of the required bound in data_type layout. Not a TypedArray. Keep the allocation alive for this call.

    Returns

    boolean

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

    Implied format = null, flags = 0

    Source & inheritance

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