mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
app, libgimp, pdb: have GimpTrcType into public libgimp.
It is being used as filter arguments in 2 GIMP filters (curves and levels) so we want to be able to send this enum type through the wire.
This commit is contained in:
parent
50e9f360f3
commit
04c673852b
5 changed files with 35 additions and 3 deletions
|
@ -482,7 +482,7 @@ typedef enum /*< pdb-skip >*/
|
||||||
|
|
||||||
GType gimp_trc_type_get_type (void) G_GNUC_CONST;
|
GType gimp_trc_type_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
typedef enum /*< pdb-skip >*/
|
typedef enum
|
||||||
{
|
{
|
||||||
GIMP_TRC_LINEAR, /*< desc="Linear" >*/
|
GIMP_TRC_LINEAR, /*< desc="Linear" >*/
|
||||||
GIMP_TRC_NON_LINEAR, /*< desc="Non-Linear" >*/
|
GIMP_TRC_NON_LINEAR, /*< desc="Non-Linear" >*/
|
||||||
|
|
|
@ -1059,6 +1059,7 @@ EXPORTS
|
||||||
gimp_thumbnail_procedure_new
|
gimp_thumbnail_procedure_new
|
||||||
gimp_tile_height
|
gimp_tile_height
|
||||||
gimp_tile_width
|
gimp_tile_width
|
||||||
|
gimp_trc_type_get_type
|
||||||
gimp_unit_new
|
gimp_unit_new
|
||||||
gimp_user_time
|
gimp_user_time
|
||||||
gimp_vector_load_procedure_extract_dimensions
|
gimp_vector_load_procedure_extract_dimensions
|
||||||
|
|
|
@ -64,7 +64,8 @@ static const GimpGetTypeFunc get_type_funcs[] =
|
||||||
gimp_text_justification_get_type,
|
gimp_text_justification_get_type,
|
||||||
gimp_transfer_mode_get_type,
|
gimp_transfer_mode_get_type,
|
||||||
gimp_transform_direction_get_type,
|
gimp_transform_direction_get_type,
|
||||||
gimp_transform_resize_get_type
|
gimp_transform_resize_get_type,
|
||||||
|
gimp_trc_type_get_type
|
||||||
};
|
};
|
||||||
|
|
||||||
static const gchar * const type_names[] =
|
static const gchar * const type_names[] =
|
||||||
|
@ -130,7 +131,8 @@ static const gchar * const type_names[] =
|
||||||
"GimpTextJustification",
|
"GimpTextJustification",
|
||||||
"GimpTransferMode",
|
"GimpTransferMode",
|
||||||
"GimpTransformDirection",
|
"GimpTransformDirection",
|
||||||
"GimpTransformResize"
|
"GimpTransformResize",
|
||||||
|
"GimpTRCType"
|
||||||
};
|
};
|
||||||
|
|
||||||
static gboolean enums_initialized = FALSE;
|
static gboolean enums_initialized = FALSE;
|
||||||
|
|
|
@ -278,6 +278,26 @@ typedef enum
|
||||||
} GimpLayerMode;
|
} GimpLayerMode;
|
||||||
|
|
||||||
|
|
||||||
|
#define GIMP_TYPE_TRC_TYPE (gimp_trc_type_get_type ())
|
||||||
|
|
||||||
|
GType gimp_trc_type_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GimpTRCType:
|
||||||
|
* @GIMP_TRC_LINEAR: GIMP_TRC_LINEAR
|
||||||
|
* @GIMP_TRC_NON_LINEAR: GIMP_TRC_NON_LINEAR
|
||||||
|
* @GIMP_TRC_PERCEPTUAL: GIMP_TRC_PERCEPTUAL
|
||||||
|
*
|
||||||
|
* Extracted from app/core/core-enums.h
|
||||||
|
**/
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
GIMP_TRC_LINEAR,
|
||||||
|
GIMP_TRC_NON_LINEAR,
|
||||||
|
GIMP_TRC_PERCEPTUAL
|
||||||
|
} GimpTRCType;
|
||||||
|
|
||||||
|
|
||||||
void gimp_enums_init (void);
|
void gimp_enums_init (void);
|
||||||
|
|
||||||
const gchar ** gimp_enums_get_type_names (gint *n_type_names);
|
const gchar ** gimp_enums_get_type_names (gint *n_type_names);
|
||||||
|
|
|
@ -861,6 +861,15 @@ package Gimp::CodeGen::enums;
|
||||||
GIMP_HISTOGRAM_ALPHA => '4',
|
GIMP_HISTOGRAM_ALPHA => '4',
|
||||||
GIMP_HISTOGRAM_LUMINANCE => '5' }
|
GIMP_HISTOGRAM_LUMINANCE => '5' }
|
||||||
},
|
},
|
||||||
|
GimpTRCType =>
|
||||||
|
{ contig => 1,
|
||||||
|
header => 'core/core-enums.h',
|
||||||
|
symbols => [ qw(GIMP_TRC_LINEAR GIMP_TRC_NON_LINEAR
|
||||||
|
GIMP_TRC_PERCEPTUAL) ],
|
||||||
|
mapping => { GIMP_TRC_LINEAR => '0',
|
||||||
|
GIMP_TRC_NON_LINEAR => '1',
|
||||||
|
GIMP_TRC_PERCEPTUAL => '2' }
|
||||||
|
},
|
||||||
GimpBrushApplicationMode =>
|
GimpBrushApplicationMode =>
|
||||||
{ contig => 1,
|
{ contig => 1,
|
||||||
header => 'paint/paint-enums.h',
|
header => 'paint/paint-enums.h',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue