## 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                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 GObject type 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, as 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;

### 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;

### 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 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;

### enum GimpRotationType

    typedef enum
    {
      GIMP_ROTATE_90,
      GIMP_ROTATE_180,
      GIMP_ROTATE_270
    } GimpRotationType;

### 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