Gjsify LogoGjsify Logo

Hierarchy

  • Region

Index

Constructors

Properties

name: string

Methods

  • destroy(): void
  • empty(): boolean
  • Obtains the area covered by the region as a list of rectangles. The array returned in rectangles must be freed with g_free().

    Parameters

    • rectangles: Gdk.Rectangle[]

      return location for an array of rectangles

    Returns void

  • Sets the area of source1 to the intersection of the areas of source1 and source2. The resulting area is the set of pixels contained in both source1 and source2.

    Parameters

    Returns void

  • offset(dx: number, dy: number): void
  • Moves a region the specified distance.

    Parameters

    • dx: number

      the distance to move the region horizontally

    • dy: number

      the distance to move the region vertically

    Returns void

  • point_in(x: number, y: number): boolean
  • Finds out if a point is in a region.

    Parameters

    • x: number

      the x coordinate of a point

    • y: number

      the y coordinate of a point

    Returns boolean

  • shrink(dx: number, dy: number): void
  • Resizes a region by the specified amount. Positive values shrink the region. Negative values expand it.

    Parameters

    • dx: number

      the number of pixels to shrink the region horizontally

    • dy: number

      the number of pixels to shrink the region vertically

    Returns void

  • Subtracts the area of source2 from the area source1. The resulting area is the set of pixels contained in source1 but not in source2.

    Parameters

    Returns void

  • Sets the area of source1 to the union of the areas of source1 and source2. The resulting area is the set of pixels contained in either source1 or source2.

    Parameters

    Returns void

  • Sets the area of region to the union of the areas of region and rect. The resulting area is the set of pixels contained in either region or rect.

    Parameters

    Returns void

  • Sets the area of source1 to the exclusive-OR of the areas of source1 and source2. The resulting area is the set of pixels contained in one or the other of the two sources but not in both.

    Parameters

    Returns void

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