1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <https://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __GIMP_IMAGE_WINDOW_H__ 19 #define __GIMP_IMAGE_WINDOW_H__ 20 21 22 #include "widgets/gimpwindow.h" 23 24 25 #define GIMP_TYPE_IMAGE_WINDOW (gimp_image_window_get_type ()) 26 #define GIMP_IMAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_IMAGE_WINDOW, GimpImageWindow)) 27 #define GIMP_IMAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_IMAGE_WINDOW, GimpImageWindowClass)) 28 #define GIMP_IS_IMAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_IMAGE_WINDOW)) 29 #define GIMP_IS_IMAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_IMAGE_WINDOW)) 30 #define GIMP_IMAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_IMAGE_WINDOW, GimpImageWindowClass)) 31 32 33 typedef struct _GimpImageWindowClass GimpImageWindowClass; 34 35 struct _GimpImageWindow 36 { 37 GimpWindow parent_instance; 38 }; 39 40 struct _GimpImageWindowClass 41 { 42 GimpWindowClass parent_class; 43 }; 44 45 46 GType gimp_image_window_get_type (void) G_GNUC_CONST; 47 48 GimpImageWindow * gimp_image_window_new (Gimp *gimp, 49 GimpImage *image, 50 GimpDialogFactory *dialog_factory, 51 GdkScreen *screen, 52 gint monitor); 53 void gimp_image_window_destroy (GimpImageWindow *window); 54 55 GimpUIManager * gimp_image_window_get_ui_manager (GimpImageWindow *window); 56 GimpDockColumns * gimp_image_window_get_left_docks (GimpImageWindow *window); 57 GimpDockColumns * gimp_image_window_get_right_docks (GimpImageWindow *window); 58 59 void gimp_image_window_add_shell (GimpImageWindow *window, 60 GimpDisplayShell *shell); 61 GimpDisplayShell * gimp_image_window_get_shell (GimpImageWindow *window, 62 gint index); 63 void gimp_image_window_remove_shell (GimpImageWindow *window, 64 GimpDisplayShell *shell); 65 66 gint gimp_image_window_get_n_shells (GimpImageWindow *window); 67 68 void gimp_image_window_set_active_shell (GimpImageWindow *window, 69 GimpDisplayShell *shell); 70 GimpDisplayShell * gimp_image_window_get_active_shell (GimpImageWindow *window); 71 72 void gimp_image_window_set_fullscreen (GimpImageWindow *window, 73 gboolean fullscreen); 74 gboolean gimp_image_window_get_fullscreen (GimpImageWindow *window); 75 76 void gimp_image_window_set_show_menubar (GimpImageWindow *window, 77 gboolean show); 78 gboolean gimp_image_window_get_show_menubar (GimpImageWindow *window); 79 80 void gimp_image_window_set_show_statusbar (GimpImageWindow *window, 81 gboolean show); 82 gboolean gimp_image_window_get_show_statusbar (GimpImageWindow *window); 83 84 gboolean gimp_image_window_is_iconified (GimpImageWindow *window); 85 gboolean gimp_image_window_is_maximized (GimpImageWindow *window); 86 87 gboolean gimp_image_window_has_toolbox (GimpImageWindow *window); 88 89 void gimp_image_window_shrink_wrap (GimpImageWindow *window, 90 gboolean grow_only); 91 92 GtkWidget * gimp_image_window_get_default_dockbook (GimpImageWindow *window); 93 94 void gimp_image_window_keep_canvas_pos (GimpImageWindow *window); 95 void gimp_image_window_suspend_keep_pos (GimpImageWindow *window); 96 void gimp_image_window_resume_keep_pos (GimpImageWindow *window); 97 98 void gimp_image_window_update_tabs (GimpImageWindow *window); 99 100 #endif /* __GIMP_IMAGE_WINDOW_H__ */ 101