2004-09-29 07:23:09 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpscrolledpreview.h
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2004-09-29 07:23:09 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-09-29 07:23:09 +08: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-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2004-09-29 07:23:09 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_SCROLLED_PREVIEW_H__
|
|
|
|
#define __GIMP_SCROLLED_PREVIEW_H__
|
|
|
|
|
|
|
|
#include "gimppreview.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_SCROLLED_PREVIEW (gimp_scrolled_preview_get_type ())
|
|
|
|
#define GIMP_SCROLLED_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_SCROLLED_PREVIEW, GimpScrolledPreview))
|
|
|
|
#define GIMP_SCROLLED_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SCROLLED_PREVIEW, GimpScrolledPreviewClass))
|
|
|
|
#define GIMP_IS_SCROLLED_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_SCROLLED_PREVIEW))
|
|
|
|
#define GIMP_IS_SCROLLED_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_SCROLLED_PREVIEW))
|
|
|
|
#define GIMP_SCROLLED_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_SCROLLED_PREVIEW, GimpScrolledPreviewClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpScrolledPreviewClass GimpScrolledPreviewClass;
|
|
|
|
|
|
|
|
struct _GimpScrolledPreview
|
|
|
|
{
|
|
|
|
GimpPreview parent_instance;
|
|
|
|
|
|
|
|
/*< protected >*/
|
|
|
|
GtkWidget *hscr;
|
|
|
|
GtkWidget *vscr;
|
|
|
|
GtkWidget *nav_icon;
|
|
|
|
GtkWidget *nav_popup;
|
|
|
|
GdkCursor *cursor_move;
|
2008-08-23 05:30:33 +08:00
|
|
|
GdkGC *nav_gc; /* unused */
|
2004-09-29 07:23:09 +08:00
|
|
|
|
|
|
|
/*< private >*/
|
2006-01-25 22:35:56 +08:00
|
|
|
gpointer priv;
|
2004-09-29 07:23:09 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpScrolledPreviewClass
|
|
|
|
{
|
2004-09-29 21:39:23 +08:00
|
|
|
GimpPreviewClass parent_class;
|
2004-10-24 03:59:18 +08:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
2004-09-29 07:23:09 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-09-29 21:39:23 +08:00
|
|
|
GType gimp_scrolled_preview_get_type (void) G_GNUC_CONST;
|
2004-09-29 07:23:09 +08:00
|
|
|
|
2005-09-28 20:39:30 +08:00
|
|
|
void gimp_scrolled_preview_set_position (GimpScrolledPreview *preview,
|
2005-01-06 06:33:44 +08:00
|
|
|
gint x,
|
|
|
|
gint y);
|
2005-09-28 10:46:06 +08:00
|
|
|
void gimp_scrolled_preview_set_policy (GimpScrolledPreview *preview,
|
|
|
|
GtkPolicyType hscrollbar_policy,
|
|
|
|
GtkPolicyType vscrollbar_policy);
|
2004-09-29 07:23:09 +08:00
|
|
|
|
2006-01-25 22:35:56 +08:00
|
|
|
/* only for use from derived widgets */
|
|
|
|
void gimp_scrolled_preview_freeze (GimpScrolledPreview *preview);
|
|
|
|
void gimp_scrolled_preview_thaw (GimpScrolledPreview *preview);
|
|
|
|
|
|
|
|
|
2004-09-29 07:23:09 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_SCROLLED_PREVIEW_H__ */
|