Function
Gimpcolor_parse_name_substring
since: 2.2
Declaration [src]
GeglColor*
gimp_color_parse_name_substring (
const gchar* name,
gint len
)
Description [src]
Attempts to parse a color name. This function accepts SVG 1.1 color keywords.
Available since: 2.2
This function is not directly available to language bindings.
Parameters
name-
Type: An array of
gcharA color name (in UTF-8 encoding).
The length of the array is specified in the lenargument.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. len-
Type:
gintThe length of
name, in bytes. or -1 ifnameis nul-terminated.
Return value
Type: GeglColor
A sRGB color as defined in “4.4. Recognized color
keyword names” list of SVG 1.1 specification, if name was parsed successfully, NULL otherwise.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |