home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimpdialog.h.z / gimpdialog.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  2.9 KB  |  93 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * gimpdialog.h
  5.  * Copyright (C) 2000 Michael Natterer <mitch@gimp.org>
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
  15.  * Library General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the
  19.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA.
  21.  */
  22.  
  23. #ifndef __GIMP_DIALOG_H__
  24. #define __GIMP_DIALOG_H__
  25.  
  26. #include <libgimp/gimphelpui.h>
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif /* __cplusplus */
  31.  
  32. /* For information look into the C source or the html documentation */
  33.  
  34.  
  35. GtkWidget * gimp_dialog_new                 (const gchar        *title,
  36.                          const gchar        *wmclass_name,
  37.                          GimpHelpFunc        help_func,
  38.                          const gchar        *help_data,
  39.                          GtkWindowPosition   position,
  40.                          gint                allow_shrink,
  41.                          gint                allow_grow,
  42.                          gint                auto_shrink,
  43.  
  44.                          /* specify action area buttons
  45.                           * as va_list:
  46.                           *  const gchar    *label,
  47.                           *  GtkSignalFunc   callback,
  48.                           *  gpointer        data,
  49.                           *  GtkObject      *slot_object,
  50.                           *  GtkWidget     **widget_ptr,
  51.                           *  gboolean        default_action,
  52.                           *  gboolean        connect_delete,
  53.                           */
  54.  
  55.                          ...);
  56.  
  57. GtkWidget * gimp_dialog_newv                (const gchar        *title,
  58.                          const gchar        *wmclass_name,
  59.                          GimpHelpFunc        help_func,
  60.                          const gchar        *help_data,
  61.                          GtkWindowPosition   position,
  62.                          gint                allow_shrink,
  63.                          gint                allow_grow,
  64.                          gint                auto_shrink,
  65.                          va_list             args);
  66.  
  67. void        gimp_dialog_set_icon            (GtkWindow          *dialog);
  68.  
  69. void        gimp_dialog_create_action_area  (GtkDialog          *dialog,
  70.  
  71.                          /* specify action area buttons
  72.                           * as va_list:
  73.                           *  const gchar    *label,
  74.                           *  GtkSignalFunc   callback,
  75.                           *  gpointer        data,
  76.                           *  GtkObject      *slot_object,
  77.                           *  GtkWidget     **widget_ptr,
  78.                           *  gboolean        default_action,
  79.                           *  gboolean        connect_delete,
  80.                           */
  81.  
  82.                          ...);
  83.  
  84. void        gimp_dialog_create_action_areav (GtkDialog          *dialog,
  85.                          va_list             args);
  86.  
  87.  
  88. #ifdef __cplusplus
  89. }
  90. #endif /* __cplusplus */
  91.  
  92. #endif /* __GIMP_DIALOG_H__ */
  93.