API reference
Preparing search index…

ImGui.ImDrawFlags

Const
ImDrawFlags: Readonly<
    {
        Closed: 1;
        None: 0;
        RoundCornersAll: 240;
        RoundCornersBottom: 192;
        RoundCornersBottomLeft: 64;
        RoundCornersBottomRight: 128;
        RoundCornersDefault_: 240;
        RoundCornersLeft: 80;
        RoundCornersMask_: 496;
        RoundCornersNone: 256;
        RoundCornersRight: 160;
        RoundCornersTop: 48;
        RoundCornersTopLeft: 16;
        RoundCornersTopRight: 32;
    },
> = ...

Path closure and rectangle corner selection; rounding requires a radius.

Type declaration

  • ReadonlyClosed: 1

    Connect the last point to the first in ImDrawList_PathStroke/ImDrawList_AddPolyline.

  • ReadonlyNone: 0

    Open paths; rectangles round all corners when given a positive radius.

  • ReadonlyRoundCornersAll: 240

    Round all four corners.

  • ReadonlyRoundCornersBottom: 192

    Round both bottom corners.

  • ReadonlyRoundCornersBottomLeft: 64

    Round the rectangle's bottom-left corner.

  • ReadonlyRoundCornersBottomRight: 128

    Round the rectangle's bottom-right corner.

  • ReadonlyRoundCornersDefault_: 240

    Internal default corner selection: all four corners.

  • ReadonlyRoundCornersLeft: 80

    Round both left corners.

  • ReadonlyRoundCornersMask_: 496

    Internal mask of corner selections, including explicit no-rounding.

  • ReadonlyRoundCornersNone: 256

    Explicitly disable every rounded corner, even with a positive radius.

  • ReadonlyRoundCornersRight: 160

    Round both right corners.

  • ReadonlyRoundCornersTop: 48

    Round both top corners.

  • ReadonlyRoundCornersTopLeft: 16

    Round the rectangle's top-left corner.

  • ReadonlyRoundCornersTopRight: 32

    Round the rectangle's top-right corner.

Source & inheritance

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