Gjsify LogoGjsify Logo

#GooCairoPoints represents an array of points.

record

Hierarchy

  • CanvasPoints

Index

Constructors

  • Creates a new #GooCanvasPoints struct with space for the given number of points. It should be freed with goo_canvas_points_unref().

    Parameters

    • num_points: number

      the number of points to create space for.

    Returns GooCanvas.CanvasPoints

Properties

coords: number

the coordinates of the points, in pairs.

field
num_points: number

the number of points.

field
ref_count: number

the reference count of the struct.

field
name: string

Methods

  • get_point(idx: number): [number, number]
  • Gets the coordinates of a point in the #GooCanvasPoints struct.

    Parameters

    • idx: number

      index of point to get.

    Returns [number, number]

  • set_point(idx: number, x: number, y: number): void
  • Sets the coordinates of a point in the #GooCanvasPoints struct.

    Parameters

    • idx: number

      index of point to set.

    • x: number

      x value to set point coordinate to.

    • y: number

      y value to set point coordinate to.

    Returns void

  • unref(): void
  • Decrements the reference count of the given #GooCanvasPoints struct, freeing it if the reference count falls to zero.

    Returns void

  • Creates a new #GooCanvasPoints struct with space for the given number of points. It should be freed with goo_canvas_points_unref().

    Parameters

    • num_points: number

      the number of points to create space for.

    Returns GooCanvas.CanvasPoints

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