2004-07-29 20:33:15 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2004-07-29 20:33:15 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-07-29 20:33:15 +08:00
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2004-07-29 20:33:15 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_BASE_ENUMS_H__
|
|
|
|
#define __GIMP_BASE_ENUMS_H__
|
|
|
|
|
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
/**
|
|
|
|
* SECTION: gimpbaseenums
|
|
|
|
* @title: gimpbaseenums
|
|
|
|
* @short_description: Basic GIMP enumeration data types.
|
|
|
|
*
|
|
|
|
* Basic GIMP enumeration data types.
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpAddMaskType:
|
2018-04-28 20:00:23 +08:00
|
|
|
* @GIMP_ADD_MASK_WHITE: White (full opacity)
|
|
|
|
* @GIMP_ADD_MASK_BLACK: Black (full transparency)
|
|
|
|
* @GIMP_ADD_MASK_ALPHA: Layer's alpha channel
|
|
|
|
* @GIMP_ADD_MASK_ALPHA_TRANSFER: Transfer layer's alpha channel
|
|
|
|
* @GIMP_ADD_MASK_SELECTION: Selection
|
|
|
|
* @GIMP_ADD_MASK_COPY: Grayscale copy of layer
|
|
|
|
* @GIMP_ADD_MASK_CHANNEL: Channel
|
2018-05-19 07:34:09 +08:00
|
|
|
*
|
|
|
|
* Modes of initialising a layer mask.
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_ADD_MASK_TYPE (gimp_add_mask_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_add_mask_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
GIMP_ADD_MASK_WHITE, /*< desc="_White (full opacity)" >*/
|
|
|
|
GIMP_ADD_MASK_BLACK, /*< desc="_Black (full transparency)" >*/
|
|
|
|
GIMP_ADD_MASK_ALPHA, /*< desc="Layer's _alpha channel" >*/
|
|
|
|
GIMP_ADD_MASK_ALPHA_TRANSFER, /*< desc="_Transfer layer's alpha channel" >*/
|
|
|
|
GIMP_ADD_MASK_SELECTION, /*< desc="_Selection" >*/
|
|
|
|
GIMP_ADD_MASK_COPY, /*< desc="_Grayscale copy of layer" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_ADD_MASK_CHANNEL /*< desc="C_hannel" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpAddMaskType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpBlendMode:
|
|
|
|
* @GIMP_BLEND_FG_BG_RGB: FG to BG (RGB)
|
|
|
|
* @GIMP_BLEND_FG_BG_HSV: FG to BG (HSV)
|
|
|
|
* @GIMP_BLEND_FG_TRANSPARENT: FG to transparent
|
|
|
|
* @GIMP_BLEND_CUSTOM: Custom gradient
|
|
|
|
*
|
|
|
|
* Types of gradients.
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_BLEND_MODE (gimp_blend_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_blend_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
GIMP_BLEND_FG_BG_RGB, /*< desc="FG to BG (RGB)" >*/
|
|
|
|
GIMP_BLEND_FG_BG_HSV, /*< desc="FG to BG (HSV)" >*/
|
|
|
|
GIMP_BLEND_FG_TRANSPARENT, /*< desc="FG to transparent" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_BLEND_CUSTOM /*< desc="Custom gradient" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpBlendMode;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpBrushGeneratedShape:
|
|
|
|
* @GIMP_BRUSH_GENERATED_CIRCLE: Circle
|
|
|
|
* @GIMP_BRUSH_GENERATED_SQUARE: Square
|
|
|
|
* @GIMP_BRUSH_GENERATED_DIAMOND: Diamond
|
|
|
|
*
|
|
|
|
* Shapes of generated brushes.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_BRUSH_GENERATED_SHAPE (gimp_brush_generated_shape_get_type ())
|
|
|
|
|
|
|
|
GType gimp_brush_generated_shape_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_BRUSH_GENERATED_CIRCLE, /*< desc="Circle" >*/
|
|
|
|
GIMP_BRUSH_GENERATED_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_BRUSH_GENERATED_DIAMOND /*< desc="Diamond" >*/
|
|
|
|
} GimpBrushGeneratedShape;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpCapStyle:
|
|
|
|
* @GIMP_CAP_BUTT: Butt
|
|
|
|
* @GIMP_CAP_ROUND: Round
|
|
|
|
* @GIMP_CAP_SQUARE: Square
|
|
|
|
*
|
|
|
|
* Style of line endings.
|
|
|
|
**/
|
2015-11-09 09:16:03 +08:00
|
|
|
#define GIMP_TYPE_CAP_STYLE (gimp_cap_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_cap_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_CAP_BUTT, /*< desc="Butt" >*/
|
|
|
|
GIMP_CAP_ROUND, /*< desc="Round" >*/
|
|
|
|
GIMP_CAP_SQUARE /*< desc="Square" >*/
|
|
|
|
} GimpCapStyle;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpChannelOps:
|
|
|
|
* @GIMP_CHANNEL_OP_ADD: Add to the current selection
|
|
|
|
* @GIMP_CHANNEL_OP_SUBTRACT: Subtract from the current selection
|
|
|
|
* @GIMP_CHANNEL_OP_REPLACE: Replace the current selection
|
|
|
|
* @GIMP_CHANNEL_OP_INTERSECT: Intersect with the current selection
|
|
|
|
*
|
|
|
|
* Operations to combine channels and selections.
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_CHANNEL_OPS (gimp_channel_ops_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_ops_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_CHANNEL_OP_ADD, /*< desc="Add to the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_SUBTRACT, /*< desc="Subtract from the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_REPLACE, /*< desc="Replace the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_INTERSECT /*< desc="Intersect with the current selection" >*/
|
|
|
|
} GimpChannelOps;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpChannelType:
|
|
|
|
* @GIMP_CHANNEL_RED: Red
|
|
|
|
* @GIMP_CHANNEL_GREEN: Green
|
|
|
|
* @GIMP_CHANNEL_BLUE: Blue
|
|
|
|
* @GIMP_CHANNEL_GRAY: Gray
|
|
|
|
* @GIMP_CHANNEL_INDEXED: Indexed
|
|
|
|
* @GIMP_CHANNEL_ALPHA: Alpha
|
|
|
|
*
|
|
|
|
* Channels (as in color components).
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_CHANNEL_TYPE (gimp_channel_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-10 02:40:30 +08:00
|
|
|
GIMP_CHANNEL_RED, /*< desc="Red" >*/
|
|
|
|
GIMP_CHANNEL_GREEN, /*< desc="Green" >*/
|
|
|
|
GIMP_CHANNEL_BLUE, /*< desc="Blue" >*/
|
|
|
|
GIMP_CHANNEL_GRAY, /*< desc="Gray" >*/
|
|
|
|
GIMP_CHANNEL_INDEXED, /*< desc="Indexed" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_CHANNEL_ALPHA /*< desc="Alpha" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpChannelType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpCheckSize:
|
|
|
|
* @GIMP_CHECK_SIZE_SMALL_CHECKS: Small
|
|
|
|
* @GIMP_CHECK_SIZE_MEDIUM_CHECKS: Medium
|
|
|
|
* @GIMP_CHECK_SIZE_LARGE_CHECKS: Large
|
|
|
|
*
|
|
|
|
* Size of the checkerboard indicating transparency.
|
|
|
|
**/
|
2004-09-02 22:28:37 +08:00
|
|
|
#define GIMP_TYPE_CHECK_SIZE (gimp_check_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_check_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_CHECK_SIZE_SMALL_CHECKS = 0, /*< desc="Small" >*/
|
|
|
|
GIMP_CHECK_SIZE_MEDIUM_CHECKS = 1, /*< desc="Medium" >*/
|
|
|
|
GIMP_CHECK_SIZE_LARGE_CHECKS = 2 /*< desc="Large" >*/
|
|
|
|
} GimpCheckSize;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpCheckType:
|
|
|
|
* @GIMP_CHECK_TYPE_LIGHT_CHECKS: Light checks
|
|
|
|
* @GIMP_CHECK_TYPE_GRAY_CHECKS: Mid-tone checks
|
|
|
|
* @GIMP_CHECK_TYPE_DARK_CHECKS: Dark checks
|
|
|
|
* @GIMP_CHECK_TYPE_WHITE_ONLY: White only
|
|
|
|
* @GIMP_CHECK_TYPE_GRAY_ONLY: Gray only
|
|
|
|
* @GIMP_CHECK_TYPE_BLACK_ONLY: Black only
|
|
|
|
*
|
|
|
|
* Color/Brightness of the checkerboard indicating transparency.
|
|
|
|
**/
|
2004-09-02 22:28:37 +08:00
|
|
|
#define GIMP_TYPE_CHECK_TYPE (gimp_check_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_check_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2005-08-23 08:18:08 +08:00
|
|
|
GIMP_CHECK_TYPE_LIGHT_CHECKS = 0, /*< desc="Light checks" >*/
|
|
|
|
GIMP_CHECK_TYPE_GRAY_CHECKS = 1, /*< desc="Mid-tone checks" >*/
|
|
|
|
GIMP_CHECK_TYPE_DARK_CHECKS = 2, /*< desc="Dark checks" >*/
|
|
|
|
GIMP_CHECK_TYPE_WHITE_ONLY = 3, /*< desc="White only" >*/
|
|
|
|
GIMP_CHECK_TYPE_GRAY_ONLY = 4, /*< desc="Gray only" >*/
|
|
|
|
GIMP_CHECK_TYPE_BLACK_ONLY = 5 /*< desc="Black only" >*/
|
2004-09-02 22:28:37 +08:00
|
|
|
} GimpCheckType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpCloneType:
|
2018-05-20 22:37:04 +08:00
|
|
|
* @GIMP_CLONE_IMAGE: Clone from an image/drawable source
|
|
|
|
* @GIMP_CLONE_PATTERN: Clone from a pattern source
|
2018-05-19 07:34:09 +08:00
|
|
|
*
|
|
|
|
* Clone sources.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_CLONE_TYPE (gimp_clone_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_clone_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
GIMP_CLONE_IMAGE, /*< desc="Image" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_CLONE_PATTERN /*< desc="Pattern" >*/
|
2014-05-14 05:29:17 +08:00
|
|
|
} GimpCloneType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpColorTag:
|
|
|
|
* @GIMP_COLOR_TAG_NONE: None
|
|
|
|
* @GIMP_COLOR_TAG_BLUE: Blue
|
|
|
|
* @GIMP_COLOR_TAG_GREEN: Green
|
|
|
|
* @GIMP_COLOR_TAG_YELLOW: Yellow
|
|
|
|
* @GIMP_COLOR_TAG_ORANGE: Orange
|
|
|
|
* @GIMP_COLOR_TAG_BROWN: Brown
|
|
|
|
* @GIMP_COLOR_TAG_RED: Red
|
|
|
|
* @GIMP_COLOR_TAG_VIOLET: Violet
|
|
|
|
* @GIMP_COLOR_TAG_GRAY: Gray
|
|
|
|
*
|
|
|
|
* Possible tag colors.
|
2018-05-19 07:38:47 +08:00
|
|
|
*
|
|
|
|
* Since: 2.10
|
2018-05-19 07:34:09 +08:00
|
|
|
**/
|
2016-10-29 22:50:13 +08:00
|
|
|
#define GIMP_TYPE_COLOR_TAG (gimp_color_tag_get_type ())
|
|
|
|
|
|
|
|
GType gimp_color_tag_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_COLOR_TAG_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_COLOR_TAG_BLUE, /*< desc="Blue" >*/
|
|
|
|
GIMP_COLOR_TAG_GREEN, /*< desc="Green" >*/
|
|
|
|
GIMP_COLOR_TAG_YELLOW, /*< desc="Yellow" >*/
|
|
|
|
GIMP_COLOR_TAG_ORANGE, /*< desc="Orange" >*/
|
|
|
|
GIMP_COLOR_TAG_BROWN, /*< desc="Brown" >*/
|
|
|
|
GIMP_COLOR_TAG_RED, /*< desc="Red" >*/
|
|
|
|
GIMP_COLOR_TAG_VIOLET, /*< desc="Violet" >*/
|
|
|
|
GIMP_COLOR_TAG_GRAY /*< desc="Gray" >*/
|
|
|
|
} GimpColorTag;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpComponentType:
|
|
|
|
* @GIMP_COMPONENT_TYPE_U8: 8-bit integer
|
|
|
|
* @GIMP_COMPONENT_TYPE_U16: 16-bit integer
|
|
|
|
* @GIMP_COMPONENT_TYPE_U32: 32-bit integer
|
|
|
|
* @GIMP_COMPONENT_TYPE_HALF: 16-bit floating point
|
|
|
|
* @GIMP_COMPONENT_TYPE_FLOAT: 32-bit floating point
|
|
|
|
* @GIMP_COMPONENT_TYPE_DOUBLE: 64-bit floating point
|
|
|
|
*
|
|
|
|
* Encoding types of image components.
|
2018-05-19 07:38:47 +08:00
|
|
|
*
|
|
|
|
* Since: 2.10
|
2018-05-19 07:34:09 +08:00
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_COMPONENT_TYPE (gimp_component_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_component_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_COMPONENT_TYPE_U8 = 100, /*< desc="8-bit integer" >*/
|
|
|
|
GIMP_COMPONENT_TYPE_U16 = 200, /*< desc="16-bit integer" >*/
|
|
|
|
GIMP_COMPONENT_TYPE_U32 = 300, /*< desc="32-bit integer" >*/
|
|
|
|
GIMP_COMPONENT_TYPE_HALF = 500, /*< desc="16-bit floating point" >*/
|
|
|
|
GIMP_COMPONENT_TYPE_FLOAT = 600, /*< desc="32-bit floating point" >*/
|
|
|
|
GIMP_COMPONENT_TYPE_DOUBLE = 700 /*< desc="64-bit floating point" >*/
|
|
|
|
} GimpComponentType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpConvertPaletteType:
|
|
|
|
* @GIMP_CONVERT_PALETTE_GENERATE: Generate optimum palette
|
|
|
|
* @GIMP_CONVERT_PALETTE_REUSE: Don't use this one
|
|
|
|
* @GIMP_CONVERT_PALETTE_WEB: Use web-optimized palette
|
|
|
|
* @GIMP_CONVERT_PALETTE_MONO: Use black and white (1-bit) palette
|
|
|
|
* @GIMP_CONVERT_PALETTE_CUSTOM: Use custom palette
|
|
|
|
*
|
|
|
|
* Types of palettes for indexed conversion.
|
|
|
|
**/
|
2014-05-14 06:06:01 +08:00
|
|
|
#define GIMP_TYPE_CONVERT_PALETTE_TYPE (gimp_convert_palette_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_convert_palette_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-02-27 03:55:00 +08:00
|
|
|
GIMP_CONVERT_PALETTE_GENERATE, /*< desc="Generate optimum palette" >*/
|
|
|
|
GIMP_CONVERT_PALETTE_REUSE, /*< skip >*/
|
|
|
|
GIMP_CONVERT_PALETTE_WEB, /*< desc="Use web-optimized palette" >*/
|
|
|
|
GIMP_CONVERT_PALETTE_MONO, /*< desc="Use black and white (1-bit) palette" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_CONVERT_PALETTE_CUSTOM /*< desc="Use custom palette" >*/
|
2014-05-14 06:06:01 +08:00
|
|
|
} GimpConvertPaletteType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpConvolveType:
|
|
|
|
* @GIMP_CONVOLVE_BLUR: Blur
|
|
|
|
* @GIMP_CONVOLVE_SHARPEN: Sharpen
|
|
|
|
*
|
|
|
|
* Types of convolutions.
|
|
|
|
**/
|
2014-04-30 04:44:58 +08:00
|
|
|
#define GIMP_TYPE_CONVOLVE_TYPE (gimp_convolve_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_convolve_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
GIMP_CONVOLVE_BLUR, /*< desc="Blur" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_CONVOLVE_SHARPEN /*< desc="Sharpen" >*/
|
2014-04-30 04:44:58 +08:00
|
|
|
} GimpConvolveType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpDesaturateMode:
|
2018-05-20 22:37:04 +08:00
|
|
|
* @GIMP_DESATURATE_LIGHTNESS: Lightness (HSL)
|
|
|
|
* @GIMP_DESATURATE_LUMA: Luma
|
|
|
|
* @GIMP_DESATURATE_AVERAGE: Average (HSI Intensity)
|
|
|
|
* @GIMP_DESATURATE_LUMINANCE: Luminance
|
|
|
|
* @GIMP_DESATURATE_VALUE: Value (HSV)
|
2018-05-19 07:34:09 +08:00
|
|
|
*
|
|
|
|
* Grayscale conversion methods.
|
|
|
|
**/
|
2005-04-16 22:51:49 +08:00
|
|
|
#define GIMP_TYPE_DESATURATE_MODE (gimp_desaturate_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_desaturate_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-03-18 04:20:40 +08:00
|
|
|
GIMP_DESATURATE_LIGHTNESS, /*< desc="Lightness (HSL)" >*/
|
|
|
|
GIMP_DESATURATE_LUMA, /*< desc="Luma" >*/
|
|
|
|
GIMP_DESATURATE_AVERAGE, /*< desc="Average (HSI Intensity)" >*/
|
|
|
|
GIMP_DESATURATE_LUMINANCE, /*< desc="Luminance" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_DESATURATE_VALUE /*< desc="Value (HSV)" >*/
|
2005-04-16 22:51:49 +08:00
|
|
|
} GimpDesaturateMode;
|
|
|
|
|
2018-04-14 04:33:16 +08:00
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpDodgeBurnType:
|
|
|
|
* @GIMP_DODGE_BURN_TYPE_DODGE: Dodge
|
|
|
|
* @GIMP_DODGE_BURN_TYPE_BURN: Burn
|
|
|
|
*
|
|
|
|
* Methods for the dodge/burn operation.
|
|
|
|
**/
|
2005-01-23 08:00:20 +08:00
|
|
|
#define GIMP_TYPE_DODGE_BURN_TYPE (gimp_dodge_burn_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_dodge_burn_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_DODGE_BURN_TYPE_DODGE, /*< desc="Dodge" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_DODGE_BURN_TYPE_BURN /*< desc="Burn" >*/
|
2005-01-23 08:00:20 +08:00
|
|
|
} GimpDodgeBurnType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpFillType:
|
|
|
|
* @GIMP_FILL_FOREGROUND: Foreground color
|
|
|
|
* @GIMP_FILL_BACKGROUND: Background color
|
|
|
|
* @GIMP_FILL_WHITE: White
|
|
|
|
* @GIMP_FILL_TRANSPARENT: Transparency
|
|
|
|
* @GIMP_FILL_PATTERN: Pattern
|
|
|
|
*
|
|
|
|
* Types of filling.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_FILL_TYPE (gimp_fill_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_fill_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-09 08:05:48 +08:00
|
|
|
GIMP_FILL_FOREGROUND, /*< desc="Foreground color" >*/
|
|
|
|
GIMP_FILL_BACKGROUND, /*< desc="Background color" >*/
|
|
|
|
GIMP_FILL_WHITE, /*< desc="White" >*/
|
|
|
|
GIMP_FILL_TRANSPARENT, /*< desc="Transparency" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_FILL_PATTERN /*< desc="Pattern" >*/
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpFillType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpForegroundExtractMode:
|
|
|
|
* @GIMP_FOREGROUND_EXTRACT_SIOX: Siox
|
2018-05-19 07:38:47 +08:00
|
|
|
* @GIMP_FOREGROUND_EXTRACT_MATTING: Matting (Since 2.10)
|
2018-05-19 07:34:09 +08:00
|
|
|
*
|
|
|
|
* Foreground extraxt engines.
|
|
|
|
**/
|
2005-08-03 18:02:01 +08:00
|
|
|
#define GIMP_TYPE_FOREGROUND_EXTRACT_MODE (gimp_foreground_extract_mode_get_type ())
|
2005-07-29 10:35:12 +08:00
|
|
|
|
|
|
|
GType gimp_foreground_extract_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2013-05-08 05:00:57 +08:00
|
|
|
GIMP_FOREGROUND_EXTRACT_SIOX,
|
2014-04-24 23:18:26 +08:00
|
|
|
GIMP_FOREGROUND_EXTRACT_MATTING
|
2005-07-29 10:35:12 +08:00
|
|
|
} GimpForegroundExtractMode;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpGradientBlendColorSpace:
|
|
|
|
* @GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL: Perceptual RGB
|
|
|
|
* @GIMP_GRADIENT_BLEND_RGB_LINEAR: Linear RGB
|
|
|
|
* @GIMP_GRADIENT_BLEND_CIE_LAB: CIE Lab
|
|
|
|
*
|
|
|
|
* Color space for blending gradients.
|
2018-05-19 07:38:47 +08:00
|
|
|
*
|
|
|
|
* Since: 2.10
|
2018-05-19 07:34:09 +08:00
|
|
|
*/
|
2018-04-14 04:33:16 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_BLEND_COLOR_SPACE (gimp_gradient_blend_color_space_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_blend_color_space_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL, /*< desc="Perceptual RGB", nick=rgb-perceptual >*/
|
2018-04-15 00:11:38 +08:00
|
|
|
GIMP_GRADIENT_BLEND_RGB_LINEAR, /*< desc="Linear RGB", nick=rgb-linear >*/
|
|
|
|
GIMP_GRADIENT_BLEND_CIE_LAB /*< desc="CIE Lab", nick=cie-lab >*/
|
2018-04-14 04:33:16 +08:00
|
|
|
} GimpGradientBlendColorSpace;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpGradientSegmentColor:
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_RGB: RGB
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_HSV_CCW: HSV (counter-clockwise hue)
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_HSV_CW: HSV (clockwise hue)
|
|
|
|
*
|
|
|
|
* Coloring types for gradient segments.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_SEGMENT_COLOR (gimp_gradient_segment_color_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_segment_color_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-11-30 17:18:22 +08:00
|
|
|
GIMP_GRADIENT_SEGMENT_RGB, /*< desc="RGB" >*/
|
2017-11-30 15:36:22 +08:00
|
|
|
GIMP_GRADIENT_SEGMENT_HSV_CCW, /*< desc="HSV (counter-clockwise hue)", abbrev="HSV (ccw)" >*/
|
|
|
|
GIMP_GRADIENT_SEGMENT_HSV_CW /*< desc="HSV (clockwise hue)", abbrev="HSV (cw)" >*/
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpGradientSegmentColor;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpGradientSegmentType:
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_LINEAR: Linear
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_CURVED: Curved
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_SINE: Sinusoidal
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING: Spherical (increasing)
|
|
|
|
* @GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING: Spherical (decreasing)
|
2019-07-24 07:18:30 +08:00
|
|
|
* @GIMP_GRADIENT_SEGMENT_STEP: Step
|
2018-05-19 07:34:09 +08:00
|
|
|
*
|
|
|
|
* Transition functions for gradient segments.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_SEGMENT_TYPE (gimp_gradient_segment_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_segment_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-11-30 15:36:22 +08:00
|
|
|
GIMP_GRADIENT_SEGMENT_LINEAR, /*< desc="Linear" >*/
|
|
|
|
GIMP_GRADIENT_SEGMENT_CURVED, /*< desc="Curved" >*/
|
|
|
|
GIMP_GRADIENT_SEGMENT_SINE, /*< desc="Sinusoidal" >*/
|
|
|
|
GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING, /*< desc="Spherical (increasing)", abbrev="Spherical (inc)" >*/
|
2018-10-03 09:13:16 +08:00
|
|
|
GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING, /*< desc="Spherical (decreasing)", abbrev="Spherical (dec)" >*/
|
|
|
|
GIMP_GRADIENT_SEGMENT_STEP /*< desc="Step" >*/
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpGradientSegmentType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpGradientType:
|
|
|
|
* @GIMP_GRADIENT_LINEAR: Linear
|
|
|
|
* @GIMP_GRADIENT_BILINEAR: Bi-linear
|
|
|
|
* @GIMP_GRADIENT_RADIAL: Radial
|
|
|
|
* @GIMP_GRADIENT_SQUARE: Square
|
|
|
|
* @GIMP_GRADIENT_CONICAL_SYMMETRIC: Conical (symmetric)
|
|
|
|
* @GIMP_GRADIENT_CONICAL_ASYMMETRIC: Conical (asymmetric)
|
|
|
|
* @GIMP_GRADIENT_SHAPEBURST_ANGULAR: Shaped (angular)
|
|
|
|
* @GIMP_GRADIENT_SHAPEBURST_SPHERICAL: Shaped (spherical)
|
|
|
|
* @GIMP_GRADIENT_SHAPEBURST_DIMPLED: Shaped (dimpled)
|
|
|
|
* @GIMP_GRADIENT_SPIRAL_CLOCKWISE: Spiral (clockwise)
|
|
|
|
* @GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE: Spiral (counter-clockwise)
|
|
|
|
*
|
|
|
|
* Gradient shapes.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_TYPE (gimp_gradient_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-11-30 17:18:22 +08:00
|
|
|
GIMP_GRADIENT_LINEAR, /*< desc="Linear" >*/
|
|
|
|
GIMP_GRADIENT_BILINEAR, /*< desc="Bi-linear" >*/
|
|
|
|
GIMP_GRADIENT_RADIAL, /*< desc="Radial" >*/
|
|
|
|
GIMP_GRADIENT_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_GRADIENT_CONICAL_SYMMETRIC, /*< desc="Conical (symmetric)", abbrev="Conical (sym)" >*/
|
|
|
|
GIMP_GRADIENT_CONICAL_ASYMMETRIC, /*< desc="Conical (asymmetric)", abbrev="Conical (asym)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_ANGULAR, /*< desc="Shaped (angular)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_SPHERICAL, /*< desc="Shaped (spherical)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_DIMPLED, /*< desc="Shaped (dimpled)" >*/
|
|
|
|
GIMP_GRADIENT_SPIRAL_CLOCKWISE, /*< desc="Spiral (clockwise)", abbrev="Spiral (cw)" >*/
|
|
|
|
GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE /*< desc="Spiral (counter-clockwise)", abbrev="Spiral (ccw)" >*/
|
2014-05-14 05:29:17 +08:00
|
|
|
} GimpGradientType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpGridStyle:
|
|
|
|
* @GIMP_GRID_DOTS: Intersections (dots)
|
|
|
|
* @GIMP_GRID_INTERSECTIONS: Intersections (crosshairs)
|
|
|
|
* @GIMP_GRID_ON_OFF_DASH: Dashed
|
|
|
|
* @GIMP_GRID_DOUBLE_DASH: Double dashed
|
|
|
|
* @GIMP_GRID_SOLID: Solid
|
|
|
|
*
|
|
|
|
* Rendering types for the display grid.
|
|
|
|
**/
|
2005-10-01 00:35:04 +08:00
|
|
|
#define GIMP_TYPE_GRID_STYLE (gimp_grid_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_grid_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_GRID_DOTS, /*< desc="Intersections (dots)" >*/
|
|
|
|
GIMP_GRID_INTERSECTIONS, /*< desc="Intersections (crosshairs)" >*/
|
|
|
|
GIMP_GRID_ON_OFF_DASH, /*< desc="Dashed" >*/
|
|
|
|
GIMP_GRID_DOUBLE_DASH, /*< desc="Double dashed" >*/
|
|
|
|
GIMP_GRID_SOLID /*< desc="Solid" >*/
|
|
|
|
} GimpGridStyle;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpHueRange:
|
|
|
|
* @GIMP_HUE_RANGE_ALL: All hues
|
|
|
|
* @GIMP_HUE_RANGE_RED: Red hues
|
|
|
|
* @GIMP_HUE_RANGE_YELLOW: Yellow hues
|
|
|
|
* @GIMP_HUE_RANGE_GREEN: Green hues
|
|
|
|
* @GIMP_HUE_RANGE_CYAN: Cyan hues
|
|
|
|
* @GIMP_HUE_RANGE_BLUE: Blue hues
|
|
|
|
* @GIMP_HUE_RANGE_MAGENTA: Magenta hues
|
|
|
|
*
|
|
|
|
* Hue ranges.
|
|
|
|
**/
|
2014-05-14 06:06:01 +08:00
|
|
|
#define GIMP_TYPE_HUE_RANGE (gimp_hue_range_get_type ())
|
|
|
|
|
|
|
|
GType gimp_hue_range_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2017-01-09 09:45:16 +08:00
|
|
|
GIMP_HUE_RANGE_ALL,
|
|
|
|
GIMP_HUE_RANGE_RED,
|
|
|
|
GIMP_HUE_RANGE_YELLOW,
|
|
|
|
GIMP_HUE_RANGE_GREEN,
|
|
|
|
GIMP_HUE_RANGE_CYAN,
|
|
|
|
GIMP_HUE_RANGE_BLUE,
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_HUE_RANGE_MAGENTA
|
2014-05-14 06:06:01 +08:00
|
|
|
} GimpHueRange;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpIconType:
|
|
|
|
* @GIMP_ICON_TYPE_ICON_NAME: Icon name
|
|
|
|
* @GIMP_ICON_TYPE_INLINE_PIXBUF: Inline pixbuf
|
|
|
|
* @GIMP_ICON_TYPE_IMAGE_FILE: Image file
|
|
|
|
*
|
|
|
|
* Icon types for plug-ins to register.
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_ICON_TYPE (gimp_icon_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_icon_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-05-12 05:56:30 +08:00
|
|
|
GIMP_ICON_TYPE_ICON_NAME, /*< desc="Icon name" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_ICON_TYPE_INLINE_PIXBUF, /*< desc="Inline pixbuf" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_ICON_TYPE_IMAGE_FILE /*< desc="Image file" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpIconType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpImageBaseType:
|
|
|
|
* @GIMP_RGB: RGB color
|
|
|
|
* @GIMP_GRAY: Grayscale
|
|
|
|
* @GIMP_INDEXED: Indexed color
|
|
|
|
*
|
|
|
|
* Image color models.
|
|
|
|
**/
|
2004-07-29 20:33:15 +08:00
|
|
|
#define GIMP_TYPE_IMAGE_BASE_TYPE (gimp_image_base_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_base_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RGB, /*< desc="RGB color" >*/
|
|
|
|
GIMP_GRAY, /*< desc="Grayscale" >*/
|
|
|
|
GIMP_INDEXED /*< desc="Indexed color" >*/
|
|
|
|
} GimpImageBaseType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpImageType:
|
|
|
|
* @GIMP_RGB_IMAGE: RGB
|
|
|
|
* @GIMP_RGBA_IMAGE: RGB-alpha
|
|
|
|
* @GIMP_GRAY_IMAGE: Grayscale
|
|
|
|
* @GIMP_GRAYA_IMAGE: Grayscale-alpha
|
|
|
|
* @GIMP_INDEXED_IMAGE: Indexed
|
|
|
|
* @GIMP_INDEXEDA_IMAGE: Indexed-alpha
|
|
|
|
*
|
|
|
|
* Possible drawable types.
|
|
|
|
**/
|
2004-07-29 20:33:15 +08:00
|
|
|
#define GIMP_TYPE_IMAGE_TYPE (gimp_image_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RGB_IMAGE, /*< desc="RGB" >*/
|
|
|
|
GIMP_RGBA_IMAGE, /*< desc="RGB-alpha" >*/
|
|
|
|
GIMP_GRAY_IMAGE, /*< desc="Grayscale" >*/
|
|
|
|
GIMP_GRAYA_IMAGE, /*< desc="Grayscale-alpha" >*/
|
|
|
|
GIMP_INDEXED_IMAGE, /*< desc="Indexed" >*/
|
|
|
|
GIMP_INDEXEDA_IMAGE /*< desc="Indexed-alpha" >*/
|
|
|
|
} GimpImageType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpInkBlobType:
|
|
|
|
* @GIMP_INK_BLOB_TYPE_CIRCLE: Circle
|
|
|
|
* @GIMP_INK_BLOB_TYPE_SQUARE: Square
|
|
|
|
* @GIMP_INK_BLOB_TYPE_DIAMOND: Diamond
|
|
|
|
*
|
|
|
|
* Ink tool tips.
|
|
|
|
**/
|
2014-04-30 04:44:58 +08:00
|
|
|
#define GIMP_TYPE_INK_BLOB_TYPE (gimp_ink_blob_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_ink_blob_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_INK_BLOB_TYPE_CIRCLE, /*< desc="Circle" >*/
|
|
|
|
GIMP_INK_BLOB_TYPE_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_INK_BLOB_TYPE_DIAMOND /*< desc="Diamond" >*/
|
|
|
|
} GimpInkBlobType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpInterpolationType:
|
2018-04-28 20:00:23 +08:00
|
|
|
* @GIMP_INTERPOLATION_NONE: None
|
|
|
|
* @GIMP_INTERPOLATION_LINEAR: Linear
|
|
|
|
* @GIMP_INTERPOLATION_CUBIC: Cubic
|
|
|
|
* @GIMP_INTERPOLATION_NOHALO: NoHalo
|
|
|
|
* @GIMP_INTERPOLATION_LOHALO: LoHalo
|
2018-05-19 07:34:09 +08:00
|
|
|
*
|
|
|
|
* Interpolation types.
|
|
|
|
**/
|
2005-01-23 07:06:37 +08:00
|
|
|
#define GIMP_TYPE_INTERPOLATION_TYPE (gimp_interpolation_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_interpolation_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2012-03-28 07:54:12 +08:00
|
|
|
GIMP_INTERPOLATION_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_INTERPOLATION_LINEAR, /*< desc="Linear" >*/
|
|
|
|
GIMP_INTERPOLATION_CUBIC, /*< desc="Cubic" >*/
|
2013-01-01 04:27:07 +08:00
|
|
|
GIMP_INTERPOLATION_NOHALO, /*< desc="NoHalo" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_INTERPOLATION_LOHALO /*< desc="LoHalo" >*/
|
2005-01-23 07:06:37 +08:00
|
|
|
} GimpInterpolationType;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpJoinStyle:
|
|
|
|
* @GIMP_JOIN_MITER: Miter
|
|
|
|
* @GIMP_JOIN_ROUND: Round
|
|
|
|
* @GIMP_JOIN_BEVEL: Bevel
|
|
|
|
*
|
|
|
|
* Line join styles.
|
|
|
|
**/
|
2015-11-09 09:16:03 +08:00
|
|
|
#define GIMP_TYPE_JOIN_STYLE (gimp_join_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_join_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_JOIN_MITER, /*< desc="Miter" >*/
|
|
|
|
GIMP_JOIN_ROUND, /*< desc="Round" >*/
|
|
|
|
GIMP_JOIN_BEVEL /*< desc="Bevel" >*/
|
|
|
|
} GimpJoinStyle;
|
|
|
|
|
|
|
|
|
2018-05-19 07:34:09 +08:00
|
|
|
/**
|
|
|
|
* GimpMaskApplyMode:
|
|
|
|
* @GIMP_MASK_APPLY: Apply the mask
|
|
|
|
* @GIMP_MASK_DISCARD: Discard the mask
|
|
|
|
*
|
|
|
|
* Layer mask apply modes.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_MASK_APPLY_MODE (gimp_mask_apply_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_mask_apply_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_MASK_APPLY,
|
|
|
|
GIMP_MASK_DISCARD
|
|
|
|
} GimpMaskApplyMode;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpMergeType:
|
|
|
|
* @GIMP_EXPAND_AS_NECESSARY: Expanded as necessary
|
|
|
|
* @GIMP_CLIP_TO_IMAGE: Clipped to image
|
|
|
|
* @GIMP_CLIP_TO_BOTTOM_LAYER: Clipped to bottom layer
|
|
|
|
* @GIMP_FLATTEN_IMAGE: Flatten
|
|
|
|
*
|
|
|
|
* Types of merging layers.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_MERGE_TYPE (gimp_merge_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_merge_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2016-11-06 22:53:27 +08:00
|
|
|
GIMP_EXPAND_AS_NECESSARY, /*< desc="Expanded as necessary" >*/
|
2016-09-25 06:18:43 +08:00
|
|
|
GIMP_CLIP_TO_IMAGE, /*< desc="Clipped to image" >*/
|
|
|
|
GIMP_CLIP_TO_BOTTOM_LAYER, /*< desc="Clipped to bottom layer" >*/
|
|
|
|
GIMP_FLATTEN_IMAGE /*< desc="Flatten" >*/
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpMergeType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpMessageHandlerType:
|
|
|
|
* @GIMP_MESSAGE_BOX: A popup dialog
|
|
|
|
* @GIMP_CONSOLE: The terminal
|
|
|
|
* @GIMP_ERROR_CONSOLE: The error console dockable
|
|
|
|
*
|
|
|
|
* How to present messages.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_MESSAGE_HANDLER_TYPE (gimp_message_handler_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_message_handler_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_MESSAGE_BOX,
|
|
|
|
GIMP_CONSOLE,
|
|
|
|
GIMP_ERROR_CONSOLE
|
|
|
|
} GimpMessageHandlerType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpOffsetType:
|
|
|
|
* @GIMP_OFFSET_BACKGROUND: Background
|
|
|
|
* @GIMP_OFFSET_TRANSPARENT: Transparent
|
2019-06-06 05:53:16 +08:00
|
|
|
* @GIMP_OFFSET_WRAP_AROUND: Wrap image around
|
2018-05-20 22:37:04 +08:00
|
|
|
*
|
|
|
|
* Background fill types for the offset operation.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_OFFSET_TYPE (gimp_offset_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_offset_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_OFFSET_BACKGROUND,
|
2019-06-06 05:53:16 +08:00
|
|
|
GIMP_OFFSET_TRANSPARENT,
|
|
|
|
GIMP_OFFSET_WRAP_AROUND
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpOffsetType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpOrientationType:
|
|
|
|
* @GIMP_ORIENTATION_HORIZONTAL: Horizontal
|
|
|
|
* @GIMP_ORIENTATION_VERTICAL: Vertical
|
|
|
|
* @GIMP_ORIENTATION_UNKNOWN: Unknown
|
|
|
|
*
|
2018-07-14 19:15:26 +08:00
|
|
|
* Orientations for various purposes.
|
2018-05-20 22:37:04 +08:00
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_ORIENTATION_TYPE (gimp_orientation_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_orientation_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_ORIENTATION_HORIZONTAL, /*< desc="Horizontal" >*/
|
|
|
|
GIMP_ORIENTATION_VERTICAL, /*< desc="Vertical" >*/
|
|
|
|
GIMP_ORIENTATION_UNKNOWN /*< desc="Unknown" >*/
|
|
|
|
} GimpOrientationType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpPaintApplicationMode:
|
|
|
|
* @GIMP_PAINT_CONSTANT: Constant
|
|
|
|
* @GIMP_PAINT_INCREMENTAL: Incremental
|
|
|
|
*
|
|
|
|
* Paint application modes.
|
|
|
|
**/
|
2005-01-23 08:00:20 +08:00
|
|
|
#define GIMP_TYPE_PAINT_APPLICATION_MODE (gimp_paint_application_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_paint_application_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PAINT_CONSTANT, /*< desc="Constant" >*/
|
|
|
|
GIMP_PAINT_INCREMENTAL /*< desc="Incremental" >*/
|
|
|
|
} GimpPaintApplicationMode;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpPDBArgType:
|
|
|
|
* @GIMP_PDB_INT32: 32-bit integer
|
|
|
|
* @GIMP_PDB_INT16: 16-bit integer
|
|
|
|
* @GIMP_PDB_INT8: 8-bit integer
|
|
|
|
* @GIMP_PDB_FLOAT: Float
|
|
|
|
* @GIMP_PDB_STRING: String
|
|
|
|
* @GIMP_PDB_INT32ARRAY: Array of INT32
|
|
|
|
* @GIMP_PDB_INT16ARRAY: Array of INT16
|
|
|
|
* @GIMP_PDB_INT8ARRAY: Array of INT8
|
|
|
|
* @GIMP_PDB_FLOATARRAY: Array of floats
|
|
|
|
* @GIMP_PDB_STRINGARRAY: Array of strings
|
|
|
|
* @GIMP_PDB_COLOR: Color
|
|
|
|
* @GIMP_PDB_ITEM: Item ID
|
|
|
|
* @GIMP_PDB_DISPLAY: Display ID
|
|
|
|
* @GIMP_PDB_IMAGE: Image ID
|
|
|
|
* @GIMP_PDB_LAYER: Layer ID
|
|
|
|
* @GIMP_PDB_CHANNEL: Channel ID
|
|
|
|
* @GIMP_PDB_DRAWABLE: Drawable ID
|
|
|
|
* @GIMP_PDB_SELECTION: Selection ID
|
|
|
|
* @GIMP_PDB_COLORARRAY: Array of colors
|
|
|
|
* @GIMP_PDB_VECTORS: Vectors (psath) ID
|
|
|
|
* @GIMP_PDB_PARASITE: Parasite
|
|
|
|
* @GIMP_PDB_STATUS: Procedure return status
|
|
|
|
* @GIMP_PDB_END: Marker for last enum value
|
|
|
|
*
|
|
|
|
* Parameter types of the PDB.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_PDB_ARG_TYPE (gimp_pdb_arg_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_arg_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PDB_INT32,
|
|
|
|
GIMP_PDB_INT16,
|
|
|
|
GIMP_PDB_INT8,
|
|
|
|
GIMP_PDB_FLOAT,
|
|
|
|
GIMP_PDB_STRING,
|
|
|
|
GIMP_PDB_INT32ARRAY,
|
|
|
|
GIMP_PDB_INT16ARRAY,
|
|
|
|
GIMP_PDB_INT8ARRAY,
|
|
|
|
GIMP_PDB_FLOATARRAY,
|
|
|
|
GIMP_PDB_STRINGARRAY,
|
|
|
|
GIMP_PDB_COLOR,
|
|
|
|
GIMP_PDB_ITEM,
|
|
|
|
GIMP_PDB_DISPLAY,
|
|
|
|
GIMP_PDB_IMAGE,
|
|
|
|
GIMP_PDB_LAYER,
|
|
|
|
GIMP_PDB_CHANNEL,
|
|
|
|
GIMP_PDB_DRAWABLE,
|
|
|
|
GIMP_PDB_SELECTION,
|
|
|
|
GIMP_PDB_COLORARRAY,
|
|
|
|
GIMP_PDB_VECTORS,
|
|
|
|
GIMP_PDB_PARASITE,
|
|
|
|
GIMP_PDB_STATUS,
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_PDB_END
|
2014-05-14 05:29:17 +08:00
|
|
|
} GimpPDBArgType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpPDBErrorHandler:
|
|
|
|
* @GIMP_PDB_ERROR_HANDLER_INTERNAL: Internal
|
|
|
|
* @GIMP_PDB_ERROR_HANDLER_PLUGIN: Plug-In
|
|
|
|
*
|
|
|
|
* PDB error handlers.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_PDB_ERROR_HANDLER (gimp_pdb_error_handler_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_error_handler_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PDB_ERROR_HANDLER_INTERNAL,
|
|
|
|
GIMP_PDB_ERROR_HANDLER_PLUGIN
|
|
|
|
} GimpPDBErrorHandler;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpPDBProcType:
|
|
|
|
* @GIMP_INTERNAL: Internal GIMP procedure
|
|
|
|
* @GIMP_PLUGIN: GIMP Plug-In
|
|
|
|
* @GIMP_EXTENSION: GIMP Extension
|
|
|
|
* @GIMP_TEMPORARY: Temporary Procedure
|
|
|
|
*
|
|
|
|
* Types of PDB procedures.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_PDB_PROC_TYPE (gimp_pdb_proc_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_proc_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_INTERNAL, /*< desc="Internal GIMP procedure" >*/
|
|
|
|
GIMP_PLUGIN, /*< desc="GIMP Plug-In" >*/
|
|
|
|
GIMP_EXTENSION, /*< desc="GIMP Extension" >*/
|
|
|
|
GIMP_TEMPORARY /*< desc="Temporary Procedure" >*/
|
|
|
|
} GimpPDBProcType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpPDBStatusType:
|
|
|
|
* @GIMP_PDB_EXECUTION_ERROR: Execution error
|
|
|
|
* @GIMP_PDB_CALLING_ERROR: Calling error
|
|
|
|
* @GIMP_PDB_PASS_THROUGH: Pass through
|
|
|
|
* @GIMP_PDB_SUCCESS: Success
|
|
|
|
* @GIMP_PDB_CANCEL: User cancel
|
|
|
|
*
|
|
|
|
* Return status of PDB calls.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_PDB_STATUS_TYPE (gimp_pdb_status_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_pdb_status_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PDB_EXECUTION_ERROR,
|
|
|
|
GIMP_PDB_CALLING_ERROR,
|
|
|
|
GIMP_PDB_PASS_THROUGH,
|
|
|
|
GIMP_PDB_SUCCESS,
|
|
|
|
GIMP_PDB_CANCEL
|
|
|
|
} GimpPDBStatusType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpPrecision:
|
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_LINEAR: 8-bit linear integer
|
|
|
|
* @GIMP_PRECISION_U8_NON_LINEAR: 8-bit non-linear integer
|
|
|
|
* @GIMP_PRECISION_U8_PERCEPTUAL: 8-bit perceptual integer
|
|
|
|
* @GIMP_PRECISION_U16_LINEAR: 16-bit linear integer
|
|
|
|
* @GIMP_PRECISION_U16_NON_LINEAR: 16-bit non-linear integer
|
|
|
|
* @GIMP_PRECISION_U16_PERCEPTUAL: 16-bit perceptual integer
|
|
|
|
* @GIMP_PRECISION_U32_LINEAR: 32-bit linear integer
|
|
|
|
* @GIMP_PRECISION_U32_NON_LINEAR: 32-bit non-linear integer
|
|
|
|
* @GIMP_PRECISION_U32_PERCEPTUAL: 32-bit perceptual integer
|
|
|
|
* @GIMP_PRECISION_HALF_LINEAR: 16-bit linear floating point
|
|
|
|
* @GIMP_PRECISION_HALF_NON_LINEAR: 16-bit non-linear floating point
|
|
|
|
* @GIMP_PRECISION_HALF_PERCEPTUAL: 16-bit perceptual floating point
|
|
|
|
* @GIMP_PRECISION_FLOAT_LINEAR: 32-bit linear floating point
|
|
|
|
* @GIMP_PRECISION_FLOAT_NON_LINEAR: 32-bit non-linear floating point
|
|
|
|
* @GIMP_PRECISION_FLOAT_PERCEPTUAL: 32-bit perceptual floating point
|
|
|
|
* @GIMP_PRECISION_DOUBLE_LINEAR: 64-bit linear floating point
|
|
|
|
* @GIMP_PRECISION_DOUBLE_NON_LINEAR: 64-bit non-linear floating point
|
|
|
|
* @GIMP_PRECISION_DOUBLE_PERCEPTUAL: 64-bit perceptual floating point
|
|
|
|
* @GIMP_PRECISION_U8_GAMMA: deprecated alias for
|
|
|
|
* @GIMP_PRECISION_U8_NON_LINEAR
|
|
|
|
* @GIMP_PRECISION_U16_GAMMA: deprecated alias for
|
|
|
|
* @GIMP_PRECISION_U16_NON_LINEAR
|
|
|
|
* @GIMP_PRECISION_U32_GAMMA: deprecated alias for
|
|
|
|
* @GIMP_PRECISION_U32_NON_LINEAR
|
|
|
|
* @GIMP_PRECISION_HALF_GAMMA: deprecated alias for
|
|
|
|
* @GIMP_PRECISION_HALF_NON_LINEAR
|
|
|
|
* @GIMP_PRECISION_FLOAT_GAMMA: deprecated alias for
|
|
|
|
* @GIMP_PRECISION_FLOAT_NON_LINEAR
|
|
|
|
* @GIMP_PRECISION_DOUBLE_GAMMA: deprecated alias for
|
|
|
|
* @GIMP_PRECISION_DOUBLE_NON_LINEAR
|
2018-05-20 22:37:04 +08:00
|
|
|
*
|
|
|
|
* Precisions for pixel encoding.
|
|
|
|
*
|
|
|
|
* Since: 2.10
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_PRECISION (gimp_precision_get_type ())
|
|
|
|
|
|
|
|
GType gimp_precision_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
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_LINEAR = 100, /*< desc="8-bit linear integer" >*/
|
|
|
|
GIMP_PRECISION_U8_NON_LINEAR = 150, /*< desc="8-bit non-linear integer" >*/
|
|
|
|
GIMP_PRECISION_U8_PERCEPTUAL = 175, /*< desc="8-bit perceptual integer" >*/
|
|
|
|
GIMP_PRECISION_U16_LINEAR = 200, /*< desc="16-bit linear integer" >*/
|
|
|
|
GIMP_PRECISION_U16_NON_LINEAR = 250, /*< desc="16-bit non-linear integer" >*/
|
|
|
|
GIMP_PRECISION_U16_PERCEPTUAL = 275, /*< desc="16-bit perceptual integer" >*/
|
|
|
|
GIMP_PRECISION_U32_LINEAR = 300, /*< desc="32-bit linear integer" >*/
|
|
|
|
GIMP_PRECISION_U32_NON_LINEAR = 350, /*< desc="32-bit non-linear integer" >*/
|
|
|
|
GIMP_PRECISION_U32_PERCEPTUAL = 375, /*< desc="32-bit perceptual integer" >*/
|
|
|
|
GIMP_PRECISION_HALF_LINEAR = 500, /*< desc="16-bit linear floating point" >*/
|
|
|
|
GIMP_PRECISION_HALF_NON_LINEAR = 550, /*< desc="16-bit non-linear floating point" >*/
|
|
|
|
GIMP_PRECISION_HALF_PERCEPTUAL = 575, /*< desc="16-bit perceptual floating point" >*/
|
|
|
|
GIMP_PRECISION_FLOAT_LINEAR = 600, /*< desc="32-bit linear floating point" >*/
|
|
|
|
GIMP_PRECISION_FLOAT_NON_LINEAR = 650, /*< desc="32-bit non-linear floating point" >*/
|
|
|
|
GIMP_PRECISION_FLOAT_PERCEPTUAL = 675, /*< desc="32-bit perceptual floating point" >*/
|
|
|
|
GIMP_PRECISION_DOUBLE_LINEAR = 700, /*< desc="64-bit linear floating point" >*/
|
|
|
|
GIMP_PRECISION_DOUBLE_NON_LINEAR = 750, /*< desc="64-bit non-linear floating point" >*/
|
|
|
|
GIMP_PRECISION_DOUBLE_PERCEPTUAL = 775, /*< desc="64-bit perceptual floating point" >*/
|
|
|
|
|
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
|
|
|
GIMP_PRECISION_U8_GAMMA = GIMP_PRECISION_U8_NON_LINEAR,
|
|
|
|
GIMP_PRECISION_U16_GAMMA = GIMP_PRECISION_U16_NON_LINEAR,
|
|
|
|
GIMP_PRECISION_U32_GAMMA = GIMP_PRECISION_U32_NON_LINEAR,
|
|
|
|
GIMP_PRECISION_HALF_GAMMA = GIMP_PRECISION_HALF_NON_LINEAR,
|
|
|
|
GIMP_PRECISION_FLOAT_GAMMA = GIMP_PRECISION_FLOAT_NON_LINEAR,
|
|
|
|
GIMP_PRECISION_DOUBLE_GAMMA = GIMP_PRECISION_DOUBLE_NON_LINEAR
|
2019-07-20 08:40:49 +08:00
|
|
|
#endif
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpPrecision;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpProgressCommand:
|
|
|
|
* @GIMP_PROGRESS_COMMAND_START: Start a progress
|
|
|
|
* @GIMP_PROGRESS_COMMAND_END: End the progress
|
|
|
|
* @GIMP_PROGRESS_COMMAND_SET_TEXT: Set the text
|
|
|
|
* @GIMP_PROGRESS_COMMAND_SET_VALUE: Set the percentage
|
|
|
|
* @GIMP_PROGRESS_COMMAND_PULSE: Pulse the progress
|
|
|
|
* @GIMP_PROGRESS_COMMAND_GET_WINDOW: Get the window where the progress is shown
|
|
|
|
*
|
|
|
|
* Commands for the progress API.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_PROGRESS_COMMAND (gimp_progress_command_get_type ())
|
|
|
|
|
|
|
|
GType gimp_progress_command_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PROGRESS_COMMAND_START,
|
|
|
|
GIMP_PROGRESS_COMMAND_END,
|
|
|
|
GIMP_PROGRESS_COMMAND_SET_TEXT,
|
|
|
|
GIMP_PROGRESS_COMMAND_SET_VALUE,
|
|
|
|
GIMP_PROGRESS_COMMAND_PULSE,
|
|
|
|
GIMP_PROGRESS_COMMAND_GET_WINDOW
|
|
|
|
} GimpProgressCommand;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpRepeatMode:
|
|
|
|
* @GIMP_REPEAT_NONE: None (extend)
|
|
|
|
* @GIMP_REPEAT_SAWTOOTH: Sawtooth wave
|
|
|
|
* @GIMP_REPEAT_TRIANGULAR: Triangular wave
|
|
|
|
* @GIMP_REPEAT_TRUNCATE: Truncate
|
|
|
|
*
|
|
|
|
* Repeat modes for example for gradients.
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_REPEAT_MODE (gimp_repeat_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_repeat_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-25 05:08:33 +08:00
|
|
|
GIMP_REPEAT_NONE, /*< desc="None (extend)" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_REPEAT_SAWTOOTH, /*< desc="Sawtooth wave" >*/
|
2014-04-25 05:08:33 +08:00
|
|
|
GIMP_REPEAT_TRIANGULAR, /*< desc="Triangular wave" >*/
|
|
|
|
GIMP_REPEAT_TRUNCATE /*< desc="Truncate" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpRepeatMode;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpRotationType:
|
|
|
|
* @GIMP_ROTATE_90: 90 degrees
|
|
|
|
* @GIMP_ROTATE_180: 180 degrees
|
|
|
|
* @GIMP_ROTATE_270: 270 degrees
|
|
|
|
*
|
|
|
|
* Types of simple rotations.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_ROTATION_TYPE (gimp_rotation_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_rotation_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_ROTATE_90,
|
|
|
|
GIMP_ROTATE_180,
|
|
|
|
GIMP_ROTATE_270
|
|
|
|
} GimpRotationType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpRunMode:
|
|
|
|
* @GIMP_RUN_INTERACTIVE: Run interactively
|
|
|
|
* @GIMP_RUN_NONINTERACTIVE: Run non-interactively
|
|
|
|
* @GIMP_RUN_WITH_LAST_VALS: Run with last used values
|
|
|
|
*
|
|
|
|
* Run modes for plug-ins.
|
|
|
|
**/
|
2006-04-06 18:16:39 +08:00
|
|
|
#define GIMP_TYPE_RUN_MODE (gimp_run_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_run_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RUN_INTERACTIVE, /*< desc="Run interactively" >*/
|
|
|
|
GIMP_RUN_NONINTERACTIVE, /*< desc="Run non-interactively" >*/
|
|
|
|
GIMP_RUN_WITH_LAST_VALS /*< desc="Run with last used values" >*/
|
|
|
|
} GimpRunMode;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpSelectCriterion:
|
|
|
|
* @GIMP_SELECT_CRITERION_COMPOSITE: Composite
|
|
|
|
* @GIMP_SELECT_CRITERION_R: Red
|
|
|
|
* @GIMP_SELECT_CRITERION_G: Green
|
|
|
|
* @GIMP_SELECT_CRITERION_B: Blue
|
2018-07-08 22:15:13 +08:00
|
|
|
* @GIMP_SELECT_CRITERION_H: HSV Hue
|
|
|
|
* @GIMP_SELECT_CRITERION_S: HSV Saturation
|
|
|
|
* @GIMP_SELECT_CRITERION_V: HSV Value
|
2018-05-20 22:37:04 +08:00
|
|
|
* @GIMP_SELECT_CRITERION_A: Alpha
|
2018-07-08 22:15:13 +08:00
|
|
|
* @GIMP_SELECT_CRITERION_LCH_L: LCh Lightness
|
|
|
|
* @GIMP_SELECT_CRITERION_LCH_C: LCh Chroma
|
2018-10-09 01:59:32 +08:00
|
|
|
* @GIMP_SELECT_CRITERION_LCH_H: LCh Hue
|
2018-05-20 22:37:04 +08:00
|
|
|
*
|
|
|
|
* Criterions for color similarity.
|
|
|
|
**/
|
2014-05-13 06:27:29 +08:00
|
|
|
#define GIMP_TYPE_SELECT_CRITERION (gimp_select_criterion_get_type ())
|
|
|
|
|
|
|
|
GType gimp_select_criterion_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2018-07-08 22:15:13 +08:00
|
|
|
GIMP_SELECT_CRITERION_COMPOSITE, /*< desc="Composite" >*/
|
|
|
|
GIMP_SELECT_CRITERION_R, /*< desc="Red" >*/
|
|
|
|
GIMP_SELECT_CRITERION_G, /*< desc="Green" >*/
|
|
|
|
GIMP_SELECT_CRITERION_B, /*< desc="Blue" >*/
|
|
|
|
GIMP_SELECT_CRITERION_H, /*< desc="HSV Hue" >*/
|
|
|
|
GIMP_SELECT_CRITERION_S, /*< desc="HSV Saturation" >*/
|
|
|
|
GIMP_SELECT_CRITERION_V, /*< desc="HSV Value" >*/
|
|
|
|
GIMP_SELECT_CRITERION_A, /*< desc="Alpha" >*/
|
|
|
|
GIMP_SELECT_CRITERION_LCH_L, /*< desc="LCh Lightness" >*/
|
|
|
|
GIMP_SELECT_CRITERION_LCH_C, /*< desc="LCh Chroma" >*/
|
|
|
|
GIMP_SELECT_CRITERION_LCH_H, /*< desc="LCh Hue" >*/
|
2014-05-13 06:27:29 +08:00
|
|
|
} GimpSelectCriterion;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpSizeType:
|
|
|
|
* @GIMP_PIXELS: Pixels
|
|
|
|
* @GIMP_POINTS: Points
|
|
|
|
*
|
|
|
|
* Size types for the old-style text API.
|
|
|
|
**/
|
2005-01-23 08:58:22 +08:00
|
|
|
#define GIMP_TYPE_SIZE_TYPE (gimp_size_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_size_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_PIXELS, /*< desc="Pixels" >*/
|
|
|
|
GIMP_POINTS /*< desc="Points" >*/
|
|
|
|
} GimpSizeType;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpStackTraceMode:
|
|
|
|
* @GIMP_STACK_TRACE_NEVER: Never
|
|
|
|
* @GIMP_STACK_TRACE_QUERY: Ask each time
|
|
|
|
* @GIMP_STACK_TRACE_ALWAYS: Always
|
|
|
|
*
|
|
|
|
* When to generate stack traces in case of an error.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_STACK_TRACE_MODE (gimp_stack_trace_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_stack_trace_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_STACK_TRACE_NEVER,
|
|
|
|
GIMP_STACK_TRACE_QUERY,
|
|
|
|
GIMP_STACK_TRACE_ALWAYS
|
|
|
|
} GimpStackTraceMode;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpStrokeMethod:
|
|
|
|
* @GIMP_STROKE_LINE: Stroke line
|
|
|
|
* @GIMP_STROKE_PAINT_METHOD: Stroke with a paint tool
|
|
|
|
*
|
|
|
|
* Methods of stroking selections and paths.
|
|
|
|
**/
|
2015-11-09 05:48:48 +08:00
|
|
|
#define GIMP_TYPE_STROKE_METHOD (gimp_stroke_method_get_type ())
|
|
|
|
|
|
|
|
GType gimp_stroke_method_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_STROKE_LINE, /*< desc="Stroke line" >*/
|
|
|
|
GIMP_STROKE_PAINT_METHOD /*< desc="Stroke with a paint tool" >*/
|
|
|
|
} GimpStrokeMethod;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpTextDirection:
|
|
|
|
* @GIMP_TEXT_DIRECTION_LTR: From left to right
|
|
|
|
* @GIMP_TEXT_DIRECTION_RTL: From right to left
|
2018-07-29 12:57:38 +08:00
|
|
|
* @GIMP_TEXT_DIRECTION_TTB_RTL: Characters are from top to bottom, Lines are from right to left
|
|
|
|
* @GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT: Upright characters are from top to bottom, Lines are from right to left
|
|
|
|
* @GIMP_TEXT_DIRECTION_TTB_LTR: Characters are from top to bottom, Lines are from left to right
|
|
|
|
* @GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT: Upright characters are from top to bottom, Lines are from left to right
|
2018-05-20 22:37:04 +08:00
|
|
|
*
|
|
|
|
* Text directions.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_TEXT_DIRECTION (gimp_text_direction_get_type ())
|
|
|
|
|
|
|
|
GType gimp_text_direction_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2018-08-02 20:06:48 +08:00
|
|
|
GIMP_TEXT_DIRECTION_LTR, /*< desc="From left to right" >*/
|
|
|
|
GIMP_TEXT_DIRECTION_RTL, /*< desc="From right to left" >*/
|
2018-08-02 22:40:55 +08:00
|
|
|
GIMP_TEXT_DIRECTION_TTB_RTL, /*< desc="Vertical, right to left (mixed orientation)" >*/
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT, /*< desc="Vertical, right to left (upright orientation)" >*/
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_LTR, /*< desc="Vertical, left to right (mixed orientation)" >*/
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT /*< desc="Vertical, left to right (upright orientation)" >*/
|
2014-05-14 05:29:17 +08:00
|
|
|
} GimpTextDirection;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpTextHintStyle:
|
|
|
|
* @GIMP_TEXT_HINT_STYLE_NONE: None
|
|
|
|
* @GIMP_TEXT_HINT_STYLE_SLIGHT: Slight
|
|
|
|
* @GIMP_TEXT_HINT_STYLE_MEDIUM: Medium
|
|
|
|
* @GIMP_TEXT_HINT_STYLE_FULL: Full
|
|
|
|
*
|
|
|
|
* Text hint strengths.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_TEXT_HINT_STYLE (gimp_text_hint_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_text_hint_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_TEXT_HINT_STYLE_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_TEXT_HINT_STYLE_SLIGHT, /*< desc="Slight" >*/
|
|
|
|
GIMP_TEXT_HINT_STYLE_MEDIUM, /*< desc="Medium" >*/
|
|
|
|
GIMP_TEXT_HINT_STYLE_FULL /*< desc="Full" >*/
|
|
|
|
} GimpTextHintStyle;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpTextJustification:
|
|
|
|
* @GIMP_TEXT_JUSTIFY_LEFT: Left justified
|
|
|
|
* @GIMP_TEXT_JUSTIFY_RIGHT: Right justified
|
|
|
|
* @GIMP_TEXT_JUSTIFY_CENTER: Centered
|
|
|
|
* @GIMP_TEXT_JUSTIFY_FILL: Filled
|
|
|
|
*
|
|
|
|
* Text justifications.
|
|
|
|
**/
|
2014-05-14 05:29:17 +08:00
|
|
|
#define GIMP_TYPE_TEXT_JUSTIFICATION (gimp_text_justification_get_type ())
|
|
|
|
|
|
|
|
GType gimp_text_justification_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_TEXT_JUSTIFY_LEFT, /*< desc="Left justified" >*/
|
|
|
|
GIMP_TEXT_JUSTIFY_RIGHT, /*< desc="Right justified" >*/
|
|
|
|
GIMP_TEXT_JUSTIFY_CENTER, /*< desc="Centered" >*/
|
|
|
|
GIMP_TEXT_JUSTIFY_FILL /*< desc="Filled" >*/
|
|
|
|
} GimpTextJustification;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpTransferMode:
|
|
|
|
* @GIMP_TRANSFER_SHADOWS: Shadows
|
|
|
|
* @GIMP_TRANSFER_MIDTONES: Midtones
|
|
|
|
* @GIMP_TRANSFER_HIGHLIGHTS: Highlights
|
|
|
|
*
|
|
|
|
* For choosing which brightness ranges to transform.
|
|
|
|
**/
|
2005-01-23 07:06:37 +08:00
|
|
|
#define GIMP_TYPE_TRANSFER_MODE (gimp_transfer_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transfer_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2014-04-30 02:55:08 +08:00
|
|
|
GIMP_TRANSFER_SHADOWS, /*< desc="Shadows" >*/
|
|
|
|
GIMP_TRANSFER_MIDTONES, /*< desc="Midtones" >*/
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_TRANSFER_HIGHLIGHTS /*< desc="Highlights" >*/
|
2005-01-23 07:06:37 +08:00
|
|
|
} GimpTransferMode;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpTransformDirection:
|
|
|
|
* @GIMP_TRANSFORM_FORWARD: Normal (Forward)
|
|
|
|
* @GIMP_TRANSFORM_BACKWARD: Corrective (Backward)
|
|
|
|
*
|
|
|
|
* Transform directions.
|
|
|
|
**/
|
2005-01-23 07:38:36 +08:00
|
|
|
#define GIMP_TYPE_TRANSFORM_DIRECTION (gimp_transform_direction_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transform_direction_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2007-03-19 16:06:51 +08:00
|
|
|
GIMP_TRANSFORM_FORWARD, /*< desc="Normal (Forward)" >*/
|
|
|
|
GIMP_TRANSFORM_BACKWARD /*< desc="Corrective (Backward)" >*/
|
2005-01-23 07:38:36 +08:00
|
|
|
} GimpTransformDirection;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpTransformResize:
|
|
|
|
* @GIMP_TRANSFORM_RESIZE_ADJUST: Adjust
|
|
|
|
* @GIMP_TRANSFORM_RESIZE_CLIP: Clip
|
|
|
|
* @GIMP_TRANSFORM_RESIZE_CROP: Crop to result
|
|
|
|
* @GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT: Crop with aspect
|
|
|
|
*
|
|
|
|
* Ways of clipping the result when transforming drawables.
|
|
|
|
**/
|
2006-12-25 00:48:08 +08:00
|
|
|
#define GIMP_TYPE_TRANSFORM_RESIZE (gimp_transform_resize_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transform_resize_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2015-04-27 11:25:16 +08:00
|
|
|
GIMP_TRANSFORM_RESIZE_ADJUST, /*< desc="Adjust" >*/
|
|
|
|
GIMP_TRANSFORM_RESIZE_CLIP, /*< desc="Clip" >*/
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP, /*< desc="Crop to result" >*/
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT /*< desc="Crop with aspect" >*/
|
2006-12-25 00:48:08 +08:00
|
|
|
} GimpTransformResize;
|
|
|
|
|
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpUnit:
|
|
|
|
* @GIMP_UNIT_PIXEL: Pixels
|
|
|
|
* @GIMP_UNIT_INCH: Inches
|
|
|
|
* @GIMP_UNIT_MM: Millimeters
|
|
|
|
* @GIMP_UNIT_POINT: Points
|
|
|
|
* @GIMP_UNIT_PICA: Picas
|
|
|
|
* @GIMP_UNIT_END: Marker for end-of-builtin-units
|
|
|
|
* @GIMP_UNIT_PERCENT: Pseudo-unit percent
|
|
|
|
*
|
|
|
|
* Units used for dimensions in images.
|
|
|
|
**/
|
2004-10-26 03:29:00 +08:00
|
|
|
typedef enum /*< skip >*/
|
2004-07-29 20:33:15 +08:00
|
|
|
{
|
|
|
|
GIMP_UNIT_PIXEL = 0,
|
|
|
|
|
|
|
|
GIMP_UNIT_INCH = 1,
|
|
|
|
GIMP_UNIT_MM = 2,
|
|
|
|
GIMP_UNIT_POINT = 3,
|
|
|
|
GIMP_UNIT_PICA = 4,
|
|
|
|
|
|
|
|
GIMP_UNIT_END = 5,
|
|
|
|
|
|
|
|
GIMP_UNIT_PERCENT = 65536 /*< pdb-skip >*/
|
|
|
|
} GimpUnit;
|
|
|
|
|
2004-10-26 03:29:00 +08:00
|
|
|
|
2018-05-20 22:37:04 +08:00
|
|
|
/**
|
|
|
|
* GimpVectorsStrokeType:
|
|
|
|
* @GIMP_VECTORS_STROKE_TYPE_BEZIER: A bezier stroke
|
|
|
|
*
|
|
|
|
* Possible type of strokes in vectors objects.
|
|
|
|
**/
|
2006-10-25 23:14:03 +08:00
|
|
|
#define GIMP_TYPE_VECTORS_STROKE_TYPE (gimp_vectors_stroke_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_vectors_stroke_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_VECTORS_STROKE_TYPE_BEZIER
|
|
|
|
} GimpVectorsStrokeType;
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_BASE_ENUMS_H__ */
|