gimpplugin-progress.h 2.38 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
Elliot Lee's avatar
Elliot Lee committed
2 3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
4
 * gimpplugin-progress.h
5
 *
6
 * This program is free software: you can redistribute it and/or modify
Elliot Lee's avatar
Elliot Lee committed
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
Elliot Lee's avatar
Elliot Lee committed
9 10 11 12 13 14 15 16
 * (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
17
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
Elliot Lee's avatar
Elliot Lee committed
18
 */
Sven Neumann's avatar
Sven Neumann committed
19

20 21
#ifndef __GIMP_PLUG_IN_PROGRESS_H__
#define __GIMP_PLUG_IN_PROGRESS_H__
Elliot Lee's avatar
Elliot Lee committed
22

23

24 25
gint       gimp_plug_in_progress_attach        (GimpProgress        *progress);
gint       gimp_plug_in_progress_detach        (GimpProgress        *progress);
26

27 28 29 30 31 32 33 34 35 36 37
void       gimp_plug_in_progress_start         (GimpPlugIn          *plug_in,
                                                const gchar         *message,
                                                GimpObject          *display);
void       gimp_plug_in_progress_end           (GimpPlugIn          *plug_in,
                                                GimpPlugInProcFrame *proc_frame);
void       gimp_plug_in_progress_set_text      (GimpPlugIn          *plug_in,
                                                const gchar         *message);
void       gimp_plug_in_progress_set_value     (GimpPlugIn          *plug_in,
                                                gdouble              percentage);
void       gimp_plug_in_progress_pulse         (GimpPlugIn          *plug_in);
guint32    gimp_plug_in_progress_get_window_id (GimpPlugIn          *plug_in);
38

39 40 41 42 43 44
gboolean   gimp_plug_in_progress_install       (GimpPlugIn          *plug_in,
                                                const gchar         *progress_callback);
gboolean   gimp_plug_in_progress_uninstall     (GimpPlugIn          *plug_in,
                                                const gchar         *progress_callback);
gboolean   gimp_plug_in_progress_cancel        (GimpPlugIn          *plug_in,
                                                const gchar         *progress_callback);
45 46


47
#endif /* __GIMP_PLUG_IN_PROGRESS_H__ */