1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-05 21:02:42 +02:00

Revert "pdb, libgimp: more #pragma once, and formatting cleanup"

This reverts commit be3597e3c7.

See https://gitlab.gnome.org/GNOME/gimp/-/issues/14668
This commit is contained in:
Jehan
2025-08-14 00:21:42 +02:00
parent bbb0be8413
commit 6cc054ee4e
94 changed files with 754 additions and 521 deletions

View File

@@ -18,7 +18,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_H__
#define __GIMP_H__
#include <cairo.h>
#include <glib-object.h>
@@ -82,6 +83,7 @@
G_BEGIN_DECLS
/**
* GIMP_MAIN:
* @plug_in_type: The #GType of the plug-in's #GimpPlugIn subclass
@@ -201,4 +203,7 @@ const gchar * gimp_icon_theme_dir (void) G_GNUC_CONST;
const gchar * gimp_get_progname (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_H__ */

View File

@@ -20,12 +20,13 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PDB_HEADERS_H__
#define __GIMP_PDB_HEADERS_H__
#include <libgimp/gimp_pdb.h>
#include <libgimp/gimpbrush_pdb.h>
#include <libgimp/gimpbrushes_pdb.h>
@@ -82,3 +83,4 @@
#include <libgimp/gimptexttool_pdb.h>
#include <libgimp/gimpunit_pdb.h>
#endif /* __GIMP_PDB_HEADERS_H__ */

View File

@@ -18,24 +18,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_ASPECT_PREVIEW_H__
#define __GIMP_ASPECT_PREVIEW_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_ASPECT_PREVIEW (gimp_aspect_preview_get_type ())
G_DECLARE_FINAL_TYPE (GimpAspectPreview,
gimp_aspect_preview,
GIMP, ASPECT_PREVIEW,
GimpPreview)
G_DECLARE_FINAL_TYPE (GimpAspectPreview, gimp_aspect_preview, GIMP, ASPECT_PREVIEW, GimpPreview)
GtkWidget * gimp_aspect_preview_new_from_drawable (GimpDrawable *drawable);
G_END_DECLS
#endif /* __GIMP_ASPECT_PREVIEW_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_BATCH_PROCEDURE_H__
#define __GIMP_BATCH_PROCEDURE_H__
#include <libgimp/gimpprocedure.h>
@@ -50,10 +51,7 @@ typedef GimpValueArray * (* GimpBatchFunc) (GimpProcedure *procedure,
#define GIMP_TYPE_BATCH_PROCEDURE (gimp_batch_procedure_get_type ())
G_DECLARE_FINAL_TYPE (GimpBatchProcedure,
gimp_batch_procedure,
GIMP, BATCH_PROCEDURE,
GimpProcedure)
G_DECLARE_FINAL_TYPE (GimpBatchProcedure, gimp_batch_procedure, GIMP, BATCH_PROCEDURE, GimpProcedure)
GimpProcedure * gimp_batch_procedure_new (GimpPlugIn *plug_in,
@@ -69,3 +67,5 @@ void gimp_batch_procedure_set_interpreter_name (GimpBatchProcedure *p
const gchar * gimp_batch_procedure_get_interpreter_name (GimpBatchProcedure *procedure);
G_END_DECLS
#endif /* __GIMP_BATCH_PROCEDURE_H__ */

View File

@@ -19,24 +19,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpresource.h>
#ifndef __GIMP_BRUSH_H__
#define __GIMP_BRUSH_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpresource.h>
#define GIMP_TYPE_BRUSH (gimp_brush_get_type ())
G_DECLARE_FINAL_TYPE (GimpBrush,
gimp_brush,
GIMP, BRUSH,
GimpResource)
G_DECLARE_FINAL_TYPE (GimpBrush, gimp_brush, GIMP, BRUSH, GimpResource)
GeglBuffer * gimp_brush_get_buffer (GimpBrush *brush,
@@ -49,3 +48,5 @@ GeglBuffer * gimp_brush_get_mask (GimpBrush *brush,
const Babl *format) G_GNUC_WARN_UNUSED_RESULT;
G_END_DECLS
#endif /* __GIMP_BRUSH_H__ */

View File

@@ -18,25 +18,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_BRUSH_CHOOSER_H__
#define __GIMP_BRUSH_CHOOSER_H__
#include <libgimp/gimpresourcechooser.h>
G_BEGIN_DECLS
#define GIMP_TYPE_BRUSH_CHOOSER (gimp_brush_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpBrushChooser,
gimp_brush_chooser,
GIMP, BRUSH_CHOOSER,
GimpResourceChooser)
G_DECLARE_FINAL_TYPE (GimpBrushChooser, gimp_brush_chooser, GIMP, BRUSH_CHOOSER, GimpResourceChooser)
GtkWidget * gimp_brush_chooser_new (const gchar *title,
const gchar *label,
GimpBrush *brush);
G_END_DECLS
#endif /* __GIMP_BRUSH_CHOOSER_H__ */

View File

@@ -18,24 +18,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpdrawable.h>
#ifndef __GIMP_CHANNEL_H__
#define __GIMP_CHANNEL_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpdrawable.h>
#define GIMP_TYPE_CHANNEL (gimp_channel_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpChannel,
gimp_channel,
GIMP, CHANNEL,
GimpDrawable)
G_DECLARE_DERIVABLE_TYPE (GimpChannel, gimp_channel, GIMP, CHANNEL, GimpDrawable)
struct _GimpChannelClass
@@ -56,6 +54,9 @@ struct _GimpChannelClass
};
GimpChannel * gimp_channel_get_by_id (gint32 channel_id);
GimpChannel * gimp_channel_get_by_id (gint32 channel_id);
G_END_DECLS
#endif /* __GIMP_CHANNEL_H__ */

View File

@@ -19,22 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_DISPLAY_H__
#define __GIMP_DISPLAY_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_DISPLAY (gimp_display_get_type ())
G_DECLARE_FINAL_TYPE (GimpDisplay,
gimp_display,
GIMP, DISPLAY,
GObject)
G_DECLARE_FINAL_TYPE (GimpDisplay, gimp_display, GIMP, DISPLAY, GObject)
gint32 gimp_display_get_id (GimpDisplay *display);
@@ -42,4 +41,7 @@ GimpDisplay * gimp_display_get_by_id (gint32 display_id);
gboolean gimp_display_is_valid (GimpDisplay *display);
G_END_DECLS
#endif /* __GIMP_DISPLAY_H__ */

View File

@@ -18,24 +18,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpitem.h>
#ifndef __GIMP_DRAWABLE_H__
#define __GIMP_DRAWABLE_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpitem.h>
#define GIMP_TYPE_DRAWABLE (gimp_drawable_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpDrawable,
gimp_drawable,
GIMP, DRAWABLE,
GimpItem)
G_DECLARE_DERIVABLE_TYPE (GimpDrawable, gimp_drawable, GIMP, DRAWABLE, GimpItem)
struct _GimpDrawableClass
@@ -112,4 +111,7 @@ void gimp_drawable_merge_new_filter (GimpDrawable
gdouble opacity,
...) G_GNUC_NULL_TERMINATED;
G_END_DECLS
#endif /* __GIMP_DRAWABLE_H__ */

View File

@@ -19,29 +19,30 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_DRAWABLE_CHOOSER_H__
#define __GIMP_DRAWABLE_CHOOSER_H__
G_BEGIN_DECLS
#define GIMP_TYPE_DRAWABLE_CHOOSER (gimp_drawable_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpDrawableChooser,
gimp_drawable_chooser,
GIMP, DRAWABLE_CHOOSER,
GtkBox)
G_DECLARE_FINAL_TYPE (GimpDrawableChooser, gimp_drawable_chooser, GIMP, DRAWABLE_CHOOSER, GtkBox)
GtkWidget * gimp_drawable_chooser_new (const gchar *title,
const gchar *label,
GType drawable_type,
GimpDrawable *drawable);
GtkWidget * gimp_drawable_chooser_new (const gchar *title,
const gchar *label,
GType drawable_type,
GimpDrawable *drawable);
GimpDrawable * gimp_drawable_chooser_get_drawable (GimpDrawableChooser *chooser);
void gimp_drawable_chooser_set_drawable (GimpDrawableChooser *chooser,
GimpDrawable *drawable);
GtkWidget * gimp_drawable_chooser_get_label (GimpDrawableChooser *widget);
GimpDrawable * gimp_drawable_chooser_get_drawable (GimpDrawableChooser *chooser);
void gimp_drawable_chooser_set_drawable (GimpDrawableChooser *chooser,
GimpDrawable *drawable);
GtkWidget * gimp_drawable_chooser_get_label (GimpDrawableChooser *widget);
G_END_DECLS
#endif /* __GIMP_DRAWABLE_CHOOSER_H__ */

View File

