Gimp.Drawable.offset

### Method

# Gimp Drawableoffset

#### Declaration [src]

    gboolean
    gimp_drawable_offset (
      GimpDrawable* drawable,
      gboolean wrap_around,
      GimpOffsetType fill_type,
      gint offset_x,
      gint offset_y
    )

#### Description [src]

Offset the drawable by the specified amounts in the X and Y directions

This procedure offsets the specified drawable by the amounts specified by ‘offset_x’ and ‘offset_y’. If ‘wrap_around’ is set to TRUE, then portions of the drawable which are offset out of bounds are wrapped around. Alternatively, the undefined regions of the drawable can be filled with transparency or the background color, as specified by the ‘fill-type’ parameter.

#### Parameters

`wrap_around`

  Type: `gboolean`

  Wrap image around or fill vacated regions.

`fill_type`

  Type: `GimpOffsetType`

  Fill vacated regions of drawable with background or transparent.

`offset_x`

  Type: `gint`

  Offset by this amount in X direction.

`offset_y`

  Type: `gint`

  Offset by this amount in Y direction.

#### Return value

Type: `gboolean`

TRUE on success.