File: gimp-gui.h

package info (click to toggle)
gimp 2.2.13-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 94,832 kB
  • ctags: 47,113
  • sloc: ansic: 524,858; xml: 36,798; lisp: 9,870; sh: 9,409; makefile: 7,923; python: 2,674; perl: 2,589; yacc: 520; lex: 334
file content (158 lines) | stat: -rw-r--r-- 8,508 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* The GIMP -- an image manipulation program
 * Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __GIMP_GUI_H__
#define __GIMP_GUI_H__


typedef struct _GimpGui GimpGui;

struct _GimpGui
{
  void           (* threads_enter)      (Gimp          *gimp);
  void           (* threads_leave)      (Gimp          *gimp);

  void           (* set_busy)           (Gimp          *gimp);
  void           (* unset_busy)         (Gimp          *gimp);

  void           (* message)            (Gimp          *gimp,
                                         const gchar   *domain,
                                         const gchar   *message);
  void           (* help)               (Gimp          *gimp,
                                         const gchar   *help_domain,
                                         const gchar   *help_id);

  const gchar  * (* get_program_class)  (Gimp          *gimp);
  gchar        * (* get_display_name)   (Gimp          *gimp,
                                         gint           gdisp_ID,
                                         gint          *monitor_number);
  const gchar  * (* get_theme_dir)      (Gimp          *gimp);

  GimpObject   * (* display_get_by_id)  (Gimp          *gimp,
                                         gint           ID);
  gint           (* display_get_id)     (GimpObject    *display);
  GimpObject   * (* display_create)     (GimpImage     *gimage,
                                         GimpUnit       unit,
                                         gdouble        scale);
  void           (* display_delete)     (GimpObject    *display);
  void           (* displays_reconnect) (Gimp          *gimp,
                                         GimpImage     *old_image,
                                         GimpImage     *new_image);

  void           (* menus_init)         (Gimp          *gimp,
                                         GSList        *plug_in_defs,
                                         const gchar   *std_domain);
  void           (* menus_create)       (Gimp          *gimp,
                                         PlugInProcDef *proc_def,
                                         const gchar   *menu_path);
  void           (* menus_delete)       (Gimp          *gimp,
                                         PlugInProcDef *proc_def);

  GimpProgress * (* progress_new)       (Gimp          *gimp,
                                         gint           display_ID);
  void           (* progress_free)      (Gimp          *gimp,
                                         GimpProgress  *progress);

  gboolean       (* pdb_dialog_new)     (Gimp          *gimp,
                                         GimpContext   *context,
                                         GimpContainer *container,
                                         const gchar   *title,
                                         const gchar   *callback_name,
                                         const gchar   *object_name,
                                         va_list        args);
  gboolean       (* pdb_dialog_set)     (Gimp          *gimp,
                                         GimpContainer *container,
                                         const gchar   *callback_name,
                                         const gchar   *object_name,
                                         va_list        args);
  gboolean       (* pdb_dialog_close)   (Gimp          *gimp,
                                         GimpContainer *container,
                                         const gchar   *callback_name);
  void           (* pdb_dialogs_check)  (Gimp          *gimp);
};


void           gimp_gui_init             (Gimp               *gimp);

void           gimp_threads_enter        (Gimp               *gimp);
void           gimp_threads_leave        (Gimp               *gimp);

GimpObject   * gimp_get_display_by_ID    (Gimp               *gimp,
                                          gint                ID);
gint           gimp_get_display_ID       (Gimp               *gimp,
                                          GimpObject         *display);
GimpObject   * gimp_create_display       (Gimp               *gimp,
                                          GimpImage          *gimage,
                                          GimpUnit            unit,
                                          gdouble             scale);
void           gimp_delete_display       (Gimp               *gimp,
                                          GimpObject         *display);
void           gimp_reconnect_displays   (Gimp               *gimp,
                                          GimpImage          *old_image,
                                          GimpImage          *new_image);

void           gimp_set_busy             (Gimp               *gimp);
void           gimp_set_busy_until_idle  (Gimp               *gimp);
void           gimp_unset_busy           (Gimp               *gimp);

void           gimp_message              (Gimp               *gimp,
                                          const gchar        *domain,
                                          const gchar        *message);
void           gimp_help                 (Gimp               *gimp,
                                          const gchar        *help_domain,
                                          const gchar        *help_id);

void           gimp_menus_init           (Gimp               *gimp,
                                          GSList             *plug_in_defs,
                                          const gchar        *std_plugins_domain);
void           gimp_menus_create_entry   (Gimp               *gimp,
                                          PlugInProcDef      *proc_def,
                                          const gchar        *menu_path);
void           gimp_menus_delete_entry   (Gimp               *gimp,
                                          PlugInProcDef      *proc_def);

GimpProgress * gimp_new_progress         (Gimp               *gimp,
                                          gint                display_ID);
void           gimp_free_progress        (Gimp               *gimp,
                                          GimpProgress       *progress);

const gchar  * gimp_get_program_class    (Gimp               *gimp);
gchar        * gimp_get_display_name     (Gimp               *gimp,
                                          gint                gdisp_ID,
                                          gint               *monitor_number);
const gchar  * gimp_get_theme_dir        (Gimp               *gimp);

gboolean       gimp_pdb_dialog_new       (Gimp               *gimp,
                                          GimpContext        *context,
                                          GimpContainer      *container,
                                          const gchar        *title,
                                          const gchar        *callback_name,
                                          const gchar        *object_name,
                                          ...);
gboolean       gimp_pdb_dialog_set       (Gimp               *gimp,
                                          GimpContainer      *container,
                                          const gchar        *callback_name,
                                          const gchar        *object_name,
                                          ...);
gboolean       gimp_pdb_dialog_close     (Gimp               *gimp,
                                          GimpContainer      *container,
                                          const gchar        *callback_name);
void           gimp_pdb_dialogs_check    (Gimp               *gimp);


#endif  /* __GIMP_GUI_H__ */