@@ -19,39 +19,41 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_DRAWABLE_FILTER_H__
#define __GIMP_DRAWABLE_FILTER_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_DRAWABLE_FILTER (gimp_drawable_filter_get_type ())
G_DECLARE_FINAL_TYPE (GimpDrawableFilter,
gimp_drawable_filter,
GIMP, DRAWABLE_FILTER,
GObject)
G_DECLARE_FINAL_TYPE (GimpDrawableFilter, gimp_drawable_filter, GIMP, DRAWABLE_FILTER, GObject)
gint32 gimp_drawable_filter_get_id (GimpDrawableFilter *filter);
GimpDrawableFilter * gimp_drawable_filter_get_by_id (gint32 filter_id);
gint32 gimp_drawable_filter_get_id (GimpDrawableFilter *filter);
GimpDrawableFilter * gimp_drawable_filter_get_by_id (gint32 filter_id);
gboolean gimp_drawable_filter_is_valid (GimpDrawableFilter *filter);
gboolean gimp_drawable_filter_is_valid (GimpDrawableFilter *filter);
void gimp_drawable_filter_set_opacity (GimpDrawableFilter *filter,
gdouble opacity);
void gimp_drawable_filter_set_blend_mode (GimpDrawableFilter *filter,
GimpLayerMode mode);
void gimp_drawable_filter_set_aux_input (GimpDrawableFilter *filter,
const gchar *input_pad_name,
GimpDrawable *input);
void gimp_drawable_filter_set_opacity (GimpDrawableFilter *filter,
gdouble opacity);
void gimp_drawable_filter_set_blend_mode (GimpDrawableFilter *filter,
GimpLayerMode mode);
void gimp_drawable_filter_set_aux_input (GimpDrawableFilter *filter,
const gchar *input_pad_name,
GimpDrawable *input);
GimpDrawableFilterConfig * gimp_drawable_filter_get_config (GimpDrawableFilter *filter);
GimpDrawableFilterConfig * gimp_drawable_filter_get_config (GimpDrawableFilter *filter);
void gimp_drawable_filter_update (GimpDrawableFilter *filter);
void gimp_drawable_filter_update (GimpDrawableFilter *filter);
G_END_DECLS
#endif /* __GIMP_DRAWABLE_FILTER_H__ */

View File

@@ -19,23 +19,20 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_DRAWABLE_FILTER_CONFIG_H__
#define __GIMP_DRAWABLE_FILTER_CONFIG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_DRAWABLE_FILTER_CONFIG (gimp_drawable_filter_config_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpDrawableFilterConfig,
gimp_drawable_filter_config,
GIMP, DRAWABLE_FILTER_CONFIG,
GObject)
G_DECLARE_DERIVABLE_TYPE (GimpDrawableFilterConfig, gimp_drawable_filter_config, GIMP, DRAWABLE_FILTER_CONFIG, GObject)
struct _GimpDrawableFilterConfigClass
{
@@ -54,4 +51,7 @@ struct _GimpDrawableFilterConfigClass
void (* _gimp_reserved9) (void);
};
G_END_DECLS
#endif /* __GIMP_DRAWABLE_FILTER_CONFIG_H__ */

View File

@@ -18,22 +18,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_DRAWABLE_PREVIEW_H__
#define __GIMP_DRAWABLE_PREVIEW_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_DRAWABLE_PREVIEW (gimp_drawable_preview_get_type ())
G_DECLARE_FINAL_TYPE (GimpDrawablePreview,
gimp_drawable_preview,
GIMP, DRAWABLE_PREVIEW,
GimpScrolledPreview)
G_DECLARE_FINAL_TYPE (GimpDrawablePreview, gimp_drawable_preview, GIMP, DRAWABLE_PREVIEW, GimpScrolledPreview)
GtkWidget * gimp_drawable_preview_new_from_drawable (GimpDrawable *drawable);
@@ -50,5 +49,8 @@ G_GNUC_INTERNAL gboolean _gimp_drawable_preview_get_bounds (GimpDrawable
gint *xmax,
gint *ymax);
G_END_DECLS
#endif /* __GIMP_DRAWABLE_PREVIEW_H__ */

View File

@@ -18,10 +18,12 @@
/* NOTE: This file is autogenerated by enumcode.pl */
#pragma once
#ifndef __GIMP_ENUMS_H__
#define __GIMP_ENUMS_H__
G_BEGIN_DECLS
#define GIMP_TYPE_BRUSH_APPLICATION_MODE (gimp_brush_application_mode_get_type ())
GType gimp_brush_application_mode_get_type (void) G_GNUC_CONST;
@@ -302,4 +304,7 @@ void gimp_enums_init (void);
const gchar ** gimp_enums_get_type_names (gint *n_type_names);
G_END_DECLS
#endif /* __GIMP_ENUMS_H__ */

View File

