home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Linux / gimp-2.2.0.tar.gz / gimp-2.2.0.tar / gimp-2.2.0 / libgimpwidgets / gimpscrolledpreview.h < prev    next >
C/C++ Source or Header  |  2004-10-23  |  3KB  |  80 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpscrolledpreview.h
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #ifndef __GIMP_SCROLLED_PREVIEW_H__
  23. #define __GIMP_SCROLLED_PREVIEW_H__
  24.  
  25. #include "gimppreview.h"
  26.  
  27. G_BEGIN_DECLS
  28.  
  29.  
  30. /* For information look into the C source or the html documentation */
  31.  
  32.  
  33. #define GIMP_TYPE_SCROLLED_PREVIEW            (gimp_scrolled_preview_get_type ())
  34. #define GIMP_SCROLLED_PREVIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_SCROLLED_PREVIEW, GimpScrolledPreview))
  35. #define GIMP_SCROLLED_PREVIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_SCROLLED_PREVIEW, GimpScrolledPreviewClass))
  36. #define GIMP_IS_SCROLLED_PREVIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_SCROLLED_PREVIEW))
  37. #define GIMP_IS_SCROLLED_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_SCROLLED_PREVIEW))
  38. #define GIMP_SCROLLED_PREVIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_SCROLLED_PREVIEW, GimpScrolledPreviewClass))
  39.  
  40.  
  41. typedef struct _GimpScrolledPreviewClass  GimpScrolledPreviewClass;
  42.  
  43. struct _GimpScrolledPreview
  44. {
  45.   GimpPreview   parent_instance;
  46.  
  47.   /*< protected >*/
  48.   GtkWidget    *hscr;
  49.   GtkWidget    *vscr;
  50.   GtkWidget    *nav_icon;
  51.   GtkWidget    *nav_popup;
  52.   GdkCursor    *cursor_move;
  53.   GdkGC        *nav_gc;
  54.  
  55.   /*< private >*/
  56.   gint          drag_x, drag_y;
  57.   gint          drag_xoff, drag_yoff;
  58.  
  59.   gboolean      in_drag;
  60. };
  61.  
  62. struct _GimpScrolledPreviewClass
  63. {
  64.   GimpPreviewClass  parent_class;
  65.  
  66.   /* Padding for future expansion */
  67.   void (* _gimp_reserved1) (void);
  68.   void (* _gimp_reserved2) (void);
  69.   void (* _gimp_reserved3) (void);
  70.   void (* _gimp_reserved4) (void);
  71. };
  72.  
  73.  
  74. GType  gimp_scrolled_preview_get_type  (void) G_GNUC_CONST;
  75.  
  76.  
  77. G_END_DECLS
  78.  
  79. #endif /* __GIMP_SCROLLED_PREVIEW_H__ */
  80.