![]() |
![]() |
![]() |
GDK Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <gdk/gdk.h> GdkRGBA; GdkRGBA * gdk_rgba_copy (GdkRGBA *rgba
); void gdk_rgba_free (GdkRGBA *rgba
); gboolean gdk_rgba_parse (const gchar *spec
,GdkRGBA *rgba
); gboolean gdk_rgba_equal (gconstpointer p1
,gconstpointer p2
); guint gdk_rgba_hash (gconstpointer p
); gchar * gdk_rgba_to_string (const GdkRGBA *rgba
);
GdkRGBA * gdk_rgba_copy (GdkRGBA *rgba
);
Makes a copy of a GdkRGBA structure, the result must be freed
through gdk_rgba_free()
.
void gdk_rgba_free (GdkRGBA *rgba
);
Frees a GdkRGBA struct created with gdk_rgba_copy()
|
a GdkRGBA |
gboolean gdk_rgba_parse (const gchar *spec
,GdkRGBA *rgba
);
Parses a textual representation of a color, filling in
the red
, green
,
blue
and alpha
fields of the rgba
struct.
The string can be either one of:
Where 'r', 'g', 'b' and 'a' are respectively the red, green, blue and alpha color values, parsed in the last 2 cases as double numbers in the range [0..1], any other value out of that range will be clamped.
gboolean gdk_rgba_equal (gconstpointer p1
,gconstpointer p2
);
Compares two RGBA colors.
guint gdk_rgba_hash (gconstpointer p
);
A hash function suitable for using for a hash table that stores GdkRGBAs.
|
a GdkRGBA pointer. |
Returns : |
The hash function applied to p
|