1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
4 * GimpColorConfig class
5 * Copyright (C) 2004 Stefan Döhla <stefan@doehla.de>
7 * This library is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 3 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see
19 * <https://www.gnu.org/licenses/>.
22 #if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
23 #error "Only <libgimpconfig/gimpconfig.h> can be included directly."
26 #ifndef __GIMP_COLOR_CONFIG_H__
27 #define __GIMP_COLOR_CONFIG_H__
30 #define GIMP_TYPE_COLOR_CONFIG (gimp_color_config_get_type ())
31 #define GIMP_COLOR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_COLOR_CONFIG, GimpColorConfig))
32 #define GIMP_COLOR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_COLOR_CONFIG, GimpColorConfigClass))
33 #define GIMP_IS_COLOR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_COLOR_CONFIG))
34 #define GIMP_IS_COLOR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_COLOR_CONFIG))
37 typedef struct _GimpColorConfigPrivate GimpColorConfigPrivate
;
38 typedef struct _GimpColorConfigClass GimpColorConfigClass
;
40 struct _GimpColorConfig
42 GObject parent_instance
;
44 GimpColorConfigPrivate
*priv
;
47 struct _GimpColorConfigClass
49 GObjectClass parent_class
;
51 void (* _gimp_reserved1
) (void);
52 void (* _gimp_reserved2
) (void);
53 void (* _gimp_reserved3
) (void);
54 void (* _gimp_reserved4
) (void);
55 void (* _gimp_reserved5
) (void);
56 void (* _gimp_reserved6
) (void);
57 void (* _gimp_reserved7
) (void);
58 void (* _gimp_reserved8
) (void);
62 GType
gimp_color_config_get_type (void) G_GNUC_CONST
;
64 GimpColorManagementMode
65 gimp_color_config_get_mode (GimpColorConfig
*config
);
67 GimpColorRenderingIntent
68 gimp_color_config_get_display_intent (GimpColorConfig
*config
);
69 gboolean
gimp_color_config_get_display_bpc (GimpColorConfig
*config
);
70 gboolean
gimp_color_config_get_display_optimize (GimpColorConfig
*config
);
71 gboolean
gimp_color_config_get_display_profile_from_gdk (GimpColorConfig
*config
);
73 GimpColorRenderingIntent
74 gimp_color_config_get_simulation_intent (GimpColorConfig
*config
);
75 gboolean
gimp_color_config_get_simulation_bpc (GimpColorConfig
*config
);
76 gboolean
gimp_color_config_get_simulation_optimize (GimpColorConfig
*config
);
77 gboolean
gimp_color_config_get_simulation_gamut_check (GimpColorConfig
*config
);
78 void gimp_color_config_get_out_of_gamut_color (GimpColorConfig
*config
,
81 GimpColorProfile
* gimp_color_config_get_rgb_color_profile (GimpColorConfig
*config
,
83 GimpColorProfile
* gimp_color_config_get_gray_color_profile (GimpColorConfig
*config
,
85 GimpColorProfile
* gimp_color_config_get_cmyk_color_profile (GimpColorConfig
*config
,
87 GimpColorProfile
* gimp_color_config_get_display_color_profile (GimpColorConfig
*config
,
89 GimpColorProfile
* gimp_color_config_get_simulation_color_profile (GimpColorConfig
*config
,
93 #endif /* GIMP_COLOR_CONFIG_H__ */