gimpcolorconfig.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* LIBGIMP - The GIMP Library
  2. * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3. *
  4. * GimpColorConfig class
  5. * Copyright (C) 2004 Stefan Döhla <stefan@doehla.de>
  6. *
  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.
  11. *
  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.
  16. *
  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/>.
  20. */
  21. #if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
  22. #error "Only <libgimpconfig/gimpconfig.h> can be included directly."
  23. #endif
  24. #ifndef __GIMP_COLOR_CONFIG_H__
  25. #define __GIMP_COLOR_CONFIG_H__
  26. #define GIMP_TYPE_COLOR_CONFIG (gimp_color_config_get_type ())
  27. #define GIMP_COLOR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_COLOR_CONFIG, GimpColorConfig))
  28. #define GIMP_COLOR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_COLOR_CONFIG, GimpColorConfigClass))
  29. #define GIMP_IS_COLOR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_COLOR_CONFIG))
  30. #define GIMP_IS_COLOR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_COLOR_CONFIG))
  31. typedef struct _GimpColorConfigPrivate GimpColorConfigPrivate;
  32. typedef struct _GimpColorConfigClass GimpColorConfigClass;
  33. struct _GimpColorConfig
  34. {
  35. GObject parent_instance;
  36. GimpColorConfigPrivate *priv;
  37. };
  38. struct _GimpColorConfigClass
  39. {
  40. GObjectClass parent_class;
  41. void (* _gimp_reserved1) (void);
  42. void (* _gimp_reserved2) (void);
  43. void (* _gimp_reserved3) (void);
  44. void (* _gimp_reserved4) (void);
  45. void (* _gimp_reserved5) (void);
  46. void (* _gimp_reserved6) (void);
  47. void (* _gimp_reserved7) (void);
  48. void (* _gimp_reserved8) (void);
  49. };
  50. GType gimp_color_config_get_type (void) G_GNUC_CONST;
  51. GimpColorManagementMode
  52. gimp_color_config_get_mode (GimpColorConfig *config);
  53. GimpColorRenderingIntent
  54. gimp_color_config_get_display_intent (GimpColorConfig *config);
  55. gboolean gimp_color_config_get_display_bpc (GimpColorConfig *config);
  56. gboolean gimp_color_config_get_display_optimize (GimpColorConfig *config);
  57. gboolean gimp_color_config_get_display_profile_from_gdk (GimpColorConfig *config);
  58. GimpColorRenderingIntent
  59. gimp_color_config_get_simulation_intent (GimpColorConfig *config);
  60. gboolean gimp_color_config_get_simulation_bpc (GimpColorConfig *config);
  61. gboolean gimp_color_config_get_simulation_optimize (GimpColorConfig *config);
  62. gboolean gimp_color_config_get_simulation_gamut_check (GimpColorConfig *config);
  63. GeglColor * gimp_color_config_get_out_of_gamut_color (GimpColorConfig *config);
  64. GimpColorProfile * gimp_color_config_get_rgb_color_profile (GimpColorConfig *config,
  65. GError **error);
  66. GimpColorProfile * gimp_color_config_get_gray_color_profile (GimpColorConfig *config,
  67. GError **error);
  68. GimpColorProfile * gimp_color_config_get_cmyk_color_profile (GimpColorConfig *config,
  69. GError **error);
  70. GimpColorProfile * gimp_color_config_get_display_color_profile (GimpColorConfig *config,
  71. GError **error);
  72. GimpColorProfile * gimp_color_config_get_simulation_color_profile (GimpColorConfig *config,
  73. GError **error);
  74. #endif /* GIMP_COLOR_CONFIG_H__ */