2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include <glib-object.h>
|
2007-10-31 21:09:46 +08:00
|
|
|
#undef GIMP_DISABLE_DEPRECATED
|
2004-07-29 20:33:15 +08:00
|
|
|
#include "gimpbasetypes.h"
|
|
|
|
#include "libgimp/libgimp-intl.h"
|
|
|
|
|
2017-05-07 04:48:53 +08:00
|
|
|
/* enumerations from "gimpbaseenums.h" */
|
2005-01-23 07:38:36 +08:00
|
|
|
GType
|
|
|
|
gimp_add_mask_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
{ GIMP_ADD_MASK_WHITE, "GIMP_ADD_MASK_WHITE", "white" },
|
|
|
|
{ GIMP_ADD_MASK_BLACK, "GIMP_ADD_MASK_BLACK", "black" },
|
|
|
|
{ GIMP_ADD_MASK_ALPHA, "GIMP_ADD_MASK_ALPHA", "alpha" },
|
|
|
|
{ GIMP_ADD_MASK_ALPHA_TRANSFER, "GIMP_ADD_MASK_ALPHA_TRANSFER", "alpha-transfer" },
|
|
|
|
{ GIMP_ADD_MASK_SELECTION, "GIMP_ADD_MASK_SELECTION", "selection" },
|
|
|
|
{ GIMP_ADD_MASK_COPY, "GIMP_ADD_MASK_COPY", "copy" },
|
|
|
|
{ GIMP_ADD_MASK_CHANNEL, "GIMP_ADD_MASK_CHANNEL", "channel" },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
{ GIMP_ADD_MASK_WHITE, NC_("add-mask-type", "_White (full opacity)"), NULL },
|
|
|
|
{ GIMP_ADD_MASK_BLACK, NC_("add-mask-type", "_Black (full transparency)"), NULL },
|
|
|
|
{ GIMP_ADD_MASK_ALPHA, NC_("add-mask-type", "Layer's _alpha channel"), NULL },
|
|
|
|
{ GIMP_ADD_MASK_ALPHA_TRANSFER, NC_("add-mask-type", "_Transfer layer's alpha channel"), NULL },
|
|
|
|
{ GIMP_ADD_MASK_SELECTION, NC_("add-mask-type", "_Selection"), NULL },
|
|
|
|
{ GIMP_ADD_MASK_COPY, NC_("add-mask-type", "_Grayscale copy of layer"), NULL },
|
|
|
|
{ GIMP_ADD_MASK_CHANNEL, NC_("add-mask-type", "C_hannel"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpAddMaskType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "add-mask-type");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_blend_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
{ GIMP_BLEND_FG_BG_RGB, "GIMP_BLEND_FG_BG_RGB", "fg-bg-rgb" },
|
|
|
|
{ GIMP_BLEND_FG_BG_HSV, "GIMP_BLEND_FG_BG_HSV", "fg-bg-hsv" },
|
|
|
|
{ GIMP_BLEND_FG_TRANSPARENT, "GIMP_BLEND_FG_TRANSPARENT", "fg-transparent" },
|
|
|
|
{ GIMP_BLEND_CUSTOM, "GIMP_BLEND_CUSTOM", "custom" },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
{ GIMP_BLEND_FG_BG_RGB, NC_("blend-mode", "FG to BG (RGB)"), NULL },
|
|
|
|
{ GIMP_BLEND_FG_BG_HSV, NC_("blend-mode", "FG to BG (HSV)"), NULL },
|
|
|
|
{ GIMP_BLEND_FG_TRANSPARENT, NC_("blend-mode", "FG to transparent"), NULL },
|
|
|
|
{ GIMP_BLEND_CUSTOM, NC_("blend-mode", "Custom gradient"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpBlendMode", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "blend-mode");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
|
|
|
gimp_brush_generated_shape_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_BRUSH_GENERATED_CIRCLE, "GIMP_BRUSH_GENERATED_CIRCLE", "circle" },
|
|
|
|
{ GIMP_BRUSH_GENERATED_SQUARE, "GIMP_BRUSH_GENERATED_SQUARE", "square" },
|
|
|
|
{ GIMP_BRUSH_GENERATED_DIAMOND, "GIMP_BRUSH_GENERATED_DIAMOND", "diamond" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_BRUSH_GENERATED_CIRCLE, NC_("brush-generated-shape", "Circle"), NULL },
|
|
|
|
{ GIMP_BRUSH_GENERATED_SQUARE, NC_("brush-generated-shape", "Square"), NULL },
|
|
|
|
{ GIMP_BRUSH_GENERATED_DIAMOND, NC_("brush-generated-shape", "Diamond"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpBrushGeneratedShape", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "brush-generated-shape");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2015-11-09 09:16:03 +08:00
|
|
|
GType
|
|
|
|
gimp_cap_style_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_CAP_BUTT, "GIMP_CAP_BUTT", "butt" },
|
|
|
|
{ GIMP_CAP_ROUND, "GIMP_CAP_ROUND", "round" },
|
|
|
|
{ GIMP_CAP_SQUARE, "GIMP_CAP_SQUARE", "square" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_CAP_BUTT, NC_("cap-style", "Butt"), NULL },
|
|
|
|
{ GIMP_CAP_ROUND, NC_("cap-style", "Round"), NULL },
|
|
|
|
{ GIMP_CAP_SQUARE, NC_("cap-style", "Square"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpCapStyle", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "cap-style");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
GType
|
|
|
|
gimp_channel_ops_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_CHANNEL_OP_ADD, "GIMP_CHANNEL_OP_ADD", "add" },
|
|
|
|
{ GIMP_CHANNEL_OP_SUBTRACT, "GIMP_CHANNEL_OP_SUBTRACT", "subtract" },
|
|
|
|
{ GIMP_CHANNEL_OP_REPLACE, "GIMP_CHANNEL_OP_REPLACE", "replace" },
|
|
|
|
{ GIMP_CHANNEL_OP_INTERSECT, "GIMP_CHANNEL_OP_INTERSECT", "intersect" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_CHANNEL_OP_ADD, NC_("channel-ops", "Add to the current selection"), NULL },
|
|
|
|
{ GIMP_CHANNEL_OP_SUBTRACT, NC_("channel-ops", "Subtract from the current selection"), NULL },
|
|
|
|
{ GIMP_CHANNEL_OP_REPLACE, NC_("channel-ops", "Replace the current selection"), NULL },
|
|
|
|
{ GIMP_CHANNEL_OP_INTERSECT, NC_("channel-ops", "Intersect with the current selection"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpChannelOps", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "channel-ops");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_channel_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-10 02:40:30 +08:00
|
|
|
{ GIMP_CHANNEL_RED, "GIMP_CHANNEL_RED", "red" },
|
|
|
|
{ GIMP_CHANNEL_GREEN, "GIMP_CHANNEL_GREEN", "green" },
|
|
|
|
{ GIMP_CHANNEL_BLUE, "GIMP_CHANNEL_BLUE", "blue" },
|
|
|
|
{ GIMP_CHANNEL_GRAY, "GIMP_CHANNEL_GRAY", "gray" },
|
|
|
|
{ GIMP_CHANNEL_INDEXED, "GIMP_CHANNEL_INDEXED", "indexed" },
|
|
|
|
{ GIMP_CHANNEL_ALPHA, "GIMP_CHANNEL_ALPHA", "alpha" },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2017-01-10 02:40:30 +08:00
|
|
|
{ GIMP_CHANNEL_RED, NC_("channel-type", "Red"), NULL },
|
|
|
|
{ GIMP_CHANNEL_GREEN, NC_("channel-type", "Green"), NULL },
|
|
|
|
{ GIMP_CHANNEL_BLUE, NC_("channel-type", "Blue"), NULL },
|
|
|
|
{ GIMP_CHANNEL_GRAY, NC_("channel-type", "Gray"), NULL },
|
|
|
|
{ GIMP_CHANNEL_INDEXED, NC_("channel-type", "Indexed"), NULL },
|
|
|
|
{ GIMP_CHANNEL_ALPHA, NC_("channel-type", "Alpha"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpChannelType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "channel-type");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2004-09-02 22:28:37 +08:00
|
|
|
GType
|
|
|
|
gimp_check_size_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2004-10-26 01:55:25 +08:00
|
|
|
{ GIMP_CHECK_SIZE_SMALL_CHECKS, "GIMP_CHECK_SIZE_SMALL_CHECKS", "small-checks" },
|
|
|
|
{ GIMP_CHECK_SIZE_MEDIUM_CHECKS, "GIMP_CHECK_SIZE_MEDIUM_CHECKS", "medium-checks" },
|
|
|
|
{ GIMP_CHECK_SIZE_LARGE_CHECKS, "GIMP_CHECK_SIZE_LARGE_CHECKS", "large-checks" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_CHECK_SIZE_SMALL_CHECKS, NC_("check-size", "Small"), NULL },
|
|
|
|
{ GIMP_CHECK_SIZE_MEDIUM_CHECKS, NC_("check-size", "Medium"), NULL },
|
|
|
|
{ GIMP_CHECK_SIZE_LARGE_CHECKS, NC_("check-size", "Large"), NULL },
|
2004-09-02 22:28:37 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 01:55:25 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpCheckSize", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "check-size");
|
2004-10-26 01:55:25 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2004-09-02 22:28:37 +08:00
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_check_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2004-10-26 01:55:25 +08:00
|
|
|
{ GIMP_CHECK_TYPE_LIGHT_CHECKS, "GIMP_CHECK_TYPE_LIGHT_CHECKS", "light-checks" },
|
|
|
|
{ GIMP_CHECK_TYPE_GRAY_CHECKS, "GIMP_CHECK_TYPE_GRAY_CHECKS", "gray-checks" },
|
|
|
|
{ GIMP_CHECK_TYPE_DARK_CHECKS, "GIMP_CHECK_TYPE_DARK_CHECKS", "dark-checks" },
|
|
|
|
{ GIMP_CHECK_TYPE_WHITE_ONLY, "GIMP_CHECK_TYPE_WHITE_ONLY", "white-only" },
|
|
|
|
{ GIMP_CHECK_TYPE_GRAY_ONLY, "GIMP_CHECK_TYPE_GRAY_ONLY", "gray-only" },
|
|
|
|
{ GIMP_CHECK_TYPE_BLACK_ONLY, "GIMP_CHECK_TYPE_BLACK_ONLY", "black-only" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_CHECK_TYPE_LIGHT_CHECKS, NC_("check-type", "Light checks"), NULL },
|
|
|
|
{ GIMP_CHECK_TYPE_GRAY_CHECKS, NC_("check-type", "Mid-tone checks"), NULL },
|
|
|
|
{ GIMP_CHECK_TYPE_DARK_CHECKS, NC_("check-type", "Dark checks"), NULL },
|
|
|
|
{ GIMP_CHECK_TYPE_WHITE_ONLY, NC_("check-type", "White only"), NULL },
|
|
|
|
{ GIMP_CHECK_TYPE_GRAY_ONLY, NC_("check-type", "Gray only"), NULL },
|
|
|
|
{ GIMP_CHECK_TYPE_BLACK_ONLY, NC_("check-type", "Black only"), NULL },
|
2004-09-02 22:28:37 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 01:55:25 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpCheckType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "check-type");
|
2004-10-26 01:55:25 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2004-09-02 22:28:37 +08:00
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_clone_type_get_type (void)
|
2014-05-13 06:27:29 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
{ GIMP_CLONE_IMAGE, "GIMP_CLONE_IMAGE", "image" },
|
|
|
|
{ GIMP_CLONE_PATTERN, "GIMP_CLONE_PATTERN", "pattern" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_CLONE_IMAGE, NC_("clone-type", "Image"), NULL },
|
|
|
|
{ GIMP_CLONE_PATTERN, NC_("clone-type", "Pattern"), NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpCloneType", values);
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "clone-type");
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2016-10-29 22:50:13 +08:00
|
|
|
GType
|
|
|
|
gimp_color_tag_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_COLOR_TAG_NONE, "GIMP_COLOR_TAG_NONE", "none" },
|
|
|
|
{ GIMP_COLOR_TAG_BLUE, "GIMP_COLOR_TAG_BLUE", "blue" },
|
|
|
|
{ GIMP_COLOR_TAG_GREEN, "GIMP_COLOR_TAG_GREEN", "green" },
|
|
|
|
{ GIMP_COLOR_TAG_YELLOW, "GIMP_COLOR_TAG_YELLOW", "yellow" },
|
|
|
|
{ GIMP_COLOR_TAG_ORANGE, "GIMP_COLOR_TAG_ORANGE", "orange" },
|
|
|
|
{ GIMP_COLOR_TAG_BROWN, "GIMP_COLOR_TAG_BROWN", "brown" },
|
|
|
|
{ GIMP_COLOR_TAG_RED, "GIMP_COLOR_TAG_RED", "red" },
|
|
|
|
{ GIMP_COLOR_TAG_VIOLET, "GIMP_COLOR_TAG_VIOLET", "violet" },
|
|
|
|
{ GIMP_COLOR_TAG_GRAY, "GIMP_COLOR_TAG_GRAY", "gray" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_COLOR_TAG_NONE, NC_("color-tag", "None"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_BLUE, NC_("color-tag", "Blue"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_GREEN, NC_("color-tag", "Green"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_YELLOW, NC_("color-tag", "Yellow"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_ORANGE, NC_("color-tag", "Orange"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_BROWN, NC_("color-tag", "Brown"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_RED, NC_("color-tag", "Red"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_VIOLET, NC_("color-tag", "Violet"), NULL },
|
|
|
|
{ GIMP_COLOR_TAG_GRAY, NC_("color-tag", "Gray"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpColorTag", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "color-tag");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-04-30 04:44:58 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_component_type_get_type (void)
|
2014-04-30 04:44:58 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_COMPONENT_TYPE_U8, "GIMP_COMPONENT_TYPE_U8", "u8" },
|
|
|
|
{ GIMP_COMPONENT_TYPE_U16, "GIMP_COMPONENT_TYPE_U16", "u16" },
|
|
|
|
{ GIMP_COMPONENT_TYPE_U32, "GIMP_COMPONENT_TYPE_U32", "u32" },
|
|
|
|
{ GIMP_COMPONENT_TYPE_HALF, "GIMP_COMPONENT_TYPE_HALF", "half" },
|
|
|
|
{ GIMP_COMPONENT_TYPE_FLOAT, "GIMP_COMPONENT_TYPE_FLOAT", "float" },
|
|
|
|
{ GIMP_COMPONENT_TYPE_DOUBLE, "GIMP_COMPONENT_TYPE_DOUBLE", "double" },
|
2014-04-30 04:44:58 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_COMPONENT_TYPE_U8, NC_("component-type", "8-bit integer"), NULL },
|
|
|
|
{ GIMP_COMPONENT_TYPE_U16, NC_("component-type", "16-bit integer"), NULL },
|
|
|
|
{ GIMP_COMPONENT_TYPE_U32, NC_("component-type", "32-bit integer"), NULL },
|
|
|
|
{ GIMP_COMPONENT_TYPE_HALF, NC_("component-type", "16-bit floating point"), NULL },
|
|
|
|
{ GIMP_COMPONENT_TYPE_FLOAT, NC_("component-type", "32-bit floating point"), NULL },
|
|
|
|
{ GIMP_COMPONENT_TYPE_DOUBLE, NC_("component-type", "64-bit floating point"), NULL },
|
2014-04-30 04:44:58 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpComponentType", values);
|
2014-04-30 04:44:58 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "component-type");
|
2014-04-30 04:44:58 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-14 06:06:01 +08:00
|
|
|
GType
|
|
|
|
gimp_convert_palette_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-02-27 03:55:00 +08:00
|
|
|
{ GIMP_CONVERT_PALETTE_GENERATE, "GIMP_CONVERT_PALETTE_GENERATE", "generate" },
|
|
|
|
{ GIMP_CONVERT_PALETTE_WEB, "GIMP_CONVERT_PALETTE_WEB", "web" },
|
|
|
|
{ GIMP_CONVERT_PALETTE_MONO, "GIMP_CONVERT_PALETTE_MONO", "mono" },
|
|
|
|
{ GIMP_CONVERT_PALETTE_CUSTOM, "GIMP_CONVERT_PALETTE_CUSTOM", "custom" },
|
2014-05-14 06:06:01 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2017-02-27 03:55:00 +08:00
|
|
|
{ GIMP_CONVERT_PALETTE_GENERATE, NC_("convert-palette-type", "Generate optimum palette"), NULL },
|
|
|
|
{ GIMP_CONVERT_PALETTE_WEB, NC_("convert-palette-type", "Use web-optimized palette"), NULL },
|
|
|
|
{ GIMP_CONVERT_PALETTE_MONO, NC_("convert-palette-type", "Use black and white (1-bit) palette"), NULL },
|
|
|
|
{ GIMP_CONVERT_PALETTE_CUSTOM, NC_("convert-palette-type", "Use custom palette"), NULL },
|
2014-05-14 06:06:01 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpConvertPaletteType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "convert-palette-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 08:00:20 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_convolve_type_get_type (void)
|
2005-01-23 08:00:20 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
{ GIMP_CONVOLVE_BLUR, "GIMP_CONVOLVE_BLUR", "blur" },
|
|
|
|
{ GIMP_CONVOLVE_SHARPEN, "GIMP_CONVOLVE_SHARPEN", "sharpen" },
|
2005-01-23 08:00:20 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_CONVOLVE_BLUR, NC_("convolve-type", "Blur"), NULL },
|
|
|
|
{ GIMP_CONVOLVE_SHARPEN, NC_("convolve-type", "Sharpen"), NULL },
|
2005-01-23 08:00:20 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 08:00:20 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpConvolveType", values);
|
2005-01-23 08:00:20 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "convolve-type");
|
2005-01-23 08:00:20 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-04-16 22:51:49 +08:00
|
|
|
GType
|
|
|
|
gimp_desaturate_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_DESATURATE_LIGHTNESS, "GIMP_DESATURATE_LIGHTNESS", "lightness" },
|
2015-10-23 01:50:56 +08:00
|
|
|
{ GIMP_DESATURATE_LUMA, "GIMP_DESATURATE_LUMA", "luma" },
|
2005-04-16 22:51:49 +08:00
|
|
|
{ GIMP_DESATURATE_AVERAGE, "GIMP_DESATURATE_AVERAGE", "average" },
|
2015-10-23 01:50:56 +08:00
|
|
|
{ GIMP_DESATURATE_LUMINANCE, "GIMP_DESATURATE_LUMINANCE", "luminance" },
|
2017-03-18 04:20:40 +08:00
|
|
|
{ GIMP_DESATURATE_VALUE, "GIMP_DESATURATE_VALUE", "value" },
|
2005-04-16 22:51:49 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2017-03-18 04:20:40 +08:00
|
|
|
{ GIMP_DESATURATE_LIGHTNESS, NC_("desaturate-mode", "Lightness (HSL)"), NULL },
|
2015-10-23 01:50:56 +08:00
|
|
|
{ GIMP_DESATURATE_LUMA, NC_("desaturate-mode", "Luma"), NULL },
|
2017-03-18 04:20:40 +08:00
|
|
|
{ GIMP_DESATURATE_AVERAGE, NC_("desaturate-mode", "Average (HSI Intensity)"), NULL },
|
2015-10-23 01:50:56 +08:00
|
|
|
{ GIMP_DESATURATE_LUMINANCE, NC_("desaturate-mode", "Luminance"), NULL },
|
2017-03-18 04:20:40 +08:00
|
|
|
{ GIMP_DESATURATE_VALUE, NC_("desaturate-mode", "Value (HSV)"), NULL },
|
2005-04-16 22:51:49 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-04-16 22:51:49 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpDesaturateMode", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "desaturate-mode");
|
2005-04-16 22:51:49 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 08:00:20 +08:00
|
|
|
GType
|
|
|
|
gimp_dodge_burn_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
{ GIMP_DODGE_BURN_TYPE_DODGE, "GIMP_DODGE_BURN_TYPE_DODGE", "dodge" },
|
|
|
|
{ GIMP_DODGE_BURN_TYPE_BURN, "GIMP_DODGE_BURN_TYPE_BURN", "burn" },
|
2005-01-23 08:00:20 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
{ GIMP_DODGE_BURN_TYPE_DODGE, NC_("dodge-burn-type", "Dodge"), NULL },
|
|
|
|
{ GIMP_DODGE_BURN_TYPE_BURN, NC_("dodge-burn-type", "Burn"), NULL },
|
2005-01-23 08:00:20 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 08:00:20 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpDodgeBurnType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "dodge-burn-type");
|
2005-01-23 08:00:20 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
|
|
|
gimp_fill_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
{ GIMP_FILL_FOREGROUND, "GIMP_FILL_FOREGROUND", "foreground" },
|
|
|
|
{ GIMP_FILL_BACKGROUND, "GIMP_FILL_BACKGROUND", "background" },
|
|
|
|
{ GIMP_FILL_WHITE, "GIMP_FILL_WHITE", "white" },
|
|
|
|
{ GIMP_FILL_TRANSPARENT, "GIMP_FILL_TRANSPARENT", "transparent" },
|
|
|
|
{ GIMP_FILL_PATTERN, "GIMP_FILL_PATTERN", "pattern" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-06-03 07:11:32 +08:00
|
|
|
{ GIMP_FILL_FOREGROUND, NC_("fill-type", "Foreground color"), NULL },
|
|
|
|
{ GIMP_FILL_BACKGROUND, NC_("fill-type", "Background color"), NULL },
|
|
|
|
{ GIMP_FILL_WHITE, NC_("fill-type", "White"), NULL },
|
|
|
|
{ GIMP_FILL_TRANSPARENT, NC_("fill-type", "Transparency"), NULL },
|
|
|
|
{ GIMP_FILL_PATTERN, NC_("fill-type", "Pattern"), NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpFillType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "fill-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-07-29 10:35:12 +08:00
|
|
|
GType
|
|
|
|
gimp_foreground_extract_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_FOREGROUND_EXTRACT_SIOX, "GIMP_FOREGROUND_EXTRACT_SIOX", "siox" },
|
2013-05-08 05:00:57 +08:00
|
|
|
{ GIMP_FOREGROUND_EXTRACT_MATTING, "GIMP_FOREGROUND_EXTRACT_MATTING", "matting" },
|
2005-07-29 10:35:12 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_FOREGROUND_EXTRACT_SIOX, "GIMP_FOREGROUND_EXTRACT_SIOX", NULL },
|
2013-05-08 05:00:57 +08:00
|
|
|
{ GIMP_FOREGROUND_EXTRACT_MATTING, "GIMP_FOREGROUND_EXTRACT_MATTING", NULL },
|
2005-07-29 10:35:12 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-07-29 10:35:12 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpForegroundExtractMode", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "foreground-extract-mode");
|
2005-07-29 10:35:12 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2018-04-14 04:33:16 +08:00
|
|
|
GType
|
|
|
|
gimp_gradient_blend_color_space_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL, "GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL", "rgb-perceptual" },
|
|
|
|
{ GIMP_GRADIENT_BLEND_RGB_LINEAR, "GIMP_GRADIENT_BLEND_RGB_LINEAR", "rgb-linear" },
|
2018-04-15 00:11:38 +08:00
|
|
|
{ GIMP_GRADIENT_BLEND_CIE_LAB, "GIMP_GRADIENT_BLEND_CIE_LAB", "cie-lab" },
|
2018-04-14 04:33:16 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL, NC_("gradient-blend-color-space", "Perceptual RGB"), NULL },
|
|
|
|
{ GIMP_GRADIENT_BLEND_RGB_LINEAR, NC_("gradient-blend-color-space", "Linear RGB"), NULL },
|
2018-04-15 00:11:38 +08:00
|
|
|
{ GIMP_GRADIENT_BLEND_CIE_LAB, NC_("gradient-blend-color-space", "CIE Lab"), NULL },
|
2018-04-14 04:33:16 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpGradientBlendColorSpace", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "gradient-blend-color-space");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_gradient_segment_color_get_type (void)
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_RGB, "GIMP_GRADIENT_SEGMENT_RGB", "rgb" },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_HSV_CCW, "GIMP_GRADIENT_SEGMENT_HSV_CCW", "hsv-ccw" },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_HSV_CW, "GIMP_GRADIENT_SEGMENT_HSV_CW", "hsv-cw" },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2017-08-04 01:42:09 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_RGB, NC_("gradient-segment-color", "RGB"), NULL },
|
2017-11-30 15:36:22 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_HSV_CCW, NC_("gradient-segment-color", "HSV (counter-clockwise hue)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "HSV (counter-clockwise hue)".
|
|
|
|
Keep it short. */
|
2017-08-04 01:42:09 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_HSV_CCW, NC_("gradient-segment-color", "HSV (ccw)"), NULL },
|
2017-11-30 15:36:22 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_HSV_CW, NC_("gradient-segment-color", "HSV (clockwise hue)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "HSV (clockwise hue)".
|
|
|
|
Keep it short. */
|
2017-08-04 01:42:09 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_HSV_CW, NC_("gradient-segment-color", "HSV (cw)"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpGradientSegmentColor", values);
|
2005-10-01 00:35:04 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "gradient-segment-color");
|
2005-10-01 00:35:04 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_gradient_segment_type_get_type (void)
|
2014-05-13 06:27:29 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_LINEAR, "GIMP_GRADIENT_SEGMENT_LINEAR", "linear" },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_CURVED, "GIMP_GRADIENT_SEGMENT_CURVED", "curved" },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_SINE, "GIMP_GRADIENT_SEGMENT_SINE", "sine" },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, "GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING", "sphere-increasing" },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, "GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING", "sphere-decreasing" },
|
2018-10-03 09:13:16 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_STEP, "GIMP_GRADIENT_SEGMENT_STEP", "step" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2017-08-04 01:42:09 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_LINEAR, NC_("gradient-segment-type", "Linear"), NULL },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_CURVED, NC_("gradient-segment-type", "Curved"), NULL },
|
|
|
|
{ GIMP_GRADIENT_SEGMENT_SINE, NC_("gradient-segment-type", "Sinusoidal"), NULL },
|
2017-11-30 15:36:22 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, NC_("gradient-segment-type", "Spherical (increasing)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "Spherical (increasing)".
|
|
|
|
Keep it short. */
|
2017-08-04 01:42:09 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, NC_("gradient-segment-type", "Spherical (inc)"), NULL },
|
2017-11-30 15:36:22 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, NC_("gradient-segment-type", "Spherical (decreasing)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "Spherical (decreasing)".
|
|
|
|
Keep it short. */
|
2017-08-04 01:42:09 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, NC_("gradient-segment-type", "Spherical (dec)"), NULL },
|
2018-10-03 09:13:16 +08:00
|
|
|
{ GIMP_GRADIENT_SEGMENT_STEP, NC_("gradient-segment-type", "Step"), NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpGradientSegmentType", values);
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "gradient-segment-type");
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_gradient_type_get_type (void)
|
2014-05-13 06:27:29 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_LINEAR, "GIMP_GRADIENT_LINEAR", "linear" },
|
|
|
|
{ GIMP_GRADIENT_BILINEAR, "GIMP_GRADIENT_BILINEAR", "bilinear" },
|
|
|
|
{ GIMP_GRADIENT_RADIAL, "GIMP_GRADIENT_RADIAL", "radial" },
|
|
|
|
{ GIMP_GRADIENT_SQUARE, "GIMP_GRADIENT_SQUARE", "square" },
|
|
|
|
{ GIMP_GRADIENT_CONICAL_SYMMETRIC, "GIMP_GRADIENT_CONICAL_SYMMETRIC", "conical-symmetric" },
|
|
|
|
{ GIMP_GRADIENT_CONICAL_ASYMMETRIC, "GIMP_GRADIENT_CONICAL_ASYMMETRIC", "conical-asymmetric" },
|
|
|
|
{ GIMP_GRADIENT_SHAPEBURST_ANGULAR, "GIMP_GRADIENT_SHAPEBURST_ANGULAR", "shapeburst-angular" },
|
|
|
|
{ GIMP_GRADIENT_SHAPEBURST_SPHERICAL, "GIMP_GRADIENT_SHAPEBURST_SPHERICAL", "shapeburst-spherical" },
|
|
|
|
{ GIMP_GRADIENT_SHAPEBURST_DIMPLED, "GIMP_GRADIENT_SHAPEBURST_DIMPLED", "shapeburst-dimpled" },
|
|
|
|
{ GIMP_GRADIENT_SPIRAL_CLOCKWISE, "GIMP_GRADIENT_SPIRAL_CLOCKWISE", "spiral-clockwise" },
|
|
|
|
{ GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE, "GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE", "spiral-anticlockwise" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_LINEAR, NC_("gradient-type", "Linear"), NULL },
|
|
|
|
{ GIMP_GRADIENT_BILINEAR, NC_("gradient-type", "Bi-linear"), NULL },
|
|
|
|
{ GIMP_GRADIENT_RADIAL, NC_("gradient-type", "Radial"), NULL },
|
|
|
|
{ GIMP_GRADIENT_SQUARE, NC_("gradient-type", "Square"), NULL },
|
2017-11-30 17:18:22 +08:00
|
|
|
{ GIMP_GRADIENT_CONICAL_SYMMETRIC, NC_("gradient-type", "Conical (symmetric)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "Conical (symmetric)".
|
|
|
|
Keep it short. */
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_CONICAL_SYMMETRIC, NC_("gradient-type", "Conical (sym)"), NULL },
|
2017-11-30 17:18:22 +08:00
|
|
|
{ GIMP_GRADIENT_CONICAL_ASYMMETRIC, NC_("gradient-type", "Conical (asymmetric)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "Conical (asymmetric)".
|
|
|
|
Keep it short. */
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_CONICAL_ASYMMETRIC, NC_("gradient-type", "Conical (asym)"), NULL },
|
|
|
|
{ GIMP_GRADIENT_SHAPEBURST_ANGULAR, NC_("gradient-type", "Shaped (angular)"), NULL },
|
|
|
|
{ GIMP_GRADIENT_SHAPEBURST_SPHERICAL, NC_("gradient-type", "Shaped (spherical)"), NULL },
|
|
|
|
{ GIMP_GRADIENT_SHAPEBURST_DIMPLED, NC_("gradient-type", "Shaped (dimpled)"), NULL },
|
2017-11-30 17:18:22 +08:00
|
|
|
{ GIMP_GRADIENT_SPIRAL_CLOCKWISE, NC_("gradient-type", "Spiral (clockwise)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "Spiral (clockwise)".
|
|
|
|
Keep it short. */
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_SPIRAL_CLOCKWISE, NC_("gradient-type", "Spiral (cw)"), NULL },
|
2017-11-30 17:18:22 +08:00
|
|
|
{ GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE, NC_("gradient-type", "Spiral (counter-clockwise)"), NULL },
|
|
|
|
/* Translators: this is an abbreviated version of "Spiral (counter-clockwise)".
|
|
|
|
Keep it short. */
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE, NC_("gradient-type", "Spiral (ccw)"), NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpGradientType", values);
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "gradient-type");
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-10-01 00:35:04 +08:00
|
|
|
GType
|
|
|
|
gimp_grid_style_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_GRID_DOTS, "GIMP_GRID_DOTS", "dots" },
|
|
|
|
{ GIMP_GRID_INTERSECTIONS, "GIMP_GRID_INTERSECTIONS", "intersections" },
|
|
|
|
{ GIMP_GRID_ON_OFF_DASH, "GIMP_GRID_ON_OFF_DASH", "on-off-dash" },
|
|
|
|
{ GIMP_GRID_DOUBLE_DASH, "GIMP_GRID_DOUBLE_DASH", "double-dash" },
|
|
|
|
{ GIMP_GRID_SOLID, "GIMP_GRID_SOLID", "solid" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_GRID_DOTS, NC_("grid-style", "Intersections (dots)"), NULL },
|
|
|
|
{ GIMP_GRID_INTERSECTIONS, NC_("grid-style", "Intersections (crosshairs)"), NULL },
|
|
|
|
{ GIMP_GRID_ON_OFF_DASH, NC_("grid-style", "Dashed"), NULL },
|
|
|
|
{ GIMP_GRID_DOUBLE_DASH, NC_("grid-style", "Double dashed"), NULL },
|
|
|
|
{ GIMP_GRID_SOLID, NC_("grid-style", "Solid"), NULL },
|
2005-10-01 00:35:04 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-10-01 00:35:04 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpGridStyle", values);
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "grid-style");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-14 06:06:01 +08:00
|
|
|
GType
|
|
|
|
gimp_hue_range_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2017-01-09 09:45:16 +08:00
|
|
|
{ GIMP_HUE_RANGE_ALL, "GIMP_HUE_RANGE_ALL", "all" },
|
|
|
|
{ GIMP_HUE_RANGE_RED, "GIMP_HUE_RANGE_RED", "red" },
|
|
|
|
{ GIMP_HUE_RANGE_YELLOW, "GIMP_HUE_RANGE_YELLOW", "yellow" },
|
|
|
|
{ GIMP_HUE_RANGE_GREEN, "GIMP_HUE_RANGE_GREEN", "green" },
|
|
|
|
{ GIMP_HUE_RANGE_CYAN, "GIMP_HUE_RANGE_CYAN", "cyan" },
|
|
|
|
{ GIMP_HUE_RANGE_BLUE, "GIMP_HUE_RANGE_BLUE", "blue" },
|
|
|
|
{ GIMP_HUE_RANGE_MAGENTA, "GIMP_HUE_RANGE_MAGENTA", "magenta" },
|
2014-05-14 06:06:01 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2017-01-09 09:45:16 +08:00
|
|
|
{ GIMP_HUE_RANGE_ALL, "GIMP_HUE_RANGE_ALL", NULL },
|
|
|
|
{ GIMP_HUE_RANGE_RED, "GIMP_HUE_RANGE_RED", NULL },
|
|
|
|
{ GIMP_HUE_RANGE_YELLOW, "GIMP_HUE_RANGE_YELLOW", NULL },
|
|
|
|
{ GIMP_HUE_RANGE_GREEN, "GIMP_HUE_RANGE_GREEN", NULL },
|
|
|
|
{ GIMP_HUE_RANGE_CYAN, "GIMP_HUE_RANGE_CYAN", NULL },
|
|
|
|
{ GIMP_HUE_RANGE_BLUE, "GIMP_HUE_RANGE_BLUE", NULL },
|
|
|
|
{ GIMP_HUE_RANGE_MAGENTA, "GIMP_HUE_RANGE_MAGENTA", NULL },
|
2014-05-14 06:06:01 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpHueRange", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "hue-range");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
GType
|
|
|
|
gimp_icon_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-12 05:56:30 +08:00
|
|
|
{ GIMP_ICON_TYPE_ICON_NAME, "GIMP_ICON_TYPE_ICON_NAME", "icon-name" },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ GIMP_ICON_TYPE_INLINE_PIXBUF, "GIMP_ICON_TYPE_INLINE_PIXBUF", "inline-pixbuf" },
|
|
|
|
{ GIMP_ICON_TYPE_IMAGE_FILE, "GIMP_ICON_TYPE_IMAGE_FILE", "image-file" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-12 05:56:30 +08:00
|
|
|
{ GIMP_ICON_TYPE_ICON_NAME, NC_("icon-type", "Icon name"), NULL },
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_ICON_TYPE_INLINE_PIXBUF, NC_("icon-type", "Inline pixbuf"), NULL },
|
|
|
|
{ GIMP_ICON_TYPE_IMAGE_FILE, NC_("icon-type", "Image file"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpIconType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "icon-type");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
GType
|
|
|
|
gimp_image_base_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2004-10-26 01:55:25 +08:00
|
|
|
{ GIMP_RGB, "GIMP_RGB", "rgb" },
|
|
|
|
{ GIMP_GRAY, "GIMP_GRAY", "gray" },
|
|
|
|
{ GIMP_INDEXED, "GIMP_INDEXED", "indexed" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_RGB, NC_("image-base-type", "RGB color"), NULL },
|
|
|
|
{ GIMP_GRAY, NC_("image-base-type", "Grayscale"), NULL },
|
|
|
|
{ GIMP_INDEXED, NC_("image-base-type", "Indexed color"), NULL },
|
2004-07-29 20:33:15 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 01:55:25 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpImageBaseType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "image-base-type");
|
2004-10-26 01:55:25 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_image_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2004-10-26 01:55:25 +08:00
|
|
|
{ GIMP_RGB_IMAGE, "GIMP_RGB_IMAGE", "rgb-image" },
|
|
|
|
{ GIMP_RGBA_IMAGE, "GIMP_RGBA_IMAGE", "rgba-image" },
|
|
|
|
{ GIMP_GRAY_IMAGE, "GIMP_GRAY_IMAGE", "gray-image" },
|
|
|
|
{ GIMP_GRAYA_IMAGE, "GIMP_GRAYA_IMAGE", "graya-image" },
|
|
|
|
{ GIMP_INDEXED_IMAGE, "GIMP_INDEXED_IMAGE", "indexed-image" },
|
|
|
|
{ GIMP_INDEXEDA_IMAGE, "GIMP_INDEXEDA_IMAGE", "indexeda-image" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_RGB_IMAGE, NC_("image-type", "RGB"), NULL },
|
|
|
|
{ GIMP_RGBA_IMAGE, NC_("image-type", "RGB-alpha"), NULL },
|
|
|
|
{ GIMP_GRAY_IMAGE, NC_("image-type", "Grayscale"), NULL },
|
|
|
|
{ GIMP_GRAYA_IMAGE, NC_("image-type", "Grayscale-alpha"), NULL },
|
|
|
|
{ GIMP_INDEXED_IMAGE, NC_("image-type", "Indexed"), NULL },
|
|
|
|
{ GIMP_INDEXEDA_IMAGE, NC_("image-type", "Indexed-alpha"), NULL },
|
2004-07-29 20:33:15 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 01:55:25 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpImageType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "image-type");
|
2004-10-26 01:55:25 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-04-30 04:44:58 +08:00
|
|
|
GType
|
|
|
|
gimp_ink_blob_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_INK_BLOB_TYPE_CIRCLE, "GIMP_INK_BLOB_TYPE_CIRCLE", "circle" },
|
|
|
|
{ GIMP_INK_BLOB_TYPE_SQUARE, "GIMP_INK_BLOB_TYPE_SQUARE", "square" },
|
|
|
|
{ GIMP_INK_BLOB_TYPE_DIAMOND, "GIMP_INK_BLOB_TYPE_DIAMOND", "diamond" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_INK_BLOB_TYPE_CIRCLE, NC_("ink-blob-type", "Circle"), NULL },
|
|
|
|
{ GIMP_INK_BLOB_TYPE_SQUARE, NC_("ink-blob-type", "Square"), NULL },
|
|
|
|
{ GIMP_INK_BLOB_TYPE_DIAMOND, NC_("ink-blob-type", "Diamond"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpInkBlobType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "ink-blob-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 07:06:37 +08:00
|
|
|
GType
|
|
|
|
gimp_interpolation_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_INTERPOLATION_NONE, "GIMP_INTERPOLATION_NONE", "none" },
|
|
|
|
{ GIMP_INTERPOLATION_LINEAR, "GIMP_INTERPOLATION_LINEAR", "linear" },
|
|
|
|
{ GIMP_INTERPOLATION_CUBIC, "GIMP_INTERPOLATION_CUBIC", "cubic" },
|
2013-01-01 04:27:07 +08:00
|
|
|
{ GIMP_INTERPOLATION_NOHALO, "GIMP_INTERPOLATION_NOHALO", "nohalo" },
|
2012-03-28 07:54:12 +08:00
|
|
|
{ GIMP_INTERPOLATION_LOHALO, "GIMP_INTERPOLATION_LOHALO", "lohalo" },
|
2005-01-23 07:06:37 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_INTERPOLATION_NONE, NC_("interpolation-type", "None"), NULL },
|
|
|
|
{ GIMP_INTERPOLATION_LINEAR, NC_("interpolation-type", "Linear"), NULL },
|
|
|
|
{ GIMP_INTERPOLATION_CUBIC, NC_("interpolation-type", "Cubic"), NULL },
|
2013-01-01 04:27:07 +08:00
|
|
|
{ GIMP_INTERPOLATION_NOHALO, NC_("interpolation-type", "NoHalo"), NULL },
|
2012-03-28 07:54:12 +08:00
|
|
|
{ GIMP_INTERPOLATION_LOHALO, NC_("interpolation-type", "LoHalo"), NULL },
|
2005-01-23 07:06:37 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:06:37 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpInterpolationType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "interpolation-type");
|
2005-01-23 07:06:37 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2015-11-09 09:16:03 +08:00
|
|
|
GType
|
|
|
|
gimp_join_style_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_JOIN_MITER, "GIMP_JOIN_MITER", "miter" },
|
|
|
|
{ GIMP_JOIN_ROUND, "GIMP_JOIN_ROUND", "round" },
|
|
|
|
{ GIMP_JOIN_BEVEL, "GIMP_JOIN_BEVEL", "bevel" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_JOIN_MITER, NC_("join-style", "Miter"), NULL },
|
|
|
|
{ GIMP_JOIN_ROUND, NC_("join-style", "Round"), NULL },
|
|
|
|
{ GIMP_JOIN_BEVEL, NC_("join-style", "Bevel"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpJoinStyle", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "join-style");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
|
|
|
gimp_mask_apply_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MASK_APPLY, "GIMP_MASK_APPLY", "apply" },
|
|
|
|
{ GIMP_MASK_DISCARD, "GIMP_MASK_DISCARD", "discard" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MASK_APPLY, "GIMP_MASK_APPLY", NULL },
|
|
|
|
{ GIMP_MASK_DISCARD, "GIMP_MASK_DISCARD", NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpMaskApplyMode", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "mask-apply-mode");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_merge_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_EXPAND_AS_NECESSARY, "GIMP_EXPAND_AS_NECESSARY", "expand-as-necessary" },
|
|
|
|
{ GIMP_CLIP_TO_IMAGE, "GIMP_CLIP_TO_IMAGE", "clip-to-image" },
|
|
|
|
{ GIMP_CLIP_TO_BOTTOM_LAYER, "GIMP_CLIP_TO_BOTTOM_LAYER", "clip-to-bottom-layer" },
|
|
|
|
{ GIMP_FLATTEN_IMAGE, "GIMP_FLATTEN_IMAGE", "flatten-image" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2016-11-06 22:53:27 +08:00
|
|
|
{ GIMP_EXPAND_AS_NECESSARY, NC_("merge-type", "Expanded as necessary"), NULL },
|
2016-09-25 06:18:43 +08:00
|
|
|
{ GIMP_CLIP_TO_IMAGE, NC_("merge-type", "Clipped to image"), NULL },
|
|
|
|
{ GIMP_CLIP_TO_BOTTOM_LAYER, NC_("merge-type", "Clipped to bottom layer"), NULL },
|
|
|
|
{ GIMP_FLATTEN_IMAGE, NC_("merge-type", "Flatten"), NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpMergeType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "merge-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-14 05:29:17 +08:00
|
|
|
GType
|
|
|
|
gimp_message_handler_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MESSAGE_BOX, "GIMP_MESSAGE_BOX", "message-box" },
|
|
|
|
{ GIMP_CONSOLE, "GIMP_CONSOLE", "console" },
|
|
|
|
{ GIMP_ERROR_CONSOLE, "GIMP_ERROR_CONSOLE", "error-console" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MESSAGE_BOX, "GIMP_MESSAGE_BOX", NULL },
|
|
|
|
{ GIMP_CONSOLE, "GIMP_CONSOLE", NULL },
|
|
|
|
{ GIMP_ERROR_CONSOLE, "GIMP_ERROR_CONSOLE", NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpMessageHandlerType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "message-handler-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
|
|
|
gimp_offset_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_OFFSET_BACKGROUND, "GIMP_OFFSET_BACKGROUND", "background" },
|
|
|
|
{ GIMP_OFFSET_TRANSPARENT, "GIMP_OFFSET_TRANSPARENT", "transparent" },
|
2019-06-06 05:53:16 +08:00
|
|
|
{ GIMP_OFFSET_WRAP_AROUND, "GIMP_OFFSET_WRAP_AROUND", "wrap-around" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_OFFSET_BACKGROUND, "GIMP_OFFSET_BACKGROUND", NULL },
|
|
|
|
{ GIMP_OFFSET_TRANSPARENT, "GIMP_OFFSET_TRANSPARENT", NULL },
|
2019-06-06 05:53:16 +08:00
|
|
|
{ GIMP_OFFSET_WRAP_AROUND, "GIMP_OFFSET_WRAP_AROUND", NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpOffsetType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "offset-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_orientation_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_ORIENTATION_HORIZONTAL, "GIMP_ORIENTATION_HORIZONTAL", "horizontal" },
|
|
|
|
{ GIMP_ORIENTATION_VERTICAL, "GIMP_ORIENTATION_VERTICAL", "vertical" },
|
|
|
|
{ GIMP_ORIENTATION_UNKNOWN, "GIMP_ORIENTATION_UNKNOWN", "unknown" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_ORIENTATION_HORIZONTAL, NC_("orientation-type", "Horizontal"), NULL },
|
|
|
|
{ GIMP_ORIENTATION_VERTICAL, NC_("orientation-type", "Vertical"), NULL },
|
|
|
|
{ GIMP_ORIENTATION_UNKNOWN, NC_("orientation-type", "Unknown"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpOrientationType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "orientation-type");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 08:00:20 +08:00
|
|
|
GType
|
|
|
|
gimp_paint_application_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_PAINT_CONSTANT, "GIMP_PAINT_CONSTANT", "constant" },
|
|
|
|
{ GIMP_PAINT_INCREMENTAL, "GIMP_PAINT_INCREMENTAL", "incremental" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 16:28:28 +08:00
|
|
|
{ GIMP_PAINT_CONSTANT, NC_("paint-application-mode", "Constant"), NULL },
|
|
|
|
{ GIMP_PAINT_INCREMENTAL, NC_("paint-application-mode", "Incremental"), NULL },
|
2005-01-23 08:00:20 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 08:00:20 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpPaintApplicationMode", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "paint-application-mode");
|
2005-01-23 08:00:20 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_pdb_arg_type_get_type (void)
|
2014-05-13 06:27:29 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PDB_INT32, "GIMP_PDB_INT32", "int32" },
|
|
|
|
{ GIMP_PDB_INT16, "GIMP_PDB_INT16", "int16" },
|
|
|
|
{ GIMP_PDB_INT8, "GIMP_PDB_INT8", "int8" },
|
|
|
|
{ GIMP_PDB_FLOAT, "GIMP_PDB_FLOAT", "float" },
|
|
|
|
{ GIMP_PDB_STRING, "GIMP_PDB_STRING", "string" },
|
|
|
|
{ GIMP_PDB_INT32ARRAY, "GIMP_PDB_INT32ARRAY", "int32array" },
|
|
|
|
{ GIMP_PDB_INT16ARRAY, "GIMP_PDB_INT16ARRAY", "int16array" },
|
|
|
|
{ GIMP_PDB_INT8ARRAY, "GIMP_PDB_INT8ARRAY", "int8array" },
|
|
|
|
{ GIMP_PDB_FLOATARRAY, "GIMP_PDB_FLOATARRAY", "floatarray" },
|
|
|
|
{ GIMP_PDB_STRINGARRAY, "GIMP_PDB_STRINGARRAY", "stringarray" },
|
|
|
|
{ GIMP_PDB_COLOR, "GIMP_PDB_COLOR", "color" },
|
|
|
|
{ GIMP_PDB_ITEM, "GIMP_PDB_ITEM", "item" },
|
|
|
|
{ GIMP_PDB_DISPLAY, "GIMP_PDB_DISPLAY", "display" },
|
|
|
|
{ GIMP_PDB_IMAGE, "GIMP_PDB_IMAGE", "image" },
|
|
|
|
{ GIMP_PDB_LAYER, "GIMP_PDB_LAYER", "layer" },
|
|
|
|
{ GIMP_PDB_CHANNEL, "GIMP_PDB_CHANNEL", "channel" },
|
|
|
|
{ GIMP_PDB_DRAWABLE, "GIMP_PDB_DRAWABLE", "drawable" },
|
|
|
|
{ GIMP_PDB_SELECTION, "GIMP_PDB_SELECTION", "selection" },
|
|
|
|
{ GIMP_PDB_COLORARRAY, "GIMP_PDB_COLORARRAY", "colorarray" },
|
|
|
|
{ GIMP_PDB_VECTORS, "GIMP_PDB_VECTORS", "vectors" },
|
|
|
|
{ GIMP_PDB_PARASITE, "GIMP_PDB_PARASITE", "parasite" },
|
|
|
|
{ GIMP_PDB_STATUS, "GIMP_PDB_STATUS", "status" },
|
|
|
|
{ GIMP_PDB_END, "GIMP_PDB_END", "end" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PDB_INT32, "GIMP_PDB_INT32", NULL },
|
|
|
|
{ GIMP_PDB_INT16, "GIMP_PDB_INT16", NULL },
|
|
|
|
{ GIMP_PDB_INT8, "GIMP_PDB_INT8", NULL },
|
|
|
|
{ GIMP_PDB_FLOAT, "GIMP_PDB_FLOAT", NULL },
|
|
|
|
{ GIMP_PDB_STRING, "GIMP_PDB_STRING", NULL },
|
|
|
|
{ GIMP_PDB_INT32ARRAY, "GIMP_PDB_INT32ARRAY", NULL },
|
|
|
|
{ GIMP_PDB_INT16ARRAY, "GIMP_PDB_INT16ARRAY", NULL },
|
|
|
|
{ GIMP_PDB_INT8ARRAY, "GIMP_PDB_INT8ARRAY", NULL },
|
|
|
|
{ GIMP_PDB_FLOATARRAY, "GIMP_PDB_FLOATARRAY", NULL },
|
|
|
|
{ GIMP_PDB_STRINGARRAY, "GIMP_PDB_STRINGARRAY", NULL },
|
|
|
|
{ GIMP_PDB_COLOR, "GIMP_PDB_COLOR", NULL },
|
|
|
|
{ GIMP_PDB_ITEM, "GIMP_PDB_ITEM", NULL },
|
|
|
|
{ GIMP_PDB_DISPLAY, "GIMP_PDB_DISPLAY", NULL },
|
|
|
|
{ GIMP_PDB_IMAGE, "GIMP_PDB_IMAGE", NULL },
|
|
|
|
{ GIMP_PDB_LAYER, "GIMP_PDB_LAYER", NULL },
|
|
|
|
{ GIMP_PDB_CHANNEL, "GIMP_PDB_CHANNEL", NULL },
|
|
|
|
{ GIMP_PDB_DRAWABLE, "GIMP_PDB_DRAWABLE", NULL },
|
|
|
|
{ GIMP_PDB_SELECTION, "GIMP_PDB_SELECTION", NULL },
|
|
|
|
{ GIMP_PDB_COLORARRAY, "GIMP_PDB_COLORARRAY", NULL },
|
|
|
|
{ GIMP_PDB_VECTORS, "GIMP_PDB_VECTORS", NULL },
|
|
|
|
{ GIMP_PDB_PARASITE, "GIMP_PDB_PARASITE", NULL },
|
|
|
|
{ GIMP_PDB_STATUS, "GIMP_PDB_STATUS", NULL },
|
|
|
|
{ GIMP_PDB_END, "GIMP_PDB_END", NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpPDBArgType", values);
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "pdb-arg-type");
|
2006-04-06 18:16:39 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_pdb_error_handler_get_type (void)
|
2014-05-13 06:27:29 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PDB_ERROR_HANDLER_INTERNAL, "GIMP_PDB_ERROR_HANDLER_INTERNAL", "internal" },
|
|
|
|
{ GIMP_PDB_ERROR_HANDLER_PLUGIN, "GIMP_PDB_ERROR_HANDLER_PLUGIN", "plugin" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PDB_ERROR_HANDLER_INTERNAL, "GIMP_PDB_ERROR_HANDLER_INTERNAL", NULL },
|
|
|
|
{ GIMP_PDB_ERROR_HANDLER_PLUGIN, "GIMP_PDB_ERROR_HANDLER_PLUGIN", NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpPDBErrorHandler", values);
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "pdb-error-handler");
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2006-04-06 18:16:39 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_pdb_proc_type_get_type (void)
|
2006-04-06 18:16:39 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_INTERNAL, "GIMP_INTERNAL", "internal" },
|
|
|
|
{ GIMP_PLUGIN, "GIMP_PLUGIN", "plugin" },
|
|
|
|
{ GIMP_EXTENSION, "GIMP_EXTENSION", "extension" },
|
|
|
|
{ GIMP_TEMPORARY, "GIMP_TEMPORARY", "temporary" },
|
2006-04-06 18:16:39 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_INTERNAL, NC_("pdb-proc-type", "Internal GIMP procedure"), NULL },
|
2017-05-07 04:48:53 +08:00
|
|
|
{ GIMP_PLUGIN, NC_("pdb-proc-type", "GIMP Plug-In"), NULL },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_EXTENSION, NC_("pdb-proc-type", "GIMP Extension"), NULL },
|
|
|
|
{ GIMP_TEMPORARY, NC_("pdb-proc-type", "Temporary Procedure"), NULL },
|
2006-04-06 18:16:39 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2006-04-06 18:16:39 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpPDBProcType", values);
|
2006-04-06 18:16:39 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "pdb-proc-type");
|
2005-01-23 08:58:22 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2014-05-13 06:27:29 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_pdb_status_type_get_type (void)
|
2014-05-13 06:27:29 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PDB_EXECUTION_ERROR, "GIMP_PDB_EXECUTION_ERROR", "execution-error" },
|
|
|
|
{ GIMP_PDB_CALLING_ERROR, "GIMP_PDB_CALLING_ERROR", "calling-error" },
|
|
|
|
{ GIMP_PDB_PASS_THROUGH, "GIMP_PDB_PASS_THROUGH", "pass-through" },
|
|
|
|
{ GIMP_PDB_SUCCESS, "GIMP_PDB_SUCCESS", "success" },
|
|
|
|
{ GIMP_PDB_CANCEL, "GIMP_PDB_CANCEL", "cancel" },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PDB_EXECUTION_ERROR, "GIMP_PDB_EXECUTION_ERROR", NULL },
|
|
|
|
{ GIMP_PDB_CALLING_ERROR, "GIMP_PDB_CALLING_ERROR", NULL },
|
|
|
|
{ GIMP_PDB_PASS_THROUGH, "GIMP_PDB_PASS_THROUGH", NULL },
|
|
|
|
{ GIMP_PDB_SUCCESS, "GIMP_PDB_SUCCESS", NULL },
|
|
|
|
{ GIMP_PDB_CANCEL, "GIMP_PDB_CANCEL", NULL },
|
2014-05-13 06:27:29 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpPDBStatusType", values);
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "pdb-status-type");
|
2014-05-13 06:27:29 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 08:58:22 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_precision_get_type (void)
|
2005-01-23 08:58:22 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_U8_LINEAR, "GIMP_PRECISION_U8_LINEAR", "u8-linear" },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_U8_NON_LINEAR, "GIMP_PRECISION_U8_NON_LINEAR", "u8-non-linear" },
|
|
|
|
{ GIMP_PRECISION_U8_PERCEPTUAL, "GIMP_PRECISION_U8_PERCEPTUAL", "u8-perceptual" },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_U16_LINEAR, "GIMP_PRECISION_U16_LINEAR", "u16-linear" },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_U16_NON_LINEAR, "GIMP_PRECISION_U16_NON_LINEAR", "u16-non-linear" },
|
|
|
|
{ GIMP_PRECISION_U16_PERCEPTUAL, "GIMP_PRECISION_U16_PERCEPTUAL", "u16-perceptual" },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_U32_LINEAR, "GIMP_PRECISION_U32_LINEAR", "u32-linear" },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_U32_NON_LINEAR, "GIMP_PRECISION_U32_NON_LINEAR", "u32-non-linear" },
|
|
|
|
{ GIMP_PRECISION_U32_PERCEPTUAL, "GIMP_PRECISION_U32_PERCEPTUAL", "u32-perceptual" },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_HALF_LINEAR, "GIMP_PRECISION_HALF_LINEAR", "half-linear" },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_HALF_NON_LINEAR, "GIMP_PRECISION_HALF_NON_LINEAR", "half-non-linear" },
|
|
|
|
{ GIMP_PRECISION_HALF_PERCEPTUAL, "GIMP_PRECISION_HALF_PERCEPTUAL", "half-perceptual" },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_FLOAT_LINEAR, "GIMP_PRECISION_FLOAT_LINEAR", "float-linear" },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_FLOAT_NON_LINEAR, "GIMP_PRECISION_FLOAT_NON_LINEAR", "float-non-linear" },
|
|
|
|
{ GIMP_PRECISION_FLOAT_PERCEPTUAL, "GIMP_PRECISION_FLOAT_PERCEPTUAL", "float-perceptual" },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_DOUBLE_LINEAR, "GIMP_PRECISION_DOUBLE_LINEAR", "double-linear" },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_DOUBLE_NON_LINEAR, "GIMP_PRECISION_DOUBLE_NON_LINEAR", "double-non-linear" },
|
|
|
|
{ GIMP_PRECISION_DOUBLE_PERCEPTUAL, "GIMP_PRECISION_DOUBLE_PERCEPTUAL", "double-perceptual" },
|
|
|
|
{ GIMP_PRECISION_U8_GAMMA, "GIMP_PRECISION_U8_GAMMA", "u8-gamma" },
|
|
|
|
{ GIMP_PRECISION_U16_GAMMA, "GIMP_PRECISION_U16_GAMMA", "u16-gamma" },
|
|
|
|
{ GIMP_PRECISION_U32_GAMMA, "GIMP_PRECISION_U32_GAMMA", "u32-gamma" },
|
|
|
|
{ GIMP_PRECISION_HALF_GAMMA, "GIMP_PRECISION_HALF_GAMMA", "half-gamma" },
|
|
|
|
{ GIMP_PRECISION_FLOAT_GAMMA, "GIMP_PRECISION_FLOAT_GAMMA", "float-gamma" },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_DOUBLE_GAMMA, "GIMP_PRECISION_DOUBLE_GAMMA", "double-gamma" },
|
2005-01-23 08:58:22 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_U8_LINEAR, NC_("precision", "8-bit linear integer"), NULL },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_U8_NON_LINEAR, NC_("precision", "8-bit non-linear integer"), NULL },
|
|
|
|
{ GIMP_PRECISION_U8_PERCEPTUAL, NC_("precision", "8-bit perceptual integer"), NULL },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_U16_LINEAR, NC_("precision", "16-bit linear integer"), NULL },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_U16_NON_LINEAR, NC_("precision", "16-bit non-linear integer"), NULL },
|
|
|
|
{ GIMP_PRECISION_U16_PERCEPTUAL, NC_("precision", "16-bit perceptual integer"), NULL },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_U32_LINEAR, NC_("precision", "32-bit linear integer"), NULL },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_U32_NON_LINEAR, NC_("precision", "32-bit non-linear integer"), NULL },
|
|
|
|
{ GIMP_PRECISION_U32_PERCEPTUAL, NC_("precision", "32-bit perceptual integer"), NULL },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_HALF_LINEAR, NC_("precision", "16-bit linear floating point"), NULL },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_HALF_NON_LINEAR, NC_("precision", "16-bit non-linear floating point"), NULL },
|
|
|
|
{ GIMP_PRECISION_HALF_PERCEPTUAL, NC_("precision", "16-bit perceptual floating point"), NULL },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_FLOAT_LINEAR, NC_("precision", "32-bit linear floating point"), NULL },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_FLOAT_NON_LINEAR, NC_("precision", "32-bit non-linear floating point"), NULL },
|
|
|
|
{ GIMP_PRECISION_FLOAT_PERCEPTUAL, NC_("precision", "32-bit perceptual floating point"), NULL },
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PRECISION_DOUBLE_LINEAR, NC_("precision", "64-bit linear floating point"), NULL },
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
{ GIMP_PRECISION_DOUBLE_NON_LINEAR, NC_("precision", "64-bit non-linear floating point"), NULL },
|
|
|
|
{ GIMP_PRECISION_DOUBLE_PERCEPTUAL, NC_("precision", "64-bit perceptual floating point"), NULL },
|
|
|
|
{ GIMP_PRECISION_U8_GAMMA, "GIMP_PRECISION_U8_GAMMA", NULL },
|
|
|
|
{ GIMP_PRECISION_U16_GAMMA, "GIMP_PRECISION_U16_GAMMA", NULL },
|
|
|
|
{ GIMP_PRECISION_U32_GAMMA, "GIMP_PRECISION_U32_GAMMA", NULL },
|
|
|
|
{ GIMP_PRECISION_HALF_GAMMA, "GIMP_PRECISION_HALF_GAMMA", NULL },
|
|
|
|
{ GIMP_PRECISION_FLOAT_GAMMA, "GIMP_PRECISION_FLOAT_GAMMA", NULL },
|
|
|
|
{ GIMP_PRECISION_DOUBLE_GAMMA, "GIMP_PRECISION_DOUBLE_GAMMA", NULL },
|
2005-01-23 08:58:22 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 08:58:22 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpPrecision", values);
|
2005-01-23 08:58:22 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "precision");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 07:06:37 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_progress_command_get_type (void)
|
2005-01-23 07:06:37 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PROGRESS_COMMAND_START, "GIMP_PROGRESS_COMMAND_START", "start" },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_END, "GIMP_PROGRESS_COMMAND_END", "end" },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_SET_TEXT, "GIMP_PROGRESS_COMMAND_SET_TEXT", "set-text" },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_SET_VALUE, "GIMP_PROGRESS_COMMAND_SET_VALUE", "set-value" },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_PULSE, "GIMP_PROGRESS_COMMAND_PULSE", "pulse" },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_GET_WINDOW, "GIMP_PROGRESS_COMMAND_GET_WINDOW", "get-window" },
|
2005-01-23 07:06:37 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PROGRESS_COMMAND_START, "GIMP_PROGRESS_COMMAND_START", NULL },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_END, "GIMP_PROGRESS_COMMAND_END", NULL },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_SET_TEXT, "GIMP_PROGRESS_COMMAND_SET_TEXT", NULL },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_SET_VALUE, "GIMP_PROGRESS_COMMAND_SET_VALUE", NULL },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_PULSE, "GIMP_PROGRESS_COMMAND_PULSE", NULL },
|
|
|
|
{ GIMP_PROGRESS_COMMAND_GET_WINDOW, "GIMP_PROGRESS_COMMAND_GET_WINDOW", NULL },
|
2005-01-23 07:06:37 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:06:37 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpProgressCommand", values);
|
2005-01-23 07:06:37 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "progress-command");
|
2005-01-23 07:06:37 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2005-01-23 07:38:36 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_repeat_mode_get_type (void)
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_REPEAT_NONE, "GIMP_REPEAT_NONE", "none" },
|
|
|
|
{ GIMP_REPEAT_SAWTOOTH, "GIMP_REPEAT_SAWTOOTH", "sawtooth" },
|
|
|
|
{ GIMP_REPEAT_TRIANGULAR, "GIMP_REPEAT_TRIANGULAR", "triangular" },
|
|
|
|
{ GIMP_REPEAT_TRUNCATE, "GIMP_REPEAT_TRUNCATE", "truncate" },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_REPEAT_NONE, NC_("repeat-mode", "None (extend)"), NULL },
|
|
|
|
{ GIMP_REPEAT_SAWTOOTH, NC_("repeat-mode", "Sawtooth wave"), NULL },
|
|
|
|
{ GIMP_REPEAT_TRIANGULAR, NC_("repeat-mode", "Triangular wave"), NULL },
|
|
|
|
{ GIMP_REPEAT_TRUNCATE, NC_("repeat-mode", "Truncate"), NULL },
|
2005-01-23 07:38:36 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2005-01-23 07:38:36 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpRepeatMode", values);
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "repeat-mode");
|
2005-01-23 07:38:36 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2006-12-25 00:48:08 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_rotation_type_get_type (void)
|
2006-12-25 00:48:08 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_ROTATE_90, "GIMP_ROTATE_90", "90" },
|
|
|
|
{ GIMP_ROTATE_180, "GIMP_ROTATE_180", "180" },
|
|
|
|
{ GIMP_ROTATE_270, "GIMP_ROTATE_270", "270" },
|
2006-12-25 00:48:08 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_ROTATE_90, "GIMP_ROTATE_90", NULL },
|
|
|
|
{ GIMP_ROTATE_180, "GIMP_ROTATE_180", NULL },
|
|
|
|
{ GIMP_ROTATE_270, "GIMP_ROTATE_270", NULL },
|
2006-12-25 00:48:08 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2006-12-25 00:48:08 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpRotationType", values);
|
2006-12-25 00:48:08 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "rotation-type");
|
2006-12-25 00:48:08 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_run_mode_get_type (void)
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_RUN_INTERACTIVE, "GIMP_RUN_INTERACTIVE", "interactive" },
|
|
|
|
{ GIMP_RUN_NONINTERACTIVE, "GIMP_RUN_NONINTERACTIVE", "noninteractive" },
|
|
|
|
{ GIMP_RUN_WITH_LAST_VALS, "GIMP_RUN_WITH_LAST_VALS", "with-last-vals" },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_RUN_INTERACTIVE, NC_("run-mode", "Run interactively"), NULL },
|
|
|
|
{ GIMP_RUN_NONINTERACTIVE, NC_("run-mode", "Run non-interactively"), NULL },
|
|
|
|
{ GIMP_RUN_WITH_LAST_VALS, NC_("run-mode", "Run with last used values"), NULL },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpRunMode", values);
|
2008-08-19 06:54:26 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "run-mode");
|
2008-08-19 06:54:26 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_select_criterion_get_type (void)
|
2008-08-19 06:54:26 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_COMPOSITE, "GIMP_SELECT_CRITERION_COMPOSITE", "composite" },
|
|
|
|
{ GIMP_SELECT_CRITERION_R, "GIMP_SELECT_CRITERION_R", "r" },
|
|
|
|
{ GIMP_SELECT_CRITERION_G, "GIMP_SELECT_CRITERION_G", "g" },
|
|
|
|
{ GIMP_SELECT_CRITERION_B, "GIMP_SELECT_CRITERION_B", "b" },
|
|
|
|
{ GIMP_SELECT_CRITERION_H, "GIMP_SELECT_CRITERION_H", "h" },
|
|
|
|
{ GIMP_SELECT_CRITERION_S, "GIMP_SELECT_CRITERION_S", "s" },
|
|
|
|
{ GIMP_SELECT_CRITERION_V, "GIMP_SELECT_CRITERION_V", "v" },
|
2015-10-17 11:19:23 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_A, "GIMP_SELECT_CRITERION_A", "a" },
|
2017-05-10 04:02:19 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_LCH_L, "GIMP_SELECT_CRITERION_LCH_L", "lch-l" },
|
|
|
|
{ GIMP_SELECT_CRITERION_LCH_C, "GIMP_SELECT_CRITERION_LCH_C", "lch-c" },
|
|
|
|
{ GIMP_SELECT_CRITERION_LCH_H, "GIMP_SELECT_CRITERION_LCH_H", "lch-h" },
|
2008-08-19 06:54:26 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_COMPOSITE, NC_("select-criterion", "Composite"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_R, NC_("select-criterion", "Red"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_G, NC_("select-criterion", "Green"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_B, NC_("select-criterion", "Blue"), NULL },
|
2018-07-08 22:15:13 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_H, NC_("select-criterion", "HSV Hue"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_S, NC_("select-criterion", "HSV Saturation"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_V, NC_("select-criterion", "HSV Value"), NULL },
|
2015-10-17 11:19:23 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_A, NC_("select-criterion", "Alpha"), NULL },
|
2018-07-08 22:15:13 +08:00
|
|
|
{ GIMP_SELECT_CRITERION_LCH_L, NC_("select-criterion", "LCh Lightness"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_LCH_C, NC_("select-criterion", "LCh Chroma"), NULL },
|
|
|
|
{ GIMP_SELECT_CRITERION_LCH_H, NC_("select-criterion", "LCh Hue"), NULL },
|
2008-08-19 06:54:26 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2008-08-19 06:54:26 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpSelectCriterion", values);
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "select-criterion");
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_size_type_get_type (void)
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PIXELS, "GIMP_PIXELS", "pixels" },
|
|
|
|
{ GIMP_POINTS, "GIMP_POINTS", "points" },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_PIXELS, NC_("size-type", "Pixels"), NULL },
|
|
|
|
{ GIMP_POINTS, NC_("size-type", "Points"), NULL },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpSizeType", values);
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "size-type");
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_stack_trace_mode_get_type (void)
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_STACK_TRACE_NEVER, "GIMP_STACK_TRACE_NEVER", "never" },
|
|
|
|
{ GIMP_STACK_TRACE_QUERY, "GIMP_STACK_TRACE_QUERY", "query" },
|
|
|
|
{ GIMP_STACK_TRACE_ALWAYS, "GIMP_STACK_TRACE_ALWAYS", "always" },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_STACK_TRACE_NEVER, "GIMP_STACK_TRACE_NEVER", NULL },
|
|
|
|
{ GIMP_STACK_TRACE_QUERY, "GIMP_STACK_TRACE_QUERY", NULL },
|
|
|
|
{ GIMP_STACK_TRACE_ALWAYS, "GIMP_STACK_TRACE_ALWAYS", NULL },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpStackTraceMode", values);
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "stack-trace-mode");
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2015-11-09 05:48:48 +08:00
|
|
|
GType
|
|
|
|
gimp_stroke_method_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_STROKE_LINE, "GIMP_STROKE_LINE", "line" },
|
|
|
|
{ GIMP_STROKE_PAINT_METHOD, "GIMP_STROKE_PAINT_METHOD", "paint-method" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_STROKE_LINE, NC_("stroke-method", "Stroke line"), NULL },
|
|
|
|
{ GIMP_STROKE_PAINT_METHOD, NC_("stroke-method", "Stroke with a paint tool"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpStrokeMethod", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
|
|
|
gimp_type_set_translation_context (type, "stroke-method");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_text_direction_get_type (void)
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TEXT_DIRECTION_LTR, "GIMP_TEXT_DIRECTION_LTR", "ltr" },
|
|
|
|
{ GIMP_TEXT_DIRECTION_RTL, "GIMP_TEXT_DIRECTION_RTL", "rtl" },
|
2018-07-29 12:57:38 +08:00
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_RTL, "GIMP_TEXT_DIRECTION_TTB_RTL", "ttb-rtl" },
|
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT, "GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT", "ttb-rtl-upright" },
|
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_LTR, "GIMP_TEXT_DIRECTION_TTB_LTR", "ttb-ltr" },
|
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT, "GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT", "ttb-ltr-upright" },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TEXT_DIRECTION_LTR, NC_("text-direction", "From left to right"), NULL },
|
|
|
|
{ GIMP_TEXT_DIRECTION_RTL, NC_("text-direction", "From right to left"), NULL },
|
2018-08-02 22:40:55 +08:00
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_RTL, NC_("text-direction", "Vertical, right to left (mixed orientation)"), NULL },
|
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT, NC_("text-direction", "Vertical, right to left (upright orientation)"), NULL },
|
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_LTR, NC_("text-direction", "Vertical, left to right (mixed orientation)"), NULL },
|
|
|
|
{ GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT, NC_("text-direction", "Vertical, left to right (upright orientation)"), NULL },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpTextDirection", values);
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "text-direction");
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_text_hint_style_get_type (void)
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TEXT_HINT_STYLE_NONE, "GIMP_TEXT_HINT_STYLE_NONE", "none" },
|
|
|
|
{ GIMP_TEXT_HINT_STYLE_SLIGHT, "GIMP_TEXT_HINT_STYLE_SLIGHT", "slight" },
|
|
|
|
{ GIMP_TEXT_HINT_STYLE_MEDIUM, "GIMP_TEXT_HINT_STYLE_MEDIUM", "medium" },
|
|
|
|
{ GIMP_TEXT_HINT_STYLE_FULL, "GIMP_TEXT_HINT_STYLE_FULL", "full" },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TEXT_HINT_STYLE_NONE, NC_("text-hint-style", "None"), NULL },
|
|
|
|
{ GIMP_TEXT_HINT_STYLE_SLIGHT, NC_("text-hint-style", "Slight"), NULL },
|
|
|
|
{ GIMP_TEXT_HINT_STYLE_MEDIUM, NC_("text-hint-style", "Medium"), NULL },
|
|
|
|
{ GIMP_TEXT_HINT_STYLE_FULL, NC_("text-hint-style", "Full"), NULL },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpTextHintStyle", values);
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "text-hint-style");
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_text_justification_get_type (void)
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TEXT_JUSTIFY_LEFT, "GIMP_TEXT_JUSTIFY_LEFT", "left" },
|
|
|
|
{ GIMP_TEXT_JUSTIFY_RIGHT, "GIMP_TEXT_JUSTIFY_RIGHT", "right" },
|
|
|
|
{ GIMP_TEXT_JUSTIFY_CENTER, "GIMP_TEXT_JUSTIFY_CENTER", "center" },
|
|
|
|
{ GIMP_TEXT_JUSTIFY_FILL, "GIMP_TEXT_JUSTIFY_FILL", "fill" },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TEXT_JUSTIFY_LEFT, NC_("text-justification", "Left justified"), NULL },
|
|
|
|
{ GIMP_TEXT_JUSTIFY_RIGHT, NC_("text-justification", "Right justified"), NULL },
|
|
|
|
{ GIMP_TEXT_JUSTIFY_CENTER, NC_("text-justification", "Centered"), NULL },
|
|
|
|
{ GIMP_TEXT_JUSTIFY_FILL, NC_("text-justification", "Filled"), NULL },
|
2004-10-26 03:29:00 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-26 03:29:00 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpTextJustification", values);
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "text-justification");
|
2004-10-26 03:29:00 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2008-04-01 05:48:07 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_transfer_mode_get_type (void)
|
2008-04-01 05:48:07 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TRANSFER_SHADOWS, "GIMP_TRANSFER_SHADOWS", "shadows" },
|
|
|
|
{ GIMP_TRANSFER_MIDTONES, "GIMP_TRANSFER_MIDTONES", "midtones" },
|
|
|
|
{ GIMP_TRANSFER_HIGHLIGHTS, "GIMP_TRANSFER_HIGHLIGHTS", "highlights" },
|
2008-04-01 05:48:07 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TRANSFER_SHADOWS, NC_("transfer-mode", "Shadows"), NULL },
|
|
|
|
{ GIMP_TRANSFER_MIDTONES, NC_("transfer-mode", "Midtones"), NULL },
|
|
|
|
{ GIMP_TRANSFER_HIGHLIGHTS, NC_("transfer-mode", "Highlights"), NULL },
|
2008-04-01 05:48:07 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2008-04-01 05:48:07 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpTransferMode", values);
|
2008-04-01 05:48:07 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "transfer-mode");
|
2008-04-01 05:48:07 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2008-10-27 15:59:32 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_transform_direction_get_type (void)
|
2008-10-27 15:59:32 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TRANSFORM_FORWARD, "GIMP_TRANSFORM_FORWARD", "forward" },
|
|
|
|
{ GIMP_TRANSFORM_BACKWARD, "GIMP_TRANSFORM_BACKWARD", "backward" },
|
2008-10-27 15:59:32 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TRANSFORM_FORWARD, NC_("transform-direction", "Normal (Forward)"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_BACKWARD, NC_("transform-direction", "Corrective (Backward)"), NULL },
|
2008-10-27 15:59:32 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2008-10-27 15:59:32 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpTransformDirection", values);
|
2008-10-27 15:59:32 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "transform-direction");
|
2008-10-27 15:59:32 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2008-04-01 05:48:07 +08:00
|
|
|
GType
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_transform_resize_get_type (void)
|
2008-04-01 05:48:07 +08:00
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TRANSFORM_RESIZE_ADJUST, "GIMP_TRANSFORM_RESIZE_ADJUST", "adjust" },
|
|
|
|
{ GIMP_TRANSFORM_RESIZE_CLIP, "GIMP_TRANSFORM_RESIZE_CLIP", "clip" },
|
|
|
|
{ GIMP_TRANSFORM_RESIZE_CROP, "GIMP_TRANSFORM_RESIZE_CROP", "crop" },
|
|
|
|
{ GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT, "GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT", "crop-with-aspect" },
|
2008-04-01 05:48:07 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
{ GIMP_TRANSFORM_RESIZE_ADJUST, NC_("transform-resize", "Adjust"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_RESIZE_CLIP, NC_("transform-resize", "Clip"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_RESIZE_CROP, NC_("transform-resize", "Crop to result"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT, NC_("transform-resize", "Crop with aspect"), NULL },
|
2008-04-01 05:48:07 +08:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2008-04-01 05:48:07 +08:00
|
|
|
{
|
2014-05-14 05:29:17 +08:00
|
|
|
type = g_enum_register_static ("GimpTransformResize", values);
|
2008-04-01 05:48:07 +08:00
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2014-05-14 05:29:17 +08:00
|
|
|
gimp_type_set_translation_context (type, "transform-resize");
|
2008-04-01 05:48:07 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2006-10-25 23:14:03 +08:00
|
|
|
GType
|
|
|
|
gimp_vectors_stroke_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_VECTORS_STROKE_TYPE_BEZIER, "GIMP_VECTORS_STROKE_TYPE_BEZIER", "bezier" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_VECTORS_STROKE_TYPE_BEZIER, "GIMP_VECTORS_STROKE_TYPE_BEZIER", NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
2008-11-04 05:38:13 +08:00
|
|
|
if (G_UNLIKELY (! type))
|
2006-10-25 23:14:03 +08:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpVectorsStrokeType", values);
|
|
|
|
gimp_type_set_translation_domain (type, GETTEXT_PACKAGE "-libgimp");
|
2008-11-06 16:28:28 +08:00
|
|
|
gimp_type_set_translation_context (type, "vectors-stroke-type");
|
2006-10-25 23:14:03 +08:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
/* Generated data ends here */
|
|
|
|
|