1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * gimpplugin-progress.h
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program 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
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef __GIMP_PLUG_IN_PROGRESS_H__
21 #define __GIMP_PLUG_IN_PROGRESS_H__
22 
23 
24 gint       gimp_plug_in_progress_attach        (GimpProgress        *progress);
25 gint       gimp_plug_in_progress_detach        (GimpProgress        *progress);
26 
27 void       gimp_plug_in_progress_start         (GimpPlugIn          *plug_in,
28                                                 const gchar         *message,
29                                                 GimpObject          *display);
30 void       gimp_plug_in_progress_end           (GimpPlugIn          *plug_in,
31                                                 GimpPlugInProcFrame *proc_frame);
32 void       gimp_plug_in_progress_set_text      (GimpPlugIn          *plug_in,
33                                                 const gchar         *message);
34 void       gimp_plug_in_progress_set_value     (GimpPlugIn          *plug_in,
35                                                 gdouble              percentage);
36 void       gimp_plug_in_progress_pulse         (GimpPlugIn          *plug_in);
37 guint32    gimp_plug_in_progress_get_window_id (GimpPlugIn          *plug_in);
38 
39 gboolean   gimp_plug_in_progress_install       (GimpPlugIn          *plug_in,
40                                                 const gchar         *progress_callback);
41 gboolean   gimp_plug_in_progress_uninstall     (GimpPlugIn          *plug_in,
42                                                 const gchar         *progress_callback);
43 gboolean   gimp_plug_in_progress_cancel        (GimpPlugIn          *plug_in,
44                                                 const gchar         *progress_callback);
45 
46 
47 #endif /* __GIMP_PLUG_IN_PROGRESS_H__ */
48