Gjsify LogoGjsify Logo

#GooCanvasLineDash specifies a dash pattern to be used when drawing items.

record

Hierarchy

  • CanvasLineDash

Index

Constructors

Properties

dashOffset: number

the start offset into the dash pattern.

field
dashes: number

the sizes of each dash and gap.

field
numDashes: number

the number of dashes and gaps between them.

field
refCount: number

the reference count of the struct.

field
name: string

Methods

  • setOffset(dashOffset: number): void
  • Sets the start offset into the dash pattern.

    Parameters

    • dashOffset: number

      the start offset into the dash pattern.

    Returns void

  • unref(): void
  • Decrements the reference count of the dash pattern. If it falls to 0 it is freed.

    Returns void

  • Creates a new dash pattern. Takes ownership of the dashes vector.

    Parameters

    • dashes: number[]

      a g_new-allocated vector of doubles, the length of each dash and gap.

    Returns GooCanvas.CanvasLineDash

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