gimpenums

gimpenums — Enums and definitions.

Synopsis

void                gimp_enums_init                     (void);
enum                GimpBrushApplicationMode;
enum                GimpBrushGeneratedShape;
enum                GimpConvertDitherType;
enum                GimpConvertPaletteType;
enum                GimpConvolutionType;
enum                GimpConvolveType;
enum                GimpFillType;
enum                GimpGradientSegmentColor;
enum                GimpGradientSegmentType;
enum                GimpHistogramChannel;
enum                GimpHueRange;
enum                GimpInkBlobType;
enum                GimpLayerModeEffects;
enum                GimpMaskApplyMode;
enum                GimpMergeType;
enum                GimpOffsetType;
enum                GimpOrientationType;
enum                GimpRotationType;
enum                GimpSelectCriterion;
const gchar **      gimp_enums_get_type_names           (gint *n_type_names);

Description

Enums and definitions.

Details

gimp_enums_init ()

void                gimp_enums_init                     (void);

This function makes sure all the enum types are registered with the GType system. This is intended for use by language bindings that need the symbols early, before gimp_main is run. It's not necessary for plug-ins to call this directly, because the normal plug-in initialization code will handle it implicitly.

Since GIMP 2.4


enum GimpBrushApplicationMode

typedef enum {
  GIMP_BRUSH_HARD,
  GIMP_BRUSH_SOFT
} GimpBrushApplicationMode;


enum GimpBrushGeneratedShape

typedef enum {
  GIMP_BRUSH_GENERATED_CIRCLE,
  GIMP_BRUSH_GENERATED_SQUARE,
  GIMP_BRUSH_GENERATED_DIAMOND
} GimpBrushGeneratedShape;

The possible shapes generated brushes can take.

GIMP_BRUSH_GENERATED_CIRCLE

The brush has a circle shape.

GIMP_BRUSH_GENERATED_SQUARE

The brush has a square shape.

GIMP_BRUSH_GENERATED_DIAMOND

The brush has a diamond shape.

enum GimpConvertDitherType

typedef enum {
  GIMP_NO_DITHER,
  GIMP_FS_DITHER,
  GIMP_FSLOWBLEED_DITHER,
  GIMP_FIXED_DITHER
} GimpConvertDitherType;


enum GimpConvertPaletteType

typedef enum {
  GIMP_MAKE_PALETTE,
  GIMP_REUSE_PALETTE,
  GIMP_WEB_PALETTE,
  GIMP_MONO_PALETTE,
  GIMP_CUSTOM_PALETTE
} GimpConvertPaletteType;


enum GimpConvolutionType

typedef enum {
  GIMP_NORMAL_CONVOL,
  GIMP_ABSOLUTE_CONVOL,
  GIMP_NEGATIVE_CONVOL
} GimpConvolutionType;


enum GimpConvolveType

typedef enum {
  GIMP_BLUR_CONVOLVE,
  GIMP_SHARPEN_CONVOLVE
} GimpConvolveType;

Operation modes of the convolve tool.

GIMP_BLUR_CONVOLVE

Blur the drawable.

GIMP_SHARPEN_CONVOLVE

Sharpen the drawable.

enum GimpFillType

typedef enum {
  GIMP_FOREGROUND_FILL,
  GIMP_BACKGROUND_FILL,
  GIMP_WHITE_FILL,
  GIMP_TRANSPARENT_FILL,
  GIMP_PATTERN_FILL
} GimpFillType;


enum GimpGradientSegmentColor

typedef enum {
  GIMP_GRADIENT_SEGMENT_RGB,
  GIMP_GRADIENT_SEGMENT_HSV_CCW,
  GIMP_GRADIENT_SEGMENT_HSV_CW
} GimpGradientSegmentColor;


enum GimpGradientSegmentType

typedef enum {
  GIMP_GRADIENT_SEGMENT_LINEAR,
  GIMP_GRADIENT_SEGMENT_CURVED,
  GIMP_GRADIENT_SEGMENT_SINE,
  GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING,
  GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING
} GimpGradientSegmentType;


enum GimpHistogramChannel

typedef enum {
  GIMP_HISTOGRAM_VALUE,
  GIMP_HISTOGRAM_RED,
  GIMP_HISTOGRAM_GREEN,
  GIMP_HISTOGRAM_BLUE,
  GIMP_HISTOGRAM_ALPHA
} GimpHistogramChannel;