@@ -19,12 +19,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __LIBGIMP_GIMP_EXPORT_OPTIONS_H__
#define __LIBGIMP_GIMP_EXPORT_OPTIONS_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -44,7 +45,11 @@ typedef enum
} GimpExportReturn;
GimpExportReturn gimp_export_options_get_image (GimpExportOptions *options,
GimpImage **image) G_GNUC_WARN_UNUSED_RESULT;
GimpExportReturn gimp_export_options_get_image (GimpExportOptions *options,
GimpImage **image) G_GNUC_WARN_UNUSED_RESULT;
G_END_DECLS
#endif /* __LIBGIMP_GIMP_EXPORT_OPTIONS_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_EXPORT_PROCEDURE_H__
#define __GIMP_EXPORT_PROCEDURE_H__
#include <libgimp/gimpfileprocedure.h>
@@ -53,14 +54,14 @@ G_BEGIN_DECLS
*
* Since: 3.0
**/
typedef GimpValueArray * (* GimpRunExportFunc) (GimpProcedure *procedure,
GimpRunMode run_mode,
GimpImage *image,
GFile *file,
GimpExportOptions *options,
GimpMetadata *metadata,
GimpProcedureConfig *config,
gpointer run_data);
typedef GimpValueArray * (* GimpRunExportFunc) (GimpProcedure *procedure,
GimpRunMode run_mode,
GimpImage *image,
GFile *file,
GimpExportOptions *options,
GimpMetadata *metadata,
GimpProcedureConfig *config,
gpointer run_data);
/**
* GimpExportGetCapabilitiesFunc:
@@ -78,17 +79,14 @@ typedef GimpValueArray * (* GimpRunExportFunc) (GimpProcedure *procedure,
*
* Since: 3.0
**/
typedef GimpExportCapabilities (* GimpExportGetCapabilitiesFunc) (GimpProcedure *procedure,
GimpProcedureConfig *config,
GimpExportOptions *options,
gpointer get_capabilities_data);
typedef GimpExportCapabilities (* GimpExportGetCapabilitiesFunc) (GimpProcedure *procedure,
GimpProcedureConfig *config,
GimpExportOptions *options,
gpointer get_capabilities_data);
#define GIMP_TYPE_EXPORT_PROCEDURE (gimp_export_procedure_get_type ())
G_DECLARE_FINAL_TYPE (GimpExportProcedure,
gimp_export_procedure,
GIMP, EXPORT_PROCEDURE,
GimpFileProcedure)
G_DECLARE_FINAL_TYPE (GimpExportProcedure, gimp_export_procedure, GIMP, EXPORT_PROCEDURE, GimpFileProcedure)
GimpProcedure * gimp_export_procedure_new (GimpPlugIn *plug_in,
@@ -126,4 +124,7 @@ gboolean gimp_export_procedure_get_support_profile (GimpExportProcedure
gboolean gimp_export_procedure_get_support_thumbnail (GimpExportProcedure *procedure);
gboolean gimp_export_procedure_get_support_comment (GimpExportProcedure *procedure);
G_END_DECLS
#endif /* __GIMP_EXPORT_PROCEDURE_H__ */

View File

@@ -18,22 +18,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_EXPORT_PROCEDURE_DIALOG_H__
#define __GIMP_EXPORT_PROCEDURE_DIALOG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_EXPORT_PROCEDURE_DIALOG (gimp_export_procedure_dialog_get_type ())
G_DECLARE_FINAL_TYPE (GimpExportProcedureDialog,
gimp_export_procedure_dialog,
GIMP, EXPORT_PROCEDURE_DIALOG,
GimpProcedureDialog)
G_DECLARE_FINAL_TYPE (GimpExportProcedureDialog, gimp_export_procedure_dialog, GIMP, EXPORT_PROCEDURE_DIALOG, GimpProcedureDialog)
GtkWidget * gimp_export_procedure_dialog_new (GimpExportProcedure *procedure,
@@ -43,4 +41,7 @@ GtkWidget * gimp_export_procedure_dialog_new (GimpExportProcedure
void gimp_export_procedure_dialog_add_metadata (GimpExportProcedureDialog *dialog,
const gchar *property);
G_END_DECLS
#endif /* __GIMP_EXPORT_PROCEDURE_DIALOG_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_FILE_PROCEDURE_H__
#define __GIMP_FILE_PROCEDURE_H__
#include <libgimp/gimpprocedure.h>
@@ -29,11 +30,7 @@ G_BEGIN_DECLS
#define GIMP_TYPE_FILE_PROCEDURE (gimp_file_procedure_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpFileProcedure,
gimp_file_procedure,
GIMP, FILE_PROCEDURE,
GimpProcedure)
G_DECLARE_DERIVABLE_TYPE (GimpFileProcedure, gimp_file_procedure, GIMP, FILE_PROCEDURE, GimpProcedure)
struct _GimpFileProcedureClass
{
@@ -83,4 +80,7 @@ void gimp_file_procedure_set_handles_remote
gboolean gimp_file_procedure_get_handles_remote
(GimpFileProcedure *procedure);
G_END_DECLS
#endif /* __GIMP_FILE_PROCEDURE_H__ */

View File

@@ -19,27 +19,28 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpresource.h>
#ifndef __GIMP_FONT_H__
#define __GIMP_FONT_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpresource.h>
#define GIMP_TYPE_FONT (gimp_font_get_type ())
G_DECLARE_FINAL_TYPE (GimpFont,
gimp_font,
GIMP, FONT,
GimpResource)
G_DECLARE_FINAL_TYPE (GimpFont, gimp_font, GIMP, FONT, GimpResource)
PangoFontDescription * gimp_font_get_pango_font_description (GimpFont *font);
G_END_DECLS
#endif /* __GIMP_FONT_H__ */

View File

@@ -18,25 +18,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_FONT_CHOOSER_H__
#define __GIMP_FONT_CHOOSER_H__
#include <libgimp/gimpresourcechooser.h>
G_BEGIN_DECLS
#define GIMP_TYPE_FONT_CHOOSER (gimp_font_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpFontChooser,
gimp_font_chooser,
GIMP, FONT_CHOOSER,
GimpResourceChooser)
G_DECLARE_FINAL_TYPE (GimpFontChooser, gimp_font_chooser, GIMP, FONT_CHOOSER, GimpResourceChooser)
GtkWidget * gimp_font_chooser_new (const gchar *title,
const gchar *label,
GimpFont *font);
G_END_DECLS
#endif /* __GIMP_FONT_CHOOSER_H__ */

View File

@@ -18,12 +18,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_GIMPRC_H__
#define __GIMP_GIMPRC_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -31,4 +32,7 @@ G_BEGIN_DECLS
GimpColorConfig * gimp_get_color_configuration (void);
G_END_DECLS
#endif /* __GIMP_GIMPRC_H__ */

View File

@@ -19,10 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_GP_PARAMS_H__
#define __GIMP_GP_PARAMS_H__
G_BEGIN_DECLS
GParamSpec * _gimp_gp_param_def_to_param_spec (const GPParamDef *param_def);
gboolean _gimp_param_spec_to_gp_param_def (GParamSpec *pspec,
GPParamDef *param_def,
@@ -40,4 +42,7 @@ void _gimp_gp_params_free (GPParam *params,
gint n_params,
gboolean full_copy);
G_END_DECLS
#endif /* __GIMP_GP_PARAMS_H__ */

View File

@@ -19,24 +19,25 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpresource.h>
#ifndef __GIMP_GRADIENT_H__
#define __GIMP_GRADIENT_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpresource.h>
#define GIMP_TYPE_GRADIENT (gimp_gradient_get_type ())
G_DECLARE_FINAL_TYPE (GimpGradient,
gimp_gradient,
GIMP, GRADIENT,
GimpResource)
G_DECLARE_FINAL_TYPE (GimpGradient, gimp_gradient, GIMP, GRADIENT, GimpResource)
G_END_DECLS
#endif /* __GIMP_GRADIENT_H__ */

View File

@@ -18,25 +18,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_GRADIENT_CHOOSER_H__
#define __GIMP_GRADIENT_CHOOSER_H__
#include <libgimp/gimpresourcechooser.h>
G_BEGIN_DECLS
#define GIMP_TYPE_GRADIENT_CHOOSER (gimp_gradient_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpGradientChooser,
gimp_gradient_chooser,
GIMP, GRADIENT_CHOOSER,
GimpResourceChooser)
G_DECLARE_FINAL_TYPE (GimpGradientChooser, gimp_gradient_chooser, GIMP, GRADIENT_CHOOSER, GimpResourceChooser)
GtkWidget * gimp_gradient_chooser_new (const gchar *title,
const gchar *label,
GimpGradient *gradient);
G_END_DECLS
#endif /* __GIMP_GRADIENT_CHOOSER_H__ */

View File

@@ -19,26 +19,28 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimplayer.h>
#ifndef __GIMP_GROUP_LAYER_H__
#define __GIMP_GROUP_LAYER_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimplayer.h>
#define GIMP_TYPE_GROUP_LAYER (gimp_group_layer_get_type ())
G_DECLARE_FINAL_TYPE (GimpGroupLayer,
gimp_group_layer,
GIMP, GROUP_LAYER,
GimpLayer)
G_DECLARE_FINAL_TYPE (GimpGroupLayer, gimp_group_layer, GIMP, GROUP_LAYER, GimpLayer)
GimpGroupLayer * gimp_group_layer_get_by_id (gint32 layer_id);
GimpGroupLayer * gimp_group_layer_get_by_id (gint32 layer_id);
G_END_DECLS
#endif /* __GIMP_GROUP_LAYER_H__ */

View File

@@ -18,22 +18,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_IMAGE_H__
#define __GIMP_IMAGE_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_IMAGE (gimp_image_get_type ())
G_DECLARE_FINAL_TYPE (GimpImage,
gimp_image,
GIMP, IMAGE,
GObject)
G_DECLARE_FINAL_TYPE (GimpImage, gimp_image, GIMP, IMAGE, GObject)
gint32 gimp_image_get_id (GimpImage *image);
@@ -72,4 +71,7 @@ GimpMetadata * gimp_image_get_metadata (GimpImage *image);
gboolean gimp_image_set_metadata (GimpImage *image,
GimpMetadata *metadata);
G_END_DECLS
#endif /* __GIMP_IMAGE_H__ */

View File

@@ -18,12 +18,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_IMAGE_COLOR_PROFILE_H__
#define __GIMP_IMAGE_COLOR_PROFILE_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -44,4 +45,7 @@ gboolean gimp_image_convert_color_profile (GimpImage
GimpColorRenderingIntent intent,
gboolean bpc);
G_END_DECLS
#endif /* __GIMP_IMAGE_COLOR_PROFILE_H__ */

View File

@@ -19,17 +19,17 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_IMAGE_COMBO_BOX_H__
#define __GIMP_IMAGE_COMBO_BOX_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
/**
* GimpImageConstraintFunc:
* @image:
@@ -39,15 +39,15 @@ typedef gboolean (* GimpImageConstraintFunc) (GimpImage *image,
gpointer data);
#define GIMP_TYPE_IMAGE_COMBO_BOX (gimp_image_combo_box_get_type ())
G_DECLARE_FINAL_TYPE (GimpImageComboBox,
gimp_image_combo_box,
GIMP, IMAGE_COMBO_BOX,
GimpIntComboBox)
#define GIMP_TYPE_IMAGE_COMBO_BOX (gimp_image_combo_box_get_type ())
G_DECLARE_FINAL_TYPE (GimpImageComboBox, gimp_image_combo_box, GIMP, IMAGE_COMBO_BOX, GimpIntComboBox)
GtkWidget * gimp_image_combo_box_new (GimpImageConstraintFunc constraint,
gpointer data,
GDestroyNotify data_destroy);
G_END_DECLS
#endif /* __GIMP_IMAGE_COMBO_BOX_H__ */

View File

@@ -18,12 +18,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_IMAGE_METADATA_H__
#define __GIMP_IMAGE_METADATA_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -57,4 +59,7 @@ G_GNUC_INTERNAL gboolean _gimp_image_metadata_save_finish (GimpImage
GFile *file,
GError **error);
G_END_DECLS
#endif /* __GIMP_IMAGE_METADATA_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_IMAGE_PROCEDURE_H__
#define __GIMP_IMAGE_PROCEDURE_H__
#include <libgimp/gimpprocedure.h>
@@ -53,17 +54,17 @@ typedef GimpValueArray * (* GimpRunImageFunc) (GimpProcedure *procedure,
#define GIMP_TYPE_IMAGE_PROCEDURE (gimp_image_procedure_get_type ())
G_DECLARE_FINAL_TYPE (GimpImageProcedure,
gimp_image_procedure,
GIMP, IMAGE_PROCEDURE,
GimpProcedure)
G_DECLARE_FINAL_TYPE (GimpImageProcedure, gimp_image_procedure, GIMP, IMAGE_PROCEDURE, GimpProcedure)
GimpProcedure * gimp_image_procedure_new (GimpPlugIn *plug_in,
const gchar *name,
GimpPDBProcType proc_type,
GimpRunImageFunc run_func,
gpointer run_data,
GDestroyNotify run_data_destroy);
GimpProcedure * gimp_image_procedure_new (GimpPlugIn *plug_in,
const gchar *name,
GimpPDBProcType proc_type,
GimpRunImageFunc run_func,
gpointer run_data,
GDestroyNotify run_data_destroy);
G_END_DECLS
#endif /* __GIMP_IMAGE_PROCEDURE_H__ */

View File

@@ -19,22 +19,20 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_ITEM_H__
#define __GIMP_ITEM_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_ITEM (gimp_item_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpItem,
gimp_item,
GIMP, ITEM,
GObject)
G_DECLARE_DERIVABLE_TYPE (GimpItem, gimp_item, GIMP, ITEM, GObject)
struct _GimpItemClass
@@ -70,4 +68,7 @@ gboolean gimp_item_is_path (GimpItem *item);
GList * gimp_item_list_children (GimpItem *item);
G_END_DECLS
#endif /* __GIMP_ITEM_H__ */

View File

@@ -20,12 +20,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_ITEM_COMBO_BOX_H__
#define __GIMP_ITEM_COMBO_BOX_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -48,10 +49,10 @@ G_BEGIN_DECLS
#define GIMP_IS_PATH_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PATH_COMBO_BOX))
GType gimp_drawable_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_channel_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_layer_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_path_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_drawable_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_channel_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_layer_combo_box_get_type (void) G_GNUC_CONST;
GType gimp_path_combo_box_get_type (void) G_GNUC_CONST;
/**
* GimpItemConstraintFunc:
@@ -63,7 +64,6 @@ typedef gboolean (* GimpItemConstraintFunc) (GimpImage *image,
GimpItem *item,
gpointer data);
GtkWidget * gimp_drawable_combo_box_new (GimpItemConstraintFunc constraint,
gpointer data,
GDestroyNotify data_destroy);
@@ -77,4 +77,7 @@ GtkWidget * gimp_path_combo_box_new (GimpItemConstraintFunc constraint,
gpointer data,
GDestroyNotify data_destroy);
G_END_DECLS
#endif /* __GIMP_ITEM_COMBO_BOX_H__ */

View File

@@ -18,19 +18,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpdrawable.h>
#ifndef __GIMP_LAYER_H__
#define __GIMP_LAYER_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpdrawable.h>
#define GIMP_TYPE_LAYER (gimp_layer_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpLayer, gimp_layer, GIMP, LAYER, GimpDrawable)
@@ -66,5 +68,7 @@ GimpLayer * gimp_layer_new_from_surface (GimpImage *image,
gdouble progress_start,
gdouble progress_end) G_GNUC_WARN_UNUSED_RESULT;
G_END_DECLS
#endif /* __GIMP_LAYER_H__ */

View File

@@ -19,26 +19,28 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpchannel.h>
#ifndef __GIMP_LAYER_MASK_H__
#define __GIMP_LAYER_MASK_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpchannel.h>
#define GIMP_TYPE_LAYER_MASK (gimp_layer_mask_get_type ())
G_DECLARE_FINAL_TYPE (GimpLayerMask,
gimp_layer_mask,
GIMP, LAYER_MASK,
GimpChannel)
G_DECLARE_FINAL_TYPE (GimpLayerMask, gimp_layer_mask, GIMP, LAYER_MASK, GimpChannel)
GimpLayerMask * gimp_layer_mask_get_by_id (gint32 layer_mask_id);
G_END_DECLS
#endif /* __GIMP_LAYER_MASK_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_LOAD_PROCEDURE_H__
#define __GIMP_LOAD_PROCEDURE_H__
#include <libgimp/gimpfileprocedure.h>
@@ -63,10 +64,7 @@ typedef GimpValueArray * (* GimpRunLoadFunc) (GimpProcedure *procedure,
#define GIMP_TYPE_LOAD_PROCEDURE (gimp_load_procedure_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpLoadProcedure,
gimp_load_procedure,
GIMP, LOAD_PROCEDURE,
GimpFileProcedure)
G_DECLARE_DERIVABLE_TYPE (GimpLoadProcedure, gimp_load_procedure, GIMP, LOAD_PROCEDURE, GimpFileProcedure)
struct _GimpLoadProcedureClass
@@ -102,4 +100,7 @@ void gimp_load_procedure_set_thumbnail_loader (GimpLoadProcedure *pro
const gchar *thumbnail_proc);
const gchar * gimp_load_procedure_get_thumbnail_loader (GimpLoadProcedure *procedure);
G_END_DECLS
#endif /* __GIMP_LOAD_PROCEDURE_H__ */

View File

@@ -19,24 +19,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpresource.h>
#ifndef __GIMP_PALETTE_H__
#define __GIMP_PALETTE_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpresource.h>
#define GIMP_TYPE_PALETTE (gimp_palette_get_type ())
G_DECLARE_FINAL_TYPE (GimpPalette,
gimp_palette,
GIMP, PALETTE,
GimpResource)
G_DECLARE_FINAL_TYPE (GimpPalette, gimp_palette, GIMP, PALETTE, GimpResource)
guint8 * gimp_palette_get_colormap (GimpPalette *palette,
@@ -50,3 +49,5 @@ gboolean gimp_palette_set_colormap (GimpPalette *palette,
gsize num_bytes);
G_END_DECLS
#endif /* __GIMP_PALETTE_H__ */

View File

@@ -18,25 +18,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PALETTE_CHOOSER_H__
#define __GIMP_PALETTE_CHOOSER_H__
#include <libgimp/gimpresourcechooser.h>
G_BEGIN_DECLS
#define GIMP_TYPE_PALETTE_CHOOSER (gimp_palette_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpPaletteChooser,
gimp_palette_chooser,
GIMP, PALETTE_CHOOSER,
GimpResourceChooser)
G_DECLARE_FINAL_TYPE (GimpPaletteChooser, gimp_palette_chooser, GIMP, PALETTE_CHOOSER, GimpResourceChooser)
GtkWidget * gimp_palette_chooser_new (const gchar *title,
const gchar *label,
GimpPalette *palette);
G_END_DECLS
#endif /* __GIMP_PALETTE_CHOOSER_H__ */

View File

@@ -18,17 +18,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PARAM_SPECS_DESC_H__
#define __GIMP_PARAM_SPECS_DESC_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gchar * gimp_param_spec_get_desc (GParamSpec *pspec);
G_END_DECLS
#endif /* __GIMP_PARAM_SPECS_DESC_H__ */

View File

@@ -18,12 +18,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __LIBGIMP_GIMP_PARAM_SPECS_H__
#define __LIBGIMP_GIMP_PARAM_SPECS_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -393,4 +394,7 @@ GParamSpec * gimp_param_spec_font (const gchar *name,
gboolean default_to_context,
GParamFlags flags);
G_END_DECLS
#endif /* __LIBGIMP_GIMP_PARAM_SPECS_H__ */

