| GIMP Widgets Library Reference Manual |
|---|
GimpOffsetArea —
struct 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);
struct GimpOffsetArea {
GtkDrawingArea parent_instance;
gint orig_width;
gint orig_height;
gint width;
gint height;
gint offset_x;
gint offset_y;
gdouble display_ratio_x;
gdouble display_ratio_y;
};
GtkWidget * 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. |
void 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 |
void 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 |
| << GimpMemsizeEntry | GimpPathEditor >> |