2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-07-12 19:41:19 +08:00
|
|
|
* Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-07-12 19:41:19 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-07-12 19:41:19 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-07-12 19:41:19 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_GUI_H__
|
|
|
|
#define __GIMP_GUI_H__
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpGui GimpGui;
|
|
|
|
|
|
|
|
struct _GimpGui
|
|
|
|
{
|
2014-07-11 04:52:29 +08:00
|
|
|
void (* ungrab) (Gimp *gimp);
|
|
|
|
|
|
|
|
void (* threads_enter) (Gimp *gimp);
|
|
|
|
void (* threads_leave) (Gimp *gimp);
|
|
|
|
|
|
|
|
void (* set_busy) (Gimp *gimp);
|
|
|
|
void (* unset_busy) (Gimp *gimp);
|
|
|
|
|
|
|
|
void (* show_message) (Gimp *gimp,
|
|
|
|
GObject *handler,
|
|
|
|
GimpMessageSeverity severity,
|
|
|
|
const gchar *domain,
|
|
|
|
const gchar *message);
|
|
|
|
void (* help) (Gimp *gimp,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const gchar *help_domain,
|
|
|
|
const gchar *help_id);
|
|
|
|
|
|
|
|
const gchar * (* get_program_class) (Gimp *gimp);
|
|
|
|
gchar * (* get_display_name) (Gimp *gimp,
|
|
|
|
gint display_ID,
|
|
|
|
GObject **screen,
|
|
|
|
gint *monitor);
|
|
|
|
guint32 (* get_user_time) (Gimp *gimp);
|
|
|
|
|
2014-07-17 16:09:19 +08:00
|
|
|
GFile * (* get_theme_dir) (Gimp *gimp);
|
2015-12-09 03:52:12 +08:00
|
|
|
GFile * (* get_icon_theme_dir) (Gimp *gimp);
|
2014-07-11 04:52:29 +08:00
|
|
|
|
|
|
|
GimpObject * (* get_window_strategy) (Gimp *gimp);
|
|
|
|
GimpObject * (* get_empty_display) (Gimp *gimp);
|
|
|
|
GimpObject * (* display_get_by_id) (Gimp *gimp,
|
|
|
|
gint ID);
|
|
|
|
gint (* display_get_id) (GimpObject *display);
|
|
|
|
guint32 (* display_get_window_id) (GimpObject *display);
|
|
|
|
GimpObject * (* display_create) (Gimp *gimp,
|
|
|
|
GimpImage *image,
|
|
|
|
GimpUnit unit,
|
|
|
|
gdouble scale,
|
|
|
|
GObject *screen,
|
|
|
|
gint monitor);
|
|
|
|
void (* display_delete) (GimpObject *display);
|
|
|
|
void (* displays_reconnect) (Gimp *gimp,
|
|
|
|
GimpImage *old_image,
|
|
|
|
GimpImage *new_image);
|
|
|
|
|
|
|
|
GimpProgress * (* progress_new) (Gimp *gimp,
|
|
|
|
GimpObject *display);
|
|
|
|
void (* progress_free) (Gimp *gimp,
|
|
|
|
GimpProgress *progress);
|
|
|
|
|
|
|
|
gboolean (* pdb_dialog_new) (Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
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);
|
|
|
|
gboolean (* recent_list_add_file) (Gimp *gimp,
|
|
|
|
GFile *file,
|
|
|
|
const gchar *mime_type);
|
|
|
|
void (* recent_list_load) (Gimp *gimp);
|
|
|
|
|
2015-08-23 16:51:31 +08:00
|
|
|
GMountOperation
|
|
|
|
* (* get_mount_operation) (Gimp *gimp,
|
2014-07-23 02:29:52 +08:00
|
|
|
GimpProgress *progress);
|
2015-08-23 16:51:31 +08:00
|
|
|
|
|
|
|
GimpColorProfilePolicy
|
|
|
|
(* query_profile_policy) (Gimp *gimp,
|
|
|
|
GimpImage *image,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpColorProfile **dest_profile,
|
|
|
|
gboolean *dont_ask);
|
2014-07-11 04:52:29 +08:00
|
|
|
};
|
2011-02-06 19:07:55 +08:00
|
|
|
|
|
|
|
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_gui_init (Gimp *gimp);
|
2011-02-06 19:07:55 +08:00
|
|
|
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_gui_ungrab (Gimp *gimp);
|
2011-02-06 19:07:55 +08:00
|
|
|
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_threads_enter (Gimp *gimp);
|
|
|
|
void gimp_threads_leave (Gimp *gimp);
|
2011-02-06 19:07:55 +08:00
|
|
|
|
2014-07-11 04:52:29 +08:00
|
|
|
GimpObject * gimp_get_window_strategy (Gimp *gimp);
|
|
|
|
GimpObject * gimp_get_empty_display (Gimp *gimp);
|
|
|
|
GimpObject * gimp_get_display_by_ID (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
gint ID);
|
2014-07-11 04:52:29 +08:00
|
|
|
gint gimp_get_display_ID (Gimp *gimp,
|
|
|
|
GimpObject *display);
|
|
|
|
guint32 gimp_get_display_window_id (Gimp *gimp,
|
|
|
|
GimpObject *display);
|
|
|
|
GimpObject * gimp_create_display (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpImage *image,
|
|
|
|
GimpUnit unit,
|
2014-05-03 02:20:46 +08:00
|
|
|
gdouble scale,
|
|
|
|
GObject *screen,
|
|
|
|
gint monitor);
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_delete_display (Gimp *gimp,
|
|
|
|
GimpObject *display);
|
|
|
|
void gimp_reconnect_displays (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpImage *old_image,
|
|
|
|
GimpImage *new_image);
|
|
|
|
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_set_busy (Gimp *gimp);
|
|
|
|
void gimp_set_busy_until_idle (Gimp *gimp);
|
|
|
|
void gimp_unset_busy (Gimp *gimp);
|
|
|
|
|
|
|
|
void gimp_show_message (Gimp *gimp,
|
|
|
|
GObject *handler,
|
|
|
|
GimpMessageSeverity severity,
|
|
|
|
const gchar *domain,
|
|
|
|
const gchar *message);
|
|
|
|
void gimp_help (Gimp *gimp,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const gchar *help_domain,
|
|
|
|
const gchar *help_id);
|
|
|
|
|
|
|
|
GimpProgress * gimp_new_progress (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpObject *display);
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_free_progress (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpProgress *progress);
|
|
|
|
|
2014-07-11 04:52:29 +08:00
|
|
|
const gchar * gimp_get_program_class (Gimp *gimp);
|
|
|
|
gchar * gimp_get_display_name (Gimp *gimp,
|
|
|
|
gint display_ID,
|
|
|
|
GObject **screen,
|
|
|
|
gint *monitor);
|
|
|
|
guint32 gimp_get_user_time (Gimp *gimp);
|
2014-07-17 16:09:19 +08:00
|
|
|
GFile * gimp_get_theme_dir (Gimp *gimp);
|
2015-12-09 03:52:12 +08:00
|
|
|
GFile * gimp_get_icon_theme_dir (Gimp *gimp);
|
2014-07-11 04:52:29 +08:00
|
|
|
|
|
|
|
gboolean gimp_pdb_dialog_new (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
GimpContainer *container,
|
|
|
|
const gchar *title,
|
|
|
|
const gchar *callback_name,
|
|
|
|
const gchar *object_name,
|
2014-07-11 04:52:29 +08:00
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
|
|
|
gboolean gimp_pdb_dialog_set (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpContainer *container,
|
|
|
|
const gchar *callback_name,
|
|
|
|
const gchar *object_name,
|
2014-07-11 04:52:29 +08:00
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
|
|
|
gboolean gimp_pdb_dialog_close (Gimp *gimp,
|
2011-02-06 19:07:55 +08:00
|
|
|
GimpContainer *container,
|
|
|
|
const gchar *callback_name);
|
2014-07-11 04:52:29 +08:00
|
|
|
gboolean gimp_recent_list_add_file (Gimp *gimp,
|
2014-07-05 18:51:54 +08:00
|
|
|
GFile *file,
|
2011-02-06 19:07:55 +08:00
|
|
|
const gchar *mime_type);
|
2014-07-11 04:52:29 +08:00
|
|
|
void gimp_recent_list_load (Gimp *gimp);
|
2004-07-12 19:41:19 +08:00
|
|
|
|
2015-08-23 16:51:31 +08:00
|
|
|
GMountOperation
|
|
|
|
* gimp_get_mount_operation (Gimp *gimp,
|
2014-07-23 02:29:52 +08:00
|
|
|
GimpProgress *progress);
|
2008-03-24 19:11:15 +08:00
|
|
|
|
2015-08-23 16:51:31 +08:00
|
|
|
GimpColorProfilePolicy
|
|
|
|
gimp_query_profile_policy (Gimp *gimp,
|
|
|
|
GimpImage *image,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpColorProfile **dest_profile,
|
|
|
|
gboolean *dont_ask);
|
|
|
|
|
2004-07-12 19:41:19 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_GUI_H__ */
|