View File

@@ -19,24 +19,25 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PATH_H__
#define __GIMP_PATH_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PATH (gimp_path_get_type ())
G_DECLARE_FINAL_TYPE (GimpPath,
gimp_path,
GIMP, PATH,
GimpItem)
G_DECLARE_FINAL_TYPE (GimpPath, gimp_path, GIMP, PATH, GimpItem)
GimpPath * gimp_path_get_by_id (gint32 path_id);
G_END_DECLS
#endif /* __GIMP_PATH_H__ */

View File

@@ -19,24 +19,24 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpresource.h>
#ifndef __GIMP_PATTERN_H__
#define __GIMP_PATTERN_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpresource.h>
#define GIMP_TYPE_PATTERN (gimp_pattern_get_type ())
G_DECLARE_FINAL_TYPE (GimpPattern,
gimp_pattern,
GIMP, PATTERN,
GimpResource)
G_DECLARE_FINAL_TYPE (GimpPattern, gimp_pattern, GIMP, PATTERN, GimpResource)
GeglBuffer * gimp_pattern_get_buffer (GimpPattern *pattern,
@@ -45,3 +45,5 @@ GeglBuffer * gimp_pattern_get_buffer (GimpPattern *pattern,
const Babl *format) G_GNUC_WARN_UNUSED_RESULT;
G_END_DECLS
#endif /* __GIMP_PATTERN_H__ */

View File

@@ -18,26 +18,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PATTERN_CHOOSER_H__
#define __GIMP_PATTERN_CHOOSER_H__
#include <libgimp/gimpresourcechooser.h>
G_BEGIN_DECLS
#define GIMP_TYPE_PATTERN_CHOOSER (gimp_pattern_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpPatternChooser,
gimp_pattern_chooser,
GIMP, PATTERN_CHOOSER,
GimpResourceChooser)
G_DECLARE_FINAL_TYPE (GimpPatternChooser, gimp_pattern_chooser, GIMP, PATTERN_CHOOSER, GimpResourceChooser)
GtkWidget * gimp_pattern_chooser_new (const gchar *title,
const gchar *label,
GimpPattern *pattern);
G_END_DECLS
#endif /* __GIMP_PATTERN_CHOOSER_H__ */

View File

@@ -19,10 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_PDB_PRIVATE_H__
#define __GIMP_PDB_PRIVATE_H__
G_BEGIN_DECLS
typedef enum
{
GIMP_PDB_ERROR_FAILED, /* generic error condition */
@@ -39,13 +41,16 @@ typedef enum
GQuark _gimp_pdb_error_quark (void) G_GNUC_CONST;
G_GNUC_INTERNAL GimpPDB * _gimp_pdb_new (GimpPlugIn *plug_in);
G_GNUC_INTERNAL GimpPDB * _gimp_pdb_new (GimpPlugIn *plug_in);
G_GNUC_INTERNAL GimpPlugIn * _gimp_pdb_get_plug_in (GimpPDB *pdb);
G_GNUC_INTERNAL GimpPlugIn * _gimp_pdb_get_plug_in (GimpPDB *pdb);
gboolean gimp_pdb_get_data (const gchar *identifier,
GBytes **data);
gboolean gimp_pdb_set_data (const gchar *identifier,
GBytes *data);
gboolean gimp_pdb_get_data (const gchar *identifier,
GBytes **data);
gboolean gimp_pdb_set_data (const gchar *identifier,
GBytes *data);
G_END_DECLS
#endif /* __GIMP_PDB_PRIVATE_H__ */

View File

@@ -19,22 +19,20 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PDB_H__
#define __GIMP_PDB_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PDB (gimp_pdb_get_type ())
G_DECLARE_FINAL_TYPE (GimpPDB,
gimp_pdb,
GIMP, PDB,
GObject)
G_DECLARE_FINAL_TYPE (GimpPDB, gimp_pdb, GIMP, PDB, GObject)
gboolean gimp_pdb_procedure_exists (GimpPDB *pdb,
@@ -67,4 +65,7 @@ G_GNUC_INTERNAL GimpValueArray * _gimp_pdb_run_procedure_array (GimpPDB
const gchar *procedure_name,
const GimpValueArray *arguments);
G_END_DECLS
#endif /* __GIMP_PDB_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_PDB_PROCEDURE_H__
#define __GIMP_PDB_PROCEDURE_H__
G_BEGIN_DECLS
@@ -27,13 +28,13 @@ G_BEGIN_DECLS
#define GIMP_TYPE_PDB_PROCEDURE (_gimp_pdb_procedure_get_type ())
G_DECLARE_FINAL_TYPE (GimpPDBProcedure,
_gimp_pdb_procedure,
GIMP, PDB_PROCEDURE,
GimpProcedure)
G_DECLARE_FINAL_TYPE (GimpPDBProcedure, _gimp_pdb_procedure, GIMP, PDB_PROCEDURE, GimpProcedure)
G_GNUC_INTERNAL GimpProcedure * _gimp_pdb_procedure_new (GimpPDB *pdb,
const gchar *name);
G_END_DECLS
#endif /* __GIMP_PDB_PROCEDURE_H__ */

View File

@@ -19,12 +19,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __LIBGIMP_GIMP_PIXBUF_H__
#define __LIBGIMP_GIMP_PIXBUF_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -36,4 +37,7 @@ G_GNUC_INTERNAL GdkPixbuf * _gimp_pixbuf_from_data (guchar *data
gint bpp,
GimpPixbufTransparency alpha);
G_END_DECLS
#endif /* __LIBGIMP_GIMP_PIXBUF_H__ */

View File

@@ -19,24 +19,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PLUG_IN_H__
#define __GIMP_PLUG_IN_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_PLUG_IN_ERROR (gimp_plug_in_error_quark ())
#define GIMP_PLUG_IN_ERROR (gimp_plug_in_error_quark ())
#define GIMP_TYPE_PLUG_IN (gimp_plug_in_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpPlugIn,
gimp_plug_in,
GIMP, PLUG_IN,
GObject)
G_DECLARE_DERIVABLE_TYPE (GimpPlugIn, gimp_plug_in, GIMP, PLUG_IN, GObject)
/**
@@ -216,4 +214,7 @@ void gimp_plug_in_set_pdb_error_handler (GimpPlugIn *plug_in,
GimpPDBErrorHandler
gimp_plug_in_get_pdb_error_handler (GimpPlugIn *plug_in);
G_END_DECLS
#endif /* __GIMP_PLUG_IN_H__ */

