GimpOffsetArea 3 LIBGIMPWIDGETS Library GimpOffsetArea Widget to control image offsets. Synopsis GimpOffsetArea; GtkWidget* gimp_offset_area_new (gint orig_width, gint orig_height); void gimp_offset_area_set_size (GimpOffsetArea *offset_area, gint width, gint height); void gimp_offset_area_set_offsets (GimpOffsetArea *offset_area, gint offset_x, gint offset_y); void gimp_offset_area_set_pixbuf (GimpOffsetArea *offset_area, GdkPixbuf *pixbuf); Object Hierarchy GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkDrawingArea +----GimpOffsetArea Implemented Interfaces GimpOffsetArea implements AtkImplementorIface. Signals "offsets-changed" void user_function (GimpOffsetArea *gimpoffsetarea, gint arg1, gint arg2, gpointer user_data) : Run first Description Details <anchor id="GimpOffsetArea-struct" role="struct"/>GimpOffsetArea GimpOffsetAreatypedef struct _GimpOffsetArea GimpOffsetArea; <anchor id="gimp-offset-area-new" role="function"/>gimp_offset_area_new () gimp_offset_area_newGtkWidget* gimp_offset_area_new (gint orig_width, gint orig_height); Creates a new GimpOffsetArea widget. A GimpOffsetArea can be used when resizing an image or a drawable to allow the user to interactively specify the new offsets. orig_width : the original width orig_height : the original height Returns : the new GimpOffsetArea widget. <anchor id="gimp-offset-area-set-size" role="function"/>gimp_offset_area_set_size () gimp_offset_area_set_sizevoid gimp_offset_area_set_size (GimpOffsetArea *offset_area, gint width, gint height); Sets the size of the image/drawable displayed by the GimpOffsetArea. If the offsets change as a result of this change, the offsets_changed signal is emitted. offset_area : a GimpOffsetArea. width : the new width height : the new height <anchor id="gimp-offset-area-set-offsets" role="function"/>gimp_offset_area_set_offsets () gimp_offset_area_set_offsetsvoid gimp_offset_area_set_offsets (GimpOffsetArea *offset_area, gint offset_x, gint offset_y); Sets the offsets of the image/drawable displayed by the GimpOffsetArea. It does not emit the offsets_changed signal. offset_area : a GimpOffsetArea. offset_x : the X offset offset_y : the Y offset <anchor id="gimp-offset-area-set-pixbuf" role="function" condition="since:GIMP 2.2"/>gimp_offset_area_set_pixbuf () gimp_offset_area_set_pixbufvoid gimp_offset_area_set_pixbuf (GimpOffsetArea *offset_area, GdkPixbuf *pixbuf); Sets the pixbuf which represents the original image/drawable which is being offset. offset_area : a GimpOffsetArea. pixbuf : a GdkPixbuf. Since GIMP 2.2 Signal Details <anchor id="GimpOffsetArea-offsets-changed"/>The "offsets-changed" signal GimpOffsetArea::offsets-changedvoid user_function (GimpOffsetArea *gimpoffsetarea, gint arg1, gint arg2, gpointer user_data) : Run first gimpoffsetarea : the object which received the signal. arg1 : arg2 : user_data : user data set when the signal handler was connected.