API reference
Preparing search index…

ImGui.GetIDStr

Hash a string range together with the current ID stack to form a widget identifier.

UTF-8 text. With omitted/null str_id_end, strings are encoded; NUL-terminated nonempty byte views are used directly, other views are copied and NUL-terminated. With an explicit end, pass a Uint8Array: its bytes are read directly and need no NUL terminator.

Exclusive endpoint view, not a length or another string. Explicit begin/end must share one backing buffer and satisfy begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength. An empty end view is valid; neither view needs NUL termination. Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.

ImGuiID hash of the supplied identifier combined with the current ID stack.

  • Hash a string range together with the current ID stack to form a widget identifier.

    Parameters

    str_id_begin
    string | Uint8Array

    UTF-8 text. With omitted/null str_id_end, strings are encoded; NUL-terminated nonempty byte views are used directly, other views are copied and NUL-terminated. With an explicit end, pass a Uint8Array: its bytes are read directly and need no NUL terminator.

    str_id_endOptional
    null

    Exclusive endpoint view, not a length or another string. Explicit begin/end must share one backing buffer and satisfy begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength. An empty end view is valid; neither view needs NUL termination. Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.

    Returns

    number

    ImGuiID hash of the supplied identifier combined with the current ID stack.

    Source & inheritance
  • Hash a string range together with the current ID stack to form a widget identifier.

    Parameters

    str_id_begin
    Uint8Array

    UTF-8 text. With omitted/null str_id_end, strings are encoded; NUL-terminated nonempty byte views are used directly, other views are copied and NUL-terminated. With an explicit end, pass a Uint8Array: its bytes are read directly and need no NUL terminator.

    str_id_end
    Uint8Array

    Exclusive endpoint view, not a length or another string. Explicit begin/end must share one backing buffer and satisfy begin.byteOffset <= end.byteOffset <= begin.byteOffset + begin.byteLength. An empty end view is valid; neither view needs NUL termination. Omitted/null end uses ordinary NUL-terminated UTF-8 conversion.

    Returns

    number

    ImGuiID hash of the supplied identifier combined with the current ID stack.

    Source & inheritance

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