View File

@@ -18,22 +18,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PROC_BROWSER_DIALOG_H__
#define __GIMP_PROC_BROWSER_DIALOG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PROC_BROWSER_DIALOG (gimp_proc_browser_dialog_get_type ())
G_DECLARE_FINAL_TYPE (GimpProcBrowserDialog,
gimp_proc_browser_dialog,
GIMP, PROC_BROWSER_DIALOG,
GimpDialog)
G_DECLARE_FINAL_TYPE (GimpProcBrowserDialog, gimp_proc_browser_dialog, GIMP, PROC_BROWSER_DIALOG, GimpDialog)
GtkWidget * gimp_proc_browser_dialog_new (const gchar *title,
@@ -44,4 +43,7 @@ GtkWidget * gimp_proc_browser_dialog_new (const gchar *title,
gchar * gimp_proc_browser_dialog_get_selected (GimpProcBrowserDialog *dialog);
G_END_DECLS
#endif /* __GIMP_PROC_BROWSER_DIALOG_H__ */

View File

@@ -19,12 +19,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PROCEDURE_PARAMS_H__
#define __GIMP_PROCEDURE_PARAMS_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -1139,4 +1140,7 @@ void gimp_procedure_add_pattern_return_value (GimpProcedure *procedure
const gchar *blurb,
GParamFlags flags);
G_END_DECLS
#endif /* __GIMP_PROCEDURE_PARAMS_H__ */

View File

@@ -19,12 +19,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PROCEDURE_H__
#define __GIMP_PROCEDURE_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -65,10 +66,7 @@ typedef enum
#define GIMP_TYPE_PROCEDURE (gimp_procedure_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpProcedure,
gimp_procedure,
GIMP, PROCEDURE,
GObject)
G_DECLARE_DERIVABLE_TYPE (GimpProcedure, gimp_procedure, GIMP, PROCEDURE, GObject)
/**
@@ -234,4 +232,7 @@ G_GNUC_INTERNAL GimpValueArray * _gimp_procedure_run_array (GimpPro
G_GNUC_INTERNAL gint _gimp_procedure_get_ref_count (GimpProcedure *procedure,
GObject *object);
G_END_DECLS
#endif /* __GIMP_PROCEDURE_H__ */

View File

