Class: Gegl::TileBackend

Inherits:
TileSource show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

Delete a swap file from disk. This must be used by tile backends which may swap to disk under certain circonstances.

For safety, this function will check that the swap file is in the swap directory before deletion but it won't perform any other check.

Parameters:

  • path (String)

    the path where the gegl tile backend has swapped.

Returns:

  • (nil)

Instance Method Details

#command(command, x, y, z, data) ⇒ GObject

The default tile-backend command handler. Tile backends should forward commands they don't handle themselves to this function.

Parameters:

  • command (Gegl::TileCommand)

    the tile command

  • x (Integer)

    x coordinate

  • y (Integer)

    y coordinate

  • z (Integer)

    tile zoom level

  • data (GObject)

    user data

Returns:

  • (GObject)

    Command result.

#extentGegl::Rectangle

Returns:

  • (Gegl::Rectangle)

#extent=(rectangle) ⇒ nil

Specify the extent of the backend, can be used to pre-prime the backend with the width/height information when constructing proxy GeglBuffers to interact with other systems

Parameters:

  • rectangle (Gegl::Rectangle)

    the new extent

Returns:

  • (nil)

#flush_on_destroyBoolean

Returns:

  • (Boolean)

#flush_on_destroy=(flush_on_destroy) ⇒ Boolean

Parameters:

  • flush_on_destroy (Boolean)

Returns:

  • (Boolean)

    flush-on-destroy

  • (Boolean)

    flush-on-destroy

#flush_on_destroy?Boolean

Returns flush-on-destroy.

Returns:

  • (Boolean)

    flush-on-destroy

#formatGObject

Returns format.

Returns:

  • (GObject)

    format

#format=(format) ⇒ GObject

Parameters:

  • format (GObject)

Returns:

  • (GObject)

    format

  • (GObject)

    format

#peek_storageGegl::TileSource

Gets a pointer to the GeglTileStorage that uses the backend

Returns:

#px_sizeInteger

Returns px-size.

Returns:

  • (Integer)

    px-size

#px_size=(px_size) ⇒ Integer

Parameters:

  • px_size (Integer)

Returns:

  • (Integer)

    px-size

  • (Integer)

    px-size

#tile_heightInteger

Returns tile-height.

Returns:

  • (Integer)

    tile-height

#tile_height=(tile_height) ⇒ Integer

Parameters:

  • tile_height (Integer)

Returns:

  • (Integer)

    tile-height

  • (Integer)

    tile-height

#tile_sizeInteger

Returns tile-size.

Returns:

  • (Integer)

    tile-size

#tile_size=(tile_size) ⇒ Integer

Parameters:

  • tile_size (Integer)

Returns:

  • (Integer)

    tile-size

  • (Integer)

    tile-size

#tile_widthInteger

Returns tile-width.

Returns:

  • (Integer)

    tile-width

#tile_width=(tile_width) ⇒ Integer

Parameters:

  • tile_width (Integer)

Returns:

  • (Integer)

    tile-width

  • (Integer)

    tile-width