2001-05-06 21:51:20 +00:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpoffsetarea.h
|
2003-12-05 15:55:15 +00:00
|
|
|
* Copyright (C) 2001 Sven Neumann <sven@gimp.org>
|
2001-05-06 21:51:20 +00:00
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2001-05-06 21:51:20 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-17 22:28:01 +00:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2003-12-05 15:55:15 +00:00
|
|
|
*
|
2001-05-06 21:51:20 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-17 22:28:01 +00:00
|
|
|
* License along with this library. If not, see
|
2018-07-11 21:27:07 +00:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2001-05-06 21:51:20 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-28 12:30:41 +00:00
|
|
|
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
|
|
|
|
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2001-05-06 21:51:20 +00:00
|
|
|
#ifndef __GIMP_OFFSET_AREA_H__
|
|
|
|
#define __GIMP_OFFSET_AREA_H__
|
|
|
|
|
2001-11-22 23:46:13 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2001-05-06 21:51:20 +00:00
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
2024-08-01 03:55:31 +00:00
|
|
|
#define GIMP_TYPE_OFFSET_AREA (gimp_offset_area_get_type ())
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (GimpOffsetArea, gimp_offset_area, GIMP, OFFSET_AREA, GtkDrawingArea)
|
2001-05-06 21:51:20 +00:00
|
|
|
|
|
|
|
struct _GimpOffsetAreaClass
|
|
|
|
{
|
|
|
|
GtkDrawingAreaClass parent_class;
|
|
|
|
|
2010-12-29 15:49:38 +00:00
|
|
|
void (* offsets_changed) (GimpOffsetArea *offset_area,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y);
|
2004-01-29 00:21:33 +00:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
2018-05-03 10:51:36 +00:00
|
|
|
void (* _gimp_reserved5) (void);
|
|
|
|
void (* _gimp_reserved6) (void);
|
|
|
|
void (* _gimp_reserved7) (void);
|
|
|
|
void (* _gimp_reserved8) (void);
|
2001-05-06 21:51:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GtkWidget * gimp_offset_area_new (gint orig_width,
|
|
|
|
gint orig_height);
|
2004-05-04 23:12:59 +00:00
|
|
|
void gimp_offset_area_set_pixbuf (GimpOffsetArea *offset_area,
|
|
|
|
GdkPixbuf *pixbuf);
|
2001-09-21 10:47:19 +00:00
|
|
|
|
2001-05-06 21:51:20 +00:00
|
|
|
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);
|
|
|
|
|
|
|
|
|
2001-11-22 23:46:13 +00:00
|
|
|
G_END_DECLS
|
2001-05-06 21:51:20 +00:00
|
|
|
|
|
|
|
#endif /* __GIMP_OFFSET_AREA_H__ */
|