@@ -19,10 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_PROCEDURE_CONFIG_PRIVATE_H__
#define __GIMP_PROCEDURE_CONFIG_PRIVATE_H__
G_BEGIN_DECLS
G_GNUC_INTERNAL void _gimp_procedure_config_get_values (GimpProcedureConfig *config,
GimpValueArray *values);
@@ -56,4 +58,7 @@ gboolean gimp_procedure_config_load_default (GimpProcedureConfig *config,
gboolean gimp_procedure_config_save_default (GimpProcedureConfig *config,
GError **error);
G_END_DECLS
#endif /* __GIMP_PROCEDURE_CONFIG_PRIVATE_H__ */

View File

@@ -19,23 +19,20 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PROCEDURE_CONFIG_H__
#define __GIMP_PROCEDURE_CONFIG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PROCEDURE_CONFIG (gimp_procedure_config_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpProcedureConfig,
gimp_procedure_config,
GIMP, PROCEDURE_CONFIG,
GObject)
G_DECLARE_DERIVABLE_TYPE (GimpProcedureConfig, gimp_procedure_config, GIMP, PROCEDURE_CONFIG, GObject)
struct _GimpProcedureConfigClass
{
@@ -84,4 +81,7 @@ void gimp_procedure_config_set_color_array (GimpProcedureConfi
gint gimp_procedure_config_get_choice_id (GimpProcedureConfig *config,
const gchar *property_name);
G_END_DECLS
#endif /* __GIMP_PROCEDURE_CONFIG_H__ */

View File

@@ -18,23 +18,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PROCEDURE_DIALOG_H__
#define __GIMP_PROCEDURE_DIALOG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PROCEDURE_DIALOG (gimp_procedure_dialog_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpProcedureDialog,
gimp_procedure_dialog,
GIMP, PROCEDURE_DIALOG,
GimpDialog)
G_DECLARE_DERIVABLE_TYPE (GimpProcedureDialog, gimp_procedure_dialog, GIMP, PROCEDURE_DIALOG, GimpDialog)
struct _GimpProcedureDialogClass
{
@@ -189,4 +186,7 @@ void gimp_procedure_dialog_set_sensitive_if_in (GimpProcedureDialog *dial
gboolean gimp_procedure_dialog_run (GimpProcedureDialog *dialog);
G_END_DECLS
#endif /* __GIMP_PROCEDURE_DIALOG_H__ */

View File

@@ -18,17 +18,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PROC_VIEW_H__
#define __GIMP_PROC_VIEW_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
GtkWidget * gimp_proc_view_new (const gchar *procedure_name);
G_END_DECLS
#endif /* __GIMP_PROC_VIEW_H__ */

View File

@@ -18,12 +18,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PROGRESS_H__
#define __GIMP_PROGRESS_H__
G_BEGIN_DECLS
/**
@@ -131,5 +132,7 @@ gboolean gimp_progress_set_text_printf (const gchar *format,
gboolean gimp_progress_update (gdouble percentage);
G_END_DECLS
#endif /* __GIMP_PROGRESS_H__ */

View File

@@ -19,21 +19,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PROGRESS_BAR_H__
#define __GIMP_PROGRESS_BAR_H__
G_BEGIN_DECLS
#define GIMP_TYPE_PROGRESS_BAR (gimp_progress_bar_get_type ())
G_DECLARE_FINAL_TYPE (GimpProgressBar,
gimp_progress_bar,
GIMP, PROGRESS_BAR,
GtkProgressBar)
G_DECLARE_FINAL_TYPE (GimpProgressBar, gimp_progress_bar, GIMP, PROGRESS_BAR, GtkProgressBar)
GtkWidget * gimp_progress_bar_new (void);
GtkWidget * gimp_progress_bar_new (void);
G_END_DECLS
#endif /* __GIMP_PROGRESS_BAR_H__ */

View File

@@ -19,34 +19,40 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_PROP_WIDGETS_H__
#define __GIMP_PROP_WIDGETS_H__
G_BEGIN_DECLS
/* GimpParamResource */
GtkWidget * gimp_prop_brush_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_font_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_gradient_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_palette_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_pattern_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_drawable_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_brush_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_font_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_gradient_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_palette_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_pattern_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
GtkWidget * gimp_prop_drawable_chooser_new (GObject *config,
const gchar *property_name,
const gchar *chooser_title);
G_END_DECLS
#endif /* __GIMP_PROP_WIDGETS_H__ */

View File

@@ -18,12 +18,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_RESOLUTION_ENTRY__
#define __GIMP_RESOLUTION_ENTRY__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -40,40 +41,40 @@ G_BEGIN_DECLS
* with a much nicer API and also adding a property widget function.
*/
#define GIMP_TYPE_RESOLUTION_ENTRY (gimp_resolution_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpResolutionEntry,
gimp_resolution_entry,
GIMP, RESOLUTION_ENTRY,
GtkGrid)
G_DECLARE_FINAL_TYPE (GimpResolutionEntry, gimp_resolution_entry, GIMP, RESOLUTION_ENTRY, GtkGrid)
typedef struct _GimpResolutionEntry GimpResolutionEntry;
GtkWidget * gimp_prop_resolution_entry_new (GObject *config,
const gchar *width_prop,
const gchar *height_prop,
const gchar *ppi_prop,
const gchar *unit_prop);
GtkWidget * gimp_resolution_entry_new (const gchar *width_label,
gint width,
const gchar *height_label,
gint height,
const gchar *res_label,
gdouble pixel_density,
GimpUnit *display_unit);
GtkWidget * gimp_prop_resolution_entry_new (GObject *config,
const gchar *width_prop,
const gchar *height_prop,
const gchar *ppi_prop,
const gchar *unit_prop);
GtkWidget * gimp_resolution_entry_new (const gchar *width_label,
gint width,
const gchar *height_label,
gint height,
const gchar *res_label,
gdouble pixel_density,
GimpUnit *display_unit);
void gimp_resolution_entry_set_width (GimpResolutionEntry *entry,
gint width);
void gimp_resolution_entry_set_height (GimpResolutionEntry *entry,
gint height);
void gimp_resolution_entry_set_pixel_density (GimpResolutionEntry *entry,
gdouble ppi);
void gimp_resolution_entry_set_unit (GimpResolutionEntry *entry,
GimpUnit *unit);
void gimp_resolution_entry_set_keep_ratio (GimpResolutionEntry *entry,
gboolean keep_ratio);
void gimp_resolution_entry_set_width (GimpResolutionEntry *entry,
gint width);
void gimp_resolution_entry_set_height (GimpResolutionEntry *entry,
gint height);
void gimp_resolution_entry_set_pixel_density (GimpResolutionEntry *entry,
gdouble ppi);
void gimp_resolution_entry_set_unit (GimpResolutionEntry *entry,
GimpUnit *unit);
void gimp_resolution_entry_set_keep_ratio (GimpResolutionEntry *entry,
gboolean keep_ratio);
gint gimp_resolution_entry_get_width (GimpResolutionEntry *entry);
gint gimp_resolution_entry_get_height (GimpResolutionEntry *entry);
gdouble gimp_resolution_entry_get_density (GimpResolutionEntry *entry);
GimpUnit * gimp_resolution_entry_get_unit (GimpResolutionEntry *entry);
gboolean gimp_resolution_entry_get_keep_ratio (GimpResolutionEntry *entry);
gint gimp_resolution_entry_get_width (GimpResolutionEntry *entry);
gint gimp_resolution_entry_get_height (GimpResolutionEntry *entry);
gdouble gimp_resolution_entry_get_density (GimpResolutionEntry *entry);
GimpUnit * gimp_resolution_entry_get_unit (GimpResolutionEntry *entry);
gboolean gimp_resolution_entry_get_keep_ratio (GimpResolutionEntry *entry);
G_END_DECLS
#endif /* __GIMP_RESOLUTION_ENTRY__ */

View File

@@ -16,22 +16,20 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_RESOURCE_H__
#define __GIMP_RESOURCE_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_RESOURCE (gimp_resource_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpResource,
gimp_resource,
GIMP, RESOURCE,
GObject)
G_DECLARE_DERIVABLE_TYPE (GimpResource, gimp_resource, GIMP, RESOURCE, GObject)
struct _GimpResourceClass
@@ -51,7 +49,6 @@ struct _GimpResourceClass
void (*_gimp_reserved9) (void);
};
gint32 gimp_resource_get_id (GimpResource *resource);
GimpResource * gimp_resource_get_by_id (gint32 resource_id);
GimpResource * gimp_resource_get_by_name (GType resource_type,
@@ -64,4 +61,7 @@ gboolean gimp_resource_is_gradient (GimpResource *resource);
gboolean gimp_resource_is_palette (GimpResource *resource);
gboolean gimp_resource_is_font (GimpResource *resource);
G_END_DECLS
#endif /* __GIMP_RESOURCE_H__ */

View File

@@ -16,20 +16,17 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_RESOURCE_CHOOSER_H__
#define __GIMP_RESOURCE_CHOOSER_H__
G_BEGIN_DECLS
#define GIMP_TYPE_RESOURCE_CHOOSER (gimp_resource_chooser_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpResourceChooser,
gimp_resource_chooser,
GIMP, RESOURCE_CHOOSER,
GtkBox)
G_DECLARE_DERIVABLE_TYPE (GimpResourceChooser, gimp_resource_chooser, GIMP, RESOURCE_CHOOSER, GtkBox)
struct _GimpResourceChooserClass
{
@@ -64,3 +61,5 @@ G_GNUC_INTERNAL void _gimp_resource_chooser_set_clickable (GimpResourceChoose
GtkWidget *widget);
G_END_DECLS
#endif /* __GIMP_RESOURCE_CHOOSER_H__ */

View File

@@ -16,12 +16,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_RESOURCE_SELECT_H__
#define __GIMP_RESOURCE_SELECT_H__
G_BEGIN_DECLS
/**
@@ -36,16 +37,17 @@ typedef void (* GimpResourceChoosedCallback) (GimpResource *resource,
gboolean is_dialog_closing,
gpointer owner_data);
const gchar * gimp_resource_select_new (const gchar *title,
GBytes *parent_handle,
GimpResource *resource,
GType resource_type,
GimpResourceChoosedCallback callback,
gpointer owner_data,
GDestroyNotify data_destroy);
const gchar * gimp_resource_select_new (const gchar *title,
GBytes *parent_handle,
GimpResource *resource,
GType resource_type,
GimpResourceChoosedCallback callback,
gpointer owner_data,
GDestroyNotify data_destroy);
void gimp_resource_select_set (const gchar *callback_name,
GimpResource *resource);
void gimp_resource_select_set (const gchar *callback_name,
GimpResource *resource);
G_END_DECLS
#endif /* __GIMP_RESOURCE_SELECT_H__ */

View File

@@ -18,31 +18,33 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimpchannel.h>
#ifndef __GIMP_SELECTION_H__
#define __GIMP_SELECTION_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimpchannel.h>
#define GIMP_TYPE_SELECTION (gimp_selection_get_type ())
G_DECLARE_FINAL_TYPE (GimpSelection,
gimp_selection,
GIMP, SELECTION,
GimpChannel)
G_DECLARE_FINAL_TYPE (GimpSelection, gimp_selection, GIMP, SELECTION, GimpChannel)
GimpSelection * gimp_selection_get_by_id (gint32 selection_id);
GimpSelection * gimp_selection_get_by_id (gint32 selection_id);
GimpLayer * gimp_selection_float (GimpImage *image,
GimpLayer * gimp_selection_float (GimpImage *image,
GimpDrawable **drawables,
gint offx,
gint offy);
gint offx,
gint offy);
G_END_DECLS
#endif /* __GIMP_SELECTION_H__ */

View File

@@ -19,26 +19,28 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#include <libgimp/gimplayer.h>
#ifndef __GIMP_TEXT_LAYER_H__
#define __GIMP_TEXT_LAYER_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#include <libgimp/gimplayer.h>
#define GIMP_TYPE_TEXT_LAYER (gimp_text_layer_get_type ())
G_DECLARE_FINAL_TYPE (GimpTextLayer,
gimp_text_layer,
GIMP, TEXT_LAYER,
GimpLayer)
G_DECLARE_FINAL_TYPE (GimpTextLayer, gimp_text_layer, GIMP, TEXT_LAYER, GimpLayer)
GimpTextLayer * gimp_text_layer_get_by_id (gint32 layer_id);
GimpTextLayer * gimp_text_layer_get_by_id (gint32 layer_id);
G_END_DECLS
#endif /* __GIMP_TEXT_LAYER_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_THUMBNAIL_PROCEDURE_H__
#define __GIMP_THUMBNAIL_PROCEDURE_H__
#include <libgimp/gimpprocedure.h>
@@ -63,17 +64,17 @@ typedef GimpValueArray * (* GimpRunThumbnailFunc) (GimpProcedure *procedu
#define GIMP_TYPE_THUMBNAIL_PROCEDURE (gimp_thumbnail_procedure_get_type ())
G_DECLARE_FINAL_TYPE (GimpThumbnailProcedure,
gimp_thumbnail_procedure,
GIMP, THUMBNAIL_PROCEDURE,
GimpProcedure)
G_DECLARE_FINAL_TYPE (GimpThumbnailProcedure, gimp_thumbnail_procedure, GIMP, THUMBNAIL_PROCEDURE, GimpProcedure)
GimpProcedure * gimp_thumbnail_procedure_new (GimpPlugIn *plug_in,
const gchar *name,
GimpPDBProcType proc_type,
GimpRunThumbnailFunc run_func,
gpointer run_data,
GDestroyNotify run_data_destroy);
GimpProcedure * gimp_thumbnail_procedure_new (GimpPlugIn *plug_in,
const gchar *name,
GimpPDBProcType proc_type,
GimpRunThumbnailFunc run_func,
gpointer run_data,
GDestroyNotify run_data_destroy);
G_END_DECLS
#endif /* __GIMP_THUMBNAIL_PROCEDURE_H__ */

View File

@@ -19,7 +19,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_TILE_BACKEND_PLUGIN_H__
#define __GIMP_TILE_BACKEND_PLUGIN_H__
#include <gegl-buffer-backend.h>
@@ -55,3 +56,5 @@ GeglTileBackend * _gimp_tile_backend_plugin_new (GimpDrawable *drawable,
gint shadow);
G_END_DECLS
#endif /* __GIMP_TILE_BACKEND_PLUGIN_H__ */

View File

@@ -18,7 +18,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_TYPES_H__
#define __GIMP_TYPES_H__
#include <libgimpbase/gimpbasetypes.h>
@@ -80,4 +81,7 @@ typedef enum
GIMP_PIXBUF_LARGE_CHECKS
} GimpPixbufTransparency;
G_END_DECLS
#endif /* __GIMP_TYPES_H__ */

View File

@@ -16,7 +16,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_UI_H__
#define __GIMP_UI_H__
#include <gio/gio.h>
#include <gtk/gtk.h>
@@ -63,4 +64,7 @@ void gimp_window_set_transient_for (GtkWindow *window,
void gimp_window_set_transient_for_display (GtkWindow *window,
GimpDisplay *display);
G_END_DECLS
#endif /* __GIMP_UI_H__ */

View File

@@ -18,7 +18,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_UI_TYPES_H__
#define __GIMP_UI_TYPES_H__
#include <libgimpwidgets/gimpwidgetstypes.h>
@@ -52,4 +53,7 @@ typedef struct _GimpGradientChooser GimpGradientChooser;
typedef struct _GimpPaletteChooser GimpPaletteChooser;
typedef struct _GimpPatternChooser GimpPatternChooser;
G_END_DECLS
#endif /* __GIMP_UI_TYPES_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_VECTOR_LOAD_PROCEDURE_H__
#define __GIMP_VECTOR_LOAD_PROCEDURE_H__
#include <libgimp/gimpfileprocedure.h>
@@ -150,23 +151,20 @@ typedef GimpValueArray * (* GimpRunVectorLoadFunc) (GimpProcedure
*
* Since: 3.0
**/
typedef gboolean (* GimpExtractVectorFunc) (GimpProcedure *procedure,
GimpRunMode run_mode,
GFile *file,
GimpMetadata *metadata,
GimpProcedureConfig *config,
GimpVectorLoadData *extracted_data,
gpointer *data_for_run,
GDestroyNotify *data_for_run_destroy,
gpointer extract_data,
GError **error);
typedef gboolean (* GimpExtractVectorFunc) (GimpProcedure *procedure,
GimpRunMode run_mode,
GFile *file,
GimpMetadata *metadata,
GimpProcedureConfig *config,
GimpVectorLoadData *extracted_data,
gpointer *data_for_run,
GDestroyNotify *data_for_run_destroy,
gpointer extract_data,
GError **error);
#define GIMP_TYPE_VECTOR_LOAD_PROCEDURE (gimp_vector_load_procedure_get_type ())
G_DECLARE_FINAL_TYPE (GimpVectorLoadProcedure,
gimp_vector_load_procedure,
GIMP, VECTOR_LOAD_PROCEDURE,
GimpLoadProcedure)
G_DECLARE_FINAL_TYPE (GimpVectorLoadProcedure, gimp_vector_load_procedure, GIMP, VECTOR_LOAD_PROCEDURE, GimpLoadProcedure)
GimpProcedure * gimp_vector_load_procedure_new (GimpPlugIn *plug_in,
@@ -184,4 +182,7 @@ gboolean gimp_vector_load_procedure_extract_dimensions (GimpVectorLoadPro
GimpVectorLoadData *data,
GError **error);
G_END_DECLS
#endif /* __GIMP_VECTOR_LOAD_PROCEDURE_H__ */

View File

@@ -18,22 +18,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_VECTOR_LOAD_PROCEDURE_DIALOG_H__
#define __GIMP_VECTOR_LOAD_PROCEDURE_DIALOG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_VECTOR_LOAD_PROCEDURE_DIALOG (gimp_vector_load_procedure_dialog_get_type ())
G_DECLARE_FINAL_TYPE (GimpVectorLoadProcedureDialog,
gimp_vector_load_procedure_dialog,
GIMP, VECTOR_LOAD_PROCEDURE_DIALOG,
GimpProcedureDialog)
G_DECLARE_FINAL_TYPE (GimpVectorLoadProcedureDialog, gimp_vector_load_procedure_dialog, GIMP, VECTOR_LOAD_PROCEDURE_DIALOG, GimpProcedureDialog)
GtkWidget * gimp_vector_load_procedure_dialog_new (GimpVectorLoadProcedure *procedure,
@@ -41,4 +39,8 @@ GtkWidget * gimp_vector_load_procedure_dialog_new (GimpVectorLoadProcedure *proc
GimpVectorLoadData *extracted_data,
GFile *file);
G_END_DECLS
#endif /* __GIMP_VECTOR_LOAD_PROCEDURE_DIALOG_H__ */

View File

@@ -19,22 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_UI_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimpui.h> can be included directly."
#endif
#ifndef __GIMP_ZOOM_PREVIEW_H__
#define __GIMP_ZOOM_PREVIEW_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_ZOOM_PREVIEW (gimp_zoom_preview_get_type ())
G_DECLARE_FINAL_TYPE (GimpZoomPreview,
gimp_zoom_preview,
GIMP, ZOOM_PREVIEW,
GimpScrolledPreview)
G_DECLARE_FINAL_TYPE (GimpZoomPreview, gimp_zoom_preview, GIMP, ZOOM_PREVIEW, GimpScrolledPreview)
GtkWidget * gimp_zoom_preview_new_from_drawable (GimpDrawable *drawable);
@@ -50,4 +49,7 @@ GimpDrawable * gimp_zoom_preview_get_drawable (GimpZoomPreview
GimpZoomModel * gimp_zoom_preview_get_model (GimpZoomPreview *preview);
gdouble gimp_zoom_preview_get_factor (GimpZoomPreview *preview);
G_END_DECLS
#endif /* __GIMP_ZOOM_PREVIEW_H__ */

View File

@@ -18,7 +18,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __LIBGIMP_INTL_H__
#define __LIBGIMP_INTL_H__
#ifndef GETTEXT_PACKAGE
#error "config.h must be included prior to libgimp-intl.h"
@@ -39,3 +40,6 @@
#define N_(String) (String)
#define NC_(Context,String) (String)
#endif /* __LIBGIMP_INTL_H__ */

View File

@@ -18,7 +18,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS_INTL_H__
#ifndef GETTEXT_PACKAGE
#error "config.h must be included prior to stdplugins-intl.h"
@@ -39,3 +40,6 @@ set_i18n (GimpPlugIn *plug_in, \
};
#define STD_SET_I18N set_i18n
#endif /* __STDPLUGINS_INTL_H__ */

View File

@@ -20,7 +20,8 @@
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_ADAPTIVE_SUPERSAMPLE_H__
#define __GIMP_ADAPTIVE_SUPERSAMPLE_H__
G_BEGIN_DECLS
@@ -75,4 +76,7 @@ gulong gimp_adaptive_supersample_area (gint x1,
GimpProgressFunc progress_func,
gpointer progress_data);
G_END_DECLS
#endif /* __GIMP_ADAPTIVE_SUPERSAMPLE_H__ */

View File

@@ -20,7 +20,8 @@
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_BILINEAR_H__
#define __GIMP_BILINEAR_H__
G_BEGIN_DECLS
@@ -48,4 +49,7 @@ void gimp_bilinear_rgb (gdouble x,
gboolean has_alpha,
gdouble *retvalues);
G_END_DECLS
#endif /* __GIMP_BILINEAR_H__ */

View File

@@ -20,7 +20,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_CAIRO_H__
#define __GIMP_CAIRO_H__
cairo_pattern_t * gimp_cairo_checkerboard_create (cairo_t *cr,
@@ -149,3 +150,6 @@ GeglBuffer * gimp_cairo_surface_create_buffer (cairo_surface_t *surface,
(a) = ta; \
} G_STMT_END
#endif
#endif /* __GIMP_CAIRO_H__ */

View File

@@ -16,8 +16,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_COLOR_PRIVATE_H__
#define __GIMP_COLOR_PRIVATE_H__
/* Legacy definition to calculate luminance from sRGB.
*
@@ -35,3 +35,6 @@
#define GIMP_RGB_LUMINANCE(r,g,b) ((r) * GIMP_RGB_LUMINANCE_RED + \
(g) * GIMP_RGB_LUMINANCE_GREEN + \
(b) * GIMP_RGB_LUMINANCE_BLUE)
#endif /* __GIMP_COLOR_PRIVATE_H__ */

View File

@@ -16,7 +16,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_COLOR_H__
#define __GIMP_COLOR_H__
#define __GIMP_COLOR_H_INSIDE__
@@ -119,4 +120,7 @@ typedef const Babl * GimpBablFormat;
GType gimp_babl_format_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_COLOR_H__ */

View File

@@ -23,7 +23,8 @@
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_COLOR_MANAGED_H__
#define __GIMP_COLOR_MANAGED_H__
G_BEGIN_DECLS
@@ -31,11 +32,7 @@ G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_MANAGED (gimp_color_managed_get_type ())
G_DECLARE_INTERFACE (GimpColorManaged,
gimp_color_managed,
GIMP, COLOR_MANAGED,
GObject)
G_DECLARE_INTERFACE (GimpColorManaged, gimp_color_managed, GIMP, COLOR_MANAGED, GObject)
/**
* GimpColorManagedInterface:
@@ -106,4 +103,7 @@ void gimp_color_managed_simulation_intent_changed (GimpColo
void gimp_color_managed_simulation_bpc_changed (GimpColorManaged *managed);
G_END_DECLS
#endif /* __GIMP_COLOR_MANAGED_IFACE_H__ */

View File

@@ -24,7 +24,8 @@
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_COLOR_PROFILE_H__
#define __GIMP_COLOR_PROFILE_H__
G_BEGIN_DECLS
@@ -32,10 +33,7 @@ G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_PROFILE (gimp_color_profile_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorProfile,
gimp_color_profile,
GIMP, COLOR_PROFILE,
GObject)
G_DECLARE_FINAL_TYPE (GimpColorProfile, gimp_color_profile, GIMP, COLOR_PROFILE, GObject)
GimpColorProfile * gimp_color_profile_new_rgb_srgb (void);
@@ -96,4 +94,7 @@ const Babl * gimp_color_profile_get_format (GimpColorProfile *
const Babl * gimp_color_profile_get_lcms_format (const Babl *format,
guint32 *lcms_format);
G_END_DECLS
#endif /* __GIMP_COLOR_PROFILE_H__ */

View File

@@ -24,7 +24,8 @@
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_COLOR_TRANSFORM_H__
#define __GIMP_COLOR_TRANSFORM_H__
G_BEGIN_DECLS
@@ -51,10 +52,7 @@ typedef enum
#define GIMP_TYPE_COLOR_TRANSFORM (gimp_color_transform_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorTransform,
gimp_color_transform,
GIMP, COLOR_TRANSFORM,
GObject)
G_DECLARE_FINAL_TYPE (GimpColorTransform, gimp_color_transform, GIMP, COLOR_TRANSFORM, GObject)
GimpColorTransform *
@@ -91,4 +89,7 @@ void gimp_color_transform_process_buffer (GimpColorTransform *transfo
gboolean gimp_color_transform_can_gegl_copy (GimpColorProfile *src_profile,
GimpColorProfile *dest_profile);
G_END_DECLS
#endif /* __GIMP_COLOR_TRANSFORM_H__ */

View File

@@ -16,11 +16,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_COLOR_TYPES_H__
#define __GIMP_COLOR_TYPES_H__
#include <libgimpbase/gimpbasetypes.h>
#include <libgimpconfig/gimpconfigtypes.h>
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -30,4 +33,7 @@ typedef struct _GimpColorManaged GimpColorManaged; /* dummy typedef */
typedef struct _GimpColorProfile GimpColorProfile;
typedef struct _GimpColorTransform GimpColorTransform;
G_END_DECLS
#endif /* __GIMP_COLOR_TYPES_H__ */

View File

@@ -23,7 +23,8 @@
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_PIXBUF_H__
#define __GIMP_PIXBUF_H__
G_BEGIN_DECLS
@@ -36,4 +37,7 @@ GeglBuffer * gimp_pixbuf_create_buffer (GdkPixbuf *pixbuf);
guint8 * gimp_pixbuf_get_icc_profile (GdkPixbuf *pixbuf,
gsize *length);
G_END_DECLS
#endif /* __GIMP_PIXBUF_H__ */

View File

@@ -19,7 +19,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_MODULE_H__
#define __GIMP_MODULE_H__
#include <gio/gio.h>
#include <gmodule.h>
@@ -34,6 +35,7 @@
G_BEGIN_DECLS
/**
* GIMP_MODULE_ABI_VERSION:
*
@@ -126,7 +128,7 @@ struct _GimpModuleInfo
*
* Returns: The info struct describing the module.
**/
typedef const GimpModuleInfo * (* GimpModuleQueryFunc) (GTypeModule *module);
typedef const GimpModuleInfo * (* GimpModuleQueryFunc) (GTypeModule *module);
/**
* GimpModuleRegisterFunc:
@@ -141,7 +143,7 @@ typedef const GimpModuleInfo * (* GimpModuleQueryFunc) (GTypeModule *module);
*
* Returns: Whether the registration was succesfull
**/
typedef gboolean (* GimpModuleRegisterFunc) (GTypeModule *module);
typedef gboolean (* GimpModuleRegisterFunc) (GTypeModule *module);
/* GimpModules have to implement these */
@@ -150,11 +152,7 @@ G_MODULE_EXPORT gboolean gimp_module_register (GTypeModule *module
#define GIMP_TYPE_MODULE (gimp_module_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpModule,
gimp_module,
GIMP, MODULE,
GTypeModule)
G_DECLARE_DERIVABLE_TYPE (GimpModule, gimp_module, GIMP, MODULE, GTypeModule)
struct _GimpModuleClass
{
@@ -195,4 +193,7 @@ const gchar * gimp_module_get_last_error (GimpModule *module);
gboolean gimp_module_query_module (GimpModule *module);
G_END_DECLS
#endif /* __GIMP_MODULE_H__ */

View File

@@ -16,19 +16,17 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_MODULE_H_INSIDE__) && !defined (GIMP_MODULE_COMPILATION)
#error "Only <libgimpmodule/gimpmodule.h> can be included directly."
#endif
#ifndef __GIMP_MODULE_DB_H__
#define __GIMP_MODULE_DB_H__
G_BEGIN_DECLS
#define GIMP_TYPE_MODULE_DB (gimp_module_db_get_type ())
G_DECLARE_FINAL_TYPE (GimpModuleDB,
gimp_module_db,
GIMP, MODULE_DB,
GObject)
#define GIMP_TYPE_MODULE_DB (gimp_module_db_get_type ())
G_DECLARE_FINAL_TYPE (GimpModuleDB, gimp_module_db, GIMP, MODULE_DB, GObject)
GimpModuleDB * gimp_module_db_new (gboolean verbose);
@@ -46,4 +44,7 @@ void gimp_module_db_load (GimpModuleDB *db,
void gimp_module_db_refresh (GimpModuleDB *db,
const gchar *module_path);
G_END_DECLS
#endif /* __GIMP_MODULE_DB_H__ */

View File

@@ -16,10 +16,13 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_MODULE_TYPES_H__
#define __GIMP_MODULE_TYPES_H__
#include <libgimpbase/gimpbasetypes.h>
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -29,4 +32,7 @@ typedef struct _GimpModule GimpModule;
typedef struct _GimpModuleInfo GimpModuleInfo;
typedef struct _GimpModuleDB GimpModuleDB;
G_END_DECLS
#endif /* __GIMP_MODULE_TYPES_H__ */

View File

@@ -22,10 +22,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_THUMB_ENUMS_H__
#define __GIMP_THUMB_ENUMS_H__
G_BEGIN_DECLS
/**
* SECTION: gimpthumb-enums
* @title: GimpThumb-enums
@@ -110,4 +112,7 @@ typedef enum
GIMP_THUMB_STATE_OK
} GimpThumbState;
G_END_DECLS
#endif /* __GIMP_THUMB_ENUMS_H__ */

View File

@@ -22,14 +22,16 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_THUMB_H_INSIDE__) && !defined (GIMP_THUMB_COMPILATION)
#error "Only <libgimpthumb/gimpthumb.h> can be included directly."
#endif
#ifndef __GIMP_THUMB_ERROR_H__
#define __GIMP_THUMB_ERROR_H__
G_BEGIN_DECLS
/**
* GimpThumbError:
* @GIMP_THUMB_ERROR_OPEN: there was a problem opening the file
@@ -56,4 +58,7 @@ typedef enum
GQuark gimp_thumb_error_quark (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_THUMB_ERROR_H__ */

View File

@@ -22,7 +22,9 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_THUMB_TYPES_H__
#define __GIMP_THUMB_TYPES_H__
#include <libgimpthumb/gimpthumb-enums.h>
@@ -31,3 +33,6 @@ G_BEGIN_DECLS
typedef struct _GimpThumbnail GimpThumbnail;
G_END_DECLS
#endif /* __GIMP_THUMB_TYPES_H__ */

View File

@@ -26,10 +26,12 @@
#error "Only <libgimpthumb/gimpthumb.h> can be included directly."
#endif
#pragma once
#ifndef __GIMP_THUMB_UTILS_H__
#define __GIMP_THUMB_UTILS_H__
G_BEGIN_DECLS
gboolean gimp_thumb_init (const gchar *creator,
const gchar *thumb_basedir);
@@ -65,4 +67,7 @@ G_GNUC_INTERNAL void _gimp_thumbs_delete_others (const gchar *uri,
GimpThumbSize size);
G_GNUC_INTERNAL gchar * _gimp_thumb_filename_from_uri (const gchar *uri);
G_END_DECLS
#endif /* __GIMP_THUMB_UTILS_H__ */

View File

@@ -22,7 +22,8 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef __GIMP_THUMB_H__
#define __GIMP_THUMB_H__
#define __GIMP_THUMB_H_INSIDE__
@@ -33,3 +34,5 @@
#include <libgimpthumb/gimpthumbnail.h>
#undef __GIMP_THUMB_H_INSIDE__
#endif /* __GIMP_THUMB_H__ */

View File

@@ -22,19 +22,18 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_THUMB_H_INSIDE__) && !defined (GIMP_THUMB_COMPILATION)
#error "Only <libgimpthumb/gimpthumb.h> can be included directly."
#endif
#ifndef __GIMP_THUMBNAIL_H__
#define __GIMP_THUMBNAIL_H__
G_BEGIN_DECLS
#define GIMP_TYPE_THUMBNAIL (gimp_thumbnail_get_type ())
G_DECLARE_FINAL_TYPE (GimpThumbnail,
gimp_thumbnail,
GIMP, THUMBNAIL,
GObject)
G_DECLARE_FINAL_TYPE (GimpThumbnail, gimp_thumbnail, GIMP, THUMBNAIL, GObject)
GimpThumbnail * gimp_thumbnail_new (void);
@@ -77,4 +76,7 @@ void gimp_thumbnail_delete_others (GimpThumbnail *thumbnail,
gboolean gimp_thumbnail_has_failed (GimpThumbnail *thumbnail);
G_END_DECLS
#endif /* __GIMP_THUMBNAIL_H__ */

View File

@@ -58,10 +58,13 @@ print ENUMFILE <<'LGPL';
LGPL
my $guard = "__GIMP_ENUMS_H__";
print ENUMFILE <<HEADER;
#pragma once
#ifndef $guard
#define $guard
G_BEGIN_DECLS
HEADER
foreach (sort keys %enums) {
@@ -112,7 +115,10 @@ void gimp_enums_init (void);
const gchar ** gimp_enums_get_type_names (gint *n_type_names);
G_END_DECLS
#endif /* $guard */
HEADER
close ENUMFILE;

View File

@@ -840,13 +840,15 @@ SECTION_DOCS
print PFILE $lgpl_top;
print PFILE " * gimp_pdb_headers.h\n";
print PFILE $lgpl_bottom;
my $guard = "__GIMP_PDB_HEADERS_H__";
print PFILE <<HEADER;
#pragma once
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef $guard
#define $guard
HEADER
my @groups;
foreach $group (keys %out) {
@@ -864,6 +866,7 @@ HEADER
}
print PFILE <<HEADER;
#endif /* $guard */
HEADER
close PFILE;
&write_file($gimp_pdb_headers, $destdir);