Gimp.enum_get_value
Description: Reference for Gimp.enum_get_value

### Function

# Gimpenum_get_value

since: 2.2

#### Declaration [src]

    gboolean
    gimp_enum_get_value (
      GType enum_type,
      gint value,
      const gchar** value_name,
      const gchar** value_nick,
      const gchar** value_desc,
      const gchar** value_help
    )

#### Description [src]

Checks if `value` is valid for the enum registered as `enum_type`. If the value exists in that enum, its name, nick and its translated description and help are returned (if `value_name`, `value_nick`, `value_desc` and `value_help` are not `NULL`).

Available since: 2.2

#### Parameters

`enum_type`

  Type: `GType`

  The `GType` of a registered enum.

`value`

  Type: `gint`

  An integer value.

`value_name`

  Type: `const gchar**`

  Return location for the value’s name, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the function takes ownership of the returned data, and is responsible for freeing it.
  The value is a NUL terminated UTF-8 string.

`value_nick`

  Type: `const gchar**`

  Return location for the value’s nick, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the function takes ownership of the returned data, and is responsible for freeing it.
  The value is a NUL terminated UTF-8 string.

`value_desc`

  Type: `const gchar**`

  Return location for the value’s translated description, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the function takes ownership of the returned data, and is responsible for freeing it.
  The value is a NUL terminated UTF-8 string.

`value_help`

  Type: `const gchar**`

  Return location for the value’s translated help, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the function takes ownership of the returned data, and is responsible for freeing it.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `gboolean`

`TRUE` if `value` is valid for the `enum_type`, `FALSE` otherwise.