GimpUi.OffsetArea

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.OffsetArea GimpUi.OffsetArea Gtk.Buildable->Gtk.Widget Gtk.DrawingArea Gtk.DrawingArea Gtk.DrawingArea->GimpUi.OffsetArea Gtk.Widget->Gtk.DrawingArea

Subclasses:

None

Methods

Inherited:

Gtk.DrawingArea (1), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (orig_width, orig_height)

set_offsets (offset_x, offset_y)

set_pixbuf (pixbuf)

set_size (width, height)

Virtual Methods

Inherited:

Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Widget (39)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Widget (69), GObject.Object (1)

Name

Short Description

offsets-changed

Fields

Inherited:

Gtk.Widget (69), GObject.Object (1)

Class Details

class GimpUi.OffsetArea(**kwargs)
Bases:

Gtk.DrawingArea

Abstract:

No

Structure:

GimpUi.OffsetAreaClass

Widget to control image offsets.

classmethod new(orig_width, orig_height)
Parameters:
  • orig_width (int) – the original width

  • orig_height (int) – the original height

Returns:

the new GimpUi.OffsetArea widget.

Return type:

Gtk.Widget

Creates a new GimpUi.OffsetArea widget. A GimpUi.OffsetArea can be used when resizing an image or a drawable to allow the user to interactively specify the new offsets.

set_offsets(offset_x, offset_y)
Parameters:
  • offset_x (int) – the X offset

  • offset_y (int) – the Y offset

Sets the offsets of the image/drawable displayed by the GimpUi.OffsetArea. It does not emit the “offsets-changed” signal.

set_pixbuf(pixbuf)
Parameters:

pixbuf (GdkPixbuf.Pixbuf) – a GdkPixbuf.Pixbuf.

Sets the pixbuf which represents the original image/drawable which is being offset.

New in version 2.2.

set_size(width, height)
Parameters:
  • width (int) – the new width

  • height (int) – the new height

Sets the size of the image/drawable displayed by the GimpUi.OffsetArea. If the offsets change as a result of this change, the “offsets-changed” signal is emitted.

Signal Details

GimpUi.OffsetArea.signals.offsets_changed(offset_area, object, p0)
Signal Name:

offsets-changed

Flags:

RUN_FIRST

Parameters: