gameforge - v0.1.12
    Preparing search index...

    Class RoundedRectangle

    The Rounded Rectangle object is an area that has nice rounded corners, as indicated by its top-left corner point (x, y) and by its width and its height and its radius.

    PIXI

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • Optionalx: number

        The X coordinate of the upper-left corner of the rounded rectangle

      • Optionaly: number

        The Y coordinate of the upper-left corner of the rounded rectangle

      • Optionalwidth: number

        The overall width of this rounded rectangle

      • Optionalheight: number

        The overall height of this rounded rectangle

      • Optionalradius: number

        Controls the radius of the rounded corners

      Returns RoundedRectangle

    Properties

    height: number
    0
    
    radius: number
    20
    
    type: RREC

    The type of the object, mainly used to avoid instanceof checks

    PIXI.SHAPES.RREC
    

    PIXI.SHAPES

    width: number
    0
    
    x: number
    0
    
    y: number
    0
    

    Methods

    • Creates a clone of this Rounded Rectangle.

      Returns RoundedRectangle

      • A copy of the rounded rectangle.
    • Checks whether the x and y coordinates given are contained within this Rounded Rectangle

      Parameters

      • x: number

        The X coordinate of the point to test.

      • y: number

        The Y coordinate of the point to test.

      Returns boolean

      • Whether the x/y coordinates are within this Rounded Rectangle.