enum GimpHueRange

typedef enum {
  GIMP_ALL_HUES,
  GIMP_RED_HUES,
  GIMP_YELLOW_HUES,
  GIMP_GREEN_HUES,
  GIMP_CYAN_HUES,
  GIMP_BLUE_HUES,
  GIMP_MAGENTA_HUES
} GimpHueRange;


enum GimpInkBlobType

typedef enum {
  GIMP_INK_BLOB_TYPE_CIRCLE,
  GIMP_INK_BLOB_TYPE_SQUARE,
  GIMP_INK_BLOB_TYPE_DIAMOND
} GimpInkBlobType;


enum GimpLayerModeEffects

typedef enum {
  GIMP_NORMAL_MODE,
  GIMP_DISSOLVE_MODE,
  GIMP_BEHIND_MODE,
  GIMP_MULTIPLY_MODE,
  GIMP_SCREEN_MODE,
  GIMP_OVERLAY_MODE,
  GIMP_DIFFERENCE_MODE,
  GIMP_ADDITION_MODE,
  GIMP_SUBTRACT_MODE,
  GIMP_DARKEN_ONLY_MODE,
  GIMP_LIGHTEN_ONLY_MODE,
  GIMP_HUE_MODE,
  GIMP_SATURATION_MODE,
  GIMP_COLOR_MODE,
  GIMP_VALUE_MODE,
  GIMP_DIVIDE_MODE,
  GIMP_DODGE_MODE,
  GIMP_BURN_MODE,
  GIMP_HARDLIGHT_MODE,
  GIMP_SOFTLIGHT_MODE,
  GIMP_GRAIN_EXTRACT_MODE,
  GIMP_GRAIN_MERGE_MODE,
  GIMP_COLOR_ERASE_MODE
} GimpLayerModeEffects;


enum GimpMaskApplyMode

typedef enum {
  GIMP_MASK_APPLY,
  GIMP_MASK_DISCARD
} GimpMaskApplyMode;


enum GimpMergeType

typedef enum {
  GIMP_EXPAND_AS_NECESSARY,
  GIMP_CLIP_TO_IMAGE,
  GIMP_CLIP_TO_BOTTOM_LAYER,
  GIMP_FLATTEN_IMAGE
} GimpMergeType;


enum GimpOffsetType

typedef enum {
  GIMP_OFFSET_BACKGROUND,
  GIMP_OFFSET_TRANSPARENT
} GimpOffsetType;


enum GimpOrientationType

typedef enum {
  GIMP_ORIENTATION_HORIZONTAL,
  GIMP_ORIENTATION_VERTICAL,
  GIMP_ORIENTATION_UNKNOWN
} GimpOrientationType;

Orientation values for all kinds of purposes, like guides.

GIMP_ORIENTATION_HORIZONTAL

Horizontal ortientation.

GIMP_ORIENTATION_VERTICAL

Vertical orientation.

GIMP_ORIENTATION_UNKNOWN

Undetermined orientation.

enum GimpRotationType

typedef enum {
  GIMP_ROTATE_90,
  GIMP_ROTATE_180,
  GIMP_ROTATE_270
} GimpRotationType;

Steps for simple rotation based on multpiles of 90 degrees.

GIMP_ROTATE_90

Rotate by 90 degrees.

GIMP_ROTATE_180

Rotate by 180 degrees.

GIMP_ROTATE_270

Rotate by 270 degrees.

enum GimpSelectCriterion

typedef enum {
  GIMP_SELECT_CRITERION_COMPOSITE,
  GIMP_SELECT_CRITERION_R,
  GIMP_SELECT_CRITERION_G,
  GIMP_SELECT_CRITERION_B,
  GIMP_SELECT_CRITERION_H,
  GIMP_SELECT_CRITERION_S,
  GIMP_SELECT_CRITERION_V
} GimpSelectCriterion;


gimp_enums_get_type_names ()

const gchar **      gimp_enums_get_type_names           (gint *n_type_names);

This function gives access to the list of enums registered by libgimp. The returned array is static and must not be modified.

n_type_names :

return location for the number of names

Returns :

an array with type names

Since GIMP 2.2