Class

Gjsgjs/cairodefaultSurfacePattern

A pattern that uses a surface as its source

Hierarchy (View Summary)

Index

Constructors

Methods

Methods - Inherited from gjs/cairo.default.Pattern

Constructors

Methods

  • Get the current extend mode for this pattern.

    Source: gjs/modules/cairo-surface-pattern.cpp getExtend_func.

    Returns Extend

  • Get the current filter for this pattern.

    Source: gjs/modules/cairo-surface-pattern.cpp getFilter_func.

    Returns Filter

  • Sets the mode to be used for drawing outside the area of this pattern. By default the Extend.NONE mode is used (a transparent pixel) for surface patterns and Extend.PAD for gradients.

    Source: gjs/modules/cairo-surface-pattern.cpp setExtend_func.

    Parameters

    • extend: Extend

      The extend mode

    Returns void

  • Set the filter to be used for resizing when using this pattern.

    Source: gjs/modules/cairo-surface-pattern.cpp setFilter_func.

    Parameters

    • filter: Filter

      The filter

    Returns void

Methods - Inherited from gjs/cairo.default.Pattern

  • Get the pattern's type (Solid, Surface, Linear, Radial, Mesh, …).

    Source: gjs/modules/cairo-pattern.cpp getType_func.

    Returns PatternType