jetlag2d
    Preparing search index...

    Class FilledRoundedBox

    FilledRoundedBox describes any object whose visual representation is a filled box with rounded corners. These are particularly useful as the background for text messages.

    Index
    • Build a FilledRoundedBox

      Parameters

      • cfg: {
            fillColor: string;
            height: number;
            lineColor?: string;
            lineWidth?: number;
            offset?: JLOffset;
            radius: number;
            width: number;
            z?: 0 | 1 | 2 | 4 | -4 | 3 | -3 | -2 | -1;
        }
        • fillColor: string

          Color to fill the box

        • height: number

          Height of the box

        • OptionallineColor?: string

          Optional color for the border

        • OptionallineWidth?: number

          Optional width of the border

        • Optionaloffset?: JLOffset

          An offset between the component's center and its RigidBody's center (optional)

        • radius: number

          Radius of the corners

        • width: number

          Width of the box

        • Optionalz?: 0 | 1 | 2 | 4 | -4 | 3 | -3 | -2 | -1

          An optional z index in the range [-4,4]

      Returns FilledRoundedBox

    actor?: Actor<unknown>

    The Actor to which this FilledSprite is attached

    fillColor: string

    Fill color

    height: number

    Height of the box

    offset: JLOffset

    An offset between the FilledRoundedBox's center and the RigidBody's center

    radius: number

    Radius of the corners

    width: number

    Width of the box

    z: -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4

    Z index of the box