API reference
Preparing search index…

ImGui.ImDrawList_AddRectEx

  • Append an axis-aligned rectangular outline to the draw list.

    Parameters

    self

    ImDrawList handle on which this method operates.

    p_min

    Top-left corner of the rectangle in absolute screen coordinates.

    p_max

    Bottom-right corner of the rectangle in absolute screen coordinates.

    col
    number

    Packed ImU32 RGBA color; alpha controls opacity.

    rounding
    number = 0.0

    Corner radius in screen pixels; 0 creates square corners. Draw flags select which corners are rounded.

    flags
    number = 0

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

    thickness
    number = 1.0

    Stroke thickness in screen pixels.

    Returns

    void

    a: upper-left, b: lower-right (== upper-left + size)

    Source & inheritance

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