Method

WPEWebKitColorparse

Declaration [src]

gboolean
webkit_color_parse (
  WebKitColor* color,
  const gchar* color_string
)

Description [src]

Create a new WebKitColor for the given color_string representation. There are two valid representation types: standard color names (see https://htmlcolorcodes.com/color-names/ for instance) or HEX values.

Available since:2.24

Parameters

color_string const gchar*
 

Color representation as color nickname or HEX string.

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

Return value

Returns: gboolean
 

A #gboolean indicating if the color was correctly filled in or not.