[Gtk-sharp-list] Gdk.Color ctr

Mike Kestner mkestner@speakeasy.net
01 Apr 2003 21:52:15 -0600


On Fri, 2003-03-21 at 11:57, Jaime Anguiano Olarra wrote:

> I would like to know if you would agree if I add another constructor to
> create a Gdk.Color as:
> 
> public Color (string spec)
> 
> so we can do the same as with Gdk.Color.Parse (string spec, ref
> Gdk.Color color)

I would think maybe something like:

public static Gdk.Color Parse (string spec) {}

Would be more recognizable to most Gdk users, while still providing the
ease of use that you are looking for.  We can add another ctor, but are
we going to add overloads for every method that can create every struct
and object in the API?  That's going to get tedious, I think. Shared
methods are an equally usable construct.


-- 
Mike Kestner <mkestner@speakeasy.net>