mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimpcolor: gimp_rgb_parse_hex() is also unused.
This commit is contained in:
parent
9f205ca63e
commit
6a85efe92c
3 changed files with 0 additions and 40 deletions
|
@ -100,7 +100,6 @@ EXPORTS
|
||||||
gimp_rgb_min
|
gimp_rgb_min
|
||||||
gimp_rgb_multiply
|
gimp_rgb_multiply
|
||||||
gimp_rgb_parse_css
|
gimp_rgb_parse_css
|
||||||
gimp_rgb_parse_hex
|
|
||||||
gimp_rgb_parse_name
|
gimp_rgb_parse_name
|
||||||
gimp_rgb_set
|
gimp_rgb_set
|
||||||
gimp_rgb_set_alpha
|
gimp_rgb_set_alpha
|
||||||
|
|
|
@ -247,42 +247,6 @@ gimp_rgb_parse_name (GimpRGB *rgb,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* gimp_rgb_parse_hex:
|
|
||||||
* @rgb: a #GimpRGB struct used to return the parsed color
|
|
||||||
* @hex: (array length=len): a string describing a color in hexadecimal notation
|
|
||||||
* @len: the length of @hex, in bytes. or -1 if @hex is nul-terminated
|
|
||||||
*
|
|
||||||
* Attempts to parse a string describing an RGB color in hexadecimal
|
|
||||||
* notation (optionally prefixed with a '#').
|
|
||||||
*
|
|
||||||
* This function does not touch the alpha component of @rgb.
|
|
||||||
*
|
|
||||||
* Returns: %TRUE if @hex was parsed successfully and @rgb has
|
|
||||||
* been set, %FALSE otherwise
|
|
||||||
*
|
|
||||||
* Since: 2.2
|
|
||||||
**/
|
|
||||||
gboolean
|
|
||||||
gimp_rgb_parse_hex (GimpRGB *rgb,
|
|
||||||
const gchar *hex,
|
|
||||||
gint len)
|
|
||||||
{
|
|
||||||
gchar *tmp;
|
|
||||||
gboolean result;
|
|
||||||
|
|
||||||
g_return_val_if_fail (rgb != NULL, FALSE);
|
|
||||||
g_return_val_if_fail (hex != NULL, FALSE);
|
|
||||||
|
|
||||||
tmp = gimp_rgb_parse_strip (hex, len);
|
|
||||||
|
|
||||||
result = gimp_rgb_parse_hex_internal (rgb, tmp);
|
|
||||||
|
|
||||||
g_free (tmp);
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gimp_rgb_parse_css:
|
* gimp_rgb_parse_css:
|
||||||
* @rgb: a #GimpRGB struct used to return the parsed color
|
* @rgb: a #GimpRGB struct used to return the parsed color
|
||||||
|
|
|
@ -72,9 +72,6 @@ void gimp_rgb_get_uchar (const GimpRGB *rgb,
|
||||||
gboolean gimp_rgb_parse_name (GimpRGB *rgb,
|
gboolean gimp_rgb_parse_name (GimpRGB *rgb,
|
||||||
const gchar *name,
|
const gchar *name,
|
||||||
gint len);
|
gint len);
|
||||||
gboolean gimp_rgb_parse_hex (GimpRGB *rgb,
|
|
||||||
const gchar *hex,
|
|
||||||
gint len);
|
|
||||||
gboolean gimp_rgb_parse_css (GimpRGB *rgb,
|
gboolean gimp_rgb_parse_css (GimpRGB *rgb,
|
||||||
const gchar *css,
|
const gchar *css,
|
||||||
gint len);
|
gint len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue