Class: Gegl::TileHandler

Inherits:
TileSource show all
Defined in:
(unknown)

Direct Known Subclasses

Buffer

Instance Method Summary collapse

Instance Method Details

#create_tile(x, y, z) ⇒ Gegl::Tile

Create a new tile associated with this tile handler.

Parameters:

  • x (Integer)

    The tile space x coordinate for the tile

  • y (Integer)

    The tile space y coordinate for the tile

  • z (Integer)

    The tile space z coordinate for the tile

Returns:

  • (Gegl::Tile)

    the new tile

#damage_rect(rect) ⇒ nil

Parameters:

  • rect (Gegl::Rectangle)

Returns:

  • (nil)

#damage_tile(x, y, z, damage) ⇒ nil

Parameters:

  • x (Integer)
  • y (Integer)
  • z (Integer)
  • damage (Integer)

Returns:

  • (nil)

#dup_tile(tile, x, y, z) ⇒ Gegl::Tile

Create a duplicate of tile, associated with this tile handler.

Parameters:

  • tile (Gegl::Tile)

    the Gegl::Tile to copy

  • x (Integer)

    The tile space x coordinate for the tile

  • y (Integer)

    The tile space y coordinate for the tile

  • z (Integer)

    The tile space z coordinate for the tile

Returns:

  • (Gegl::Tile)

    the new tile

#get_source_tile(x, y, z, preserve_data) ⇒ Gegl::Tile

Fetches the tile at the given coordinates from handler source. If the tile doesn't exist, or if handler doesn't have a source, creates a new tile associated with this tile handler.

If preserve_data is FALSE, the tile contents are unspecified.

Parameters:

  • x (Integer)

    The tile space x coordinate for the tile

  • y (Integer)

    The tile space y coordinate for the tile

  • z (Integer)

    The tile space z coordinate for the tile

  • preserve_data (Boolean)

    whether existing tile data should be preserved

Returns:

  • (Gegl::Tile)

    the tile

#get_tile(x, y, z, preserve_data) ⇒ Gegl::Tile

Fetches the tile at the given coordinates from handler. If the tile doesn't exist, creates a new tile associated with this tile handler.

If preserve_data is FALSE, the tile contents are unspecified.

Parameters:

  • x (Integer)

    The tile space x coordinate for the tile

  • y (Integer)

    The tile space y coordinate for the tile

  • z (Integer)

    The tile space z coordinate for the tile

  • preserve_data (Boolean)

    whether existing tile data should be preserved

Returns:

  • (Gegl::Tile)

    the tile

#locknil

Returns:

  • (nil)

#sourceGObject::Object

Returns source.

Returns:

  • (GObject::Object)

    source

#source=(source) ⇒ GObject::Object

Parameters:

  • source (GObject::Object)

Returns:

  • (GObject::Object)

    source

  • (GObject::Object)

    source

#unlocknil

Returns:

  • (nil)