Function

Gimpparam_spec_rgb

Declaration [src]

GParamSpec*
gimp_param_spec_rgb (
  const gchar* name,
  const gchar* nick,
  const gchar* blurb,
  gboolean has_alpha,
  const GimpRGB* default_value,
  GParamFlags flags
)

Description [src]

Creates a param spec to hold an GimpRGB value. See g_param_spec_internal() for more information.

Available since:2.4

Parameters

name const gchar*
 

Canonical name of the param.

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

Nickname of the param.

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

Brief description of param.

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

TRUE if the alpha channel has relevance.

default_value GimpRGB
 

Value to use if none is assigned.

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

A combination of GParamFlags.

Return value

Returns: GParamSpec
 

A newly allocated GParamSpec instance.

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