Function

Gimpparam_spec_color

Declaration [src]

GParamSpec*
gimp_param_spec_color (
  const gchar* name,
  const gchar* nick,
  const gchar* blurb,
  gboolean has_alpha,
  GeglColor* default_color,
  GParamFlags flags
)

Description [src]

Creates a new GParamSpec instance specifying a GeglColor property. Note that the default_color is duplicated, so reusing object will not change the default color of the returned GimpParamSpecColor.

Parameters

name

Type: const gchar*

Canonical name of the property specified.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
nick

Type: const gchar*

Nick name for the property specified.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
blurb

Type: const gchar*

Description of the property specified.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
has_alpha

Type: gboolean

TRUE if the alpha channel has relevance.

default_color

Type: GeglColor

The default value for the property specified.

The data is owned by the caller of the function.
flags

Type: GParamFlags

Flags for the property specified.

Return value

Type: GParamSpec

A newly created parameter specification.

The caller of the function takes ownership of the data, and is responsible for freeing it.