1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * file-open.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 __FILE_OPEN_H__ 21 #define __FILE_OPEN_H__ 22 23 24 GimpImage * file_open_image (Gimp *gimp, 25 GimpContext *context, 26 GimpProgress *progress, 27 GFile *file, 28 GFile *entered_file, 29 gboolean as_new, 30 GimpPlugInProcedure *file_proc, 31 GimpRunMode run_mode, 32 GimpPDBStatusType *status, 33 const gchar **mime_type, 34 GError **error); 35 36 GimpImage * file_open_thumbnail (Gimp *gimp, 37 GimpContext *context, 38 GimpProgress *progress, 39 GFile *file, 40 gint size, 41 const gchar **mime_type, 42 gint *image_width, 43 gint *image_height, 44 const Babl **format, 45 gint *num_layers, 46 GError **error); 47 GimpImage * file_open_with_display (Gimp *gimp, 48 GimpContext *context, 49 GimpProgress *progress, 50 GFile *file, 51 gboolean as_new, 52 GObject *screen, 53 gint monitor, 54 GimpPDBStatusType *status, 55 GError **error); 56 57 GimpImage * file_open_with_proc_and_display (Gimp *gimp, 58 GimpContext *context, 59 GimpProgress *progress, 60 GFile *file, 61 GFile *entered_file, 62 gboolean as_new, 63 GimpPlugInProcedure *file_proc, 64 GObject *screen, 65 gint monitor, 66 GimpPDBStatusType *status, 67 GError **error); 68 69 GList * file_open_layers (Gimp *gimp, 70 GimpContext *context, 71 GimpProgress *progress, 72 GimpImage *dest_image, 73 gboolean merge_visible, 74 GFile *file, 75 GimpRunMode run_mode, 76 GimpPlugInProcedure *file_proc, 77 GimpPDBStatusType *status, 78 GError **error); 79 80 gboolean file_open_from_command_line (Gimp *gimp, 81 GFile *file, 82 gboolean as_new, 83 GObject *screen, 84 gint monitor); 85 86 87 #endif /* __FILE_OPEN_H__ */ 88