PgColor.copy

Creates a copy of src, which should be freed with Color.free. Primarily used by language bindings, not that useful otherwise (since colors can just be copied by assignment in C).

class PgColor
copy
()

Return Value

Type: PgColor

the newly allocated gdk.Color, which should be freed with Color.free, or NULL if src was NULL.