Gjsify LogoGjsify Logo

Hierarchy

  • Rectangle

Index

Constructors

  • new Rectangle(x: number, y: number, width: number, height: number): Gegl.Rectangle
  • Creates a new rectangle set with the values from x, y, width and height.

    Parameters

    • x: number

      upper left x coordinate

    • y: number

      upper left y coordinate

    • width: number

      width in pixels.

    • height: number

      height in pixels.

    Returns Gegl.Rectangle

Properties

height: number
width: number
x: number
y: number
name: string

Methods

  • Computes the bounding box of the rectangles source1 and source2 and stores the resulting bounding box in destination.

    destination may point to the same object as source1 or source2.

    Parameters

    Returns void

  • Checks if the #GeglRectangle child is fully contained within parent.

    Returns TRUE if the child is fully contained in parent.

    Parameters

    Returns boolean

  • Copies the rectangle information stored in source over the information in destination.

    destination may point to the same object as source.

    Parameters

    Returns void

  • dump(): void
  • equal_coords(x: number, y: number, width: number, height: number): boolean
  • Check if a rectangle is equal to a set of parameters.

    Returns TRUE if rectangle and x,``y width x height are equal.

    Parameters

    • x: number

      X coordinate

    • y: number

      Y coordinate

    • width: number

      width of rectangle

    • height: number

      height of rectangle

    Returns boolean

  • Calculates the intersection of two rectangles. If the rectangles do not intersect, dest's width and height are set to 0 and its x and y values are undefined.

    dest may point to the same object as src1 or src2.

    Returns TRUE if the rectangles intersect.

    Parameters

    Returns boolean

  • is_empty(): boolean
  • Check if a rectangle has zero area.

    Returns TRUE if rectangle height and width are both zero.

    Returns boolean

  • is_infinite_plane(): boolean
  • set(x: number, y: number, width: number, height: number): void
  • Sets the x, y, width and height on rectangle.

    Parameters

    • x: number

      upper left x coordinate

    • y: number

      upper left y coordinate

    • width: number

      width in pixels.

    • height: number

      height in pixels.

    Returns void

  • Computes the bounding box of the area formed by subtracting subtrahend from minuend, and stores the result in destination.

    destination may point to the same object as minuend or subtrahend.

    Returns TRUE if the result is not empty.

    Parameters

    Returns boolean

  • new(x: number, y: number, width: number, height: number): Gegl.Rectangle
  • Creates a new rectangle set with the values from x, y, width and height.

    Parameters

    • x: number

      upper left x coordinate

    • y: number

      upper left y coordinate

    • width: number

      width in pixels.

    • height: number

      height in pixels.

    Returns Gegl.Rectangle

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method