[Y-devel] libYc-0.1

Richard Hills richard at playford.net
Thu Feb 26 15:10:16 GMT 2004


> Again something about naming conventions...
> 
> libYc:
>   yCreateWindow;
>   yShowWindow;
>   ySetWindowChild;
> 
> libYc++:
>   namespace Y...
>     class Window...
>     void show ();
>     void setChild (Widget *);
>     void setFocussed (Widget *);
> 
> I think it would be better to encode the object model into the function
> names to avoid confusion.

   Yes, you are right. I'm more used to GTK where each function name
starts with "gtk" in lower case, hence it seemed natural here. This is
also why I had "Y/libYc.h", reflecting the "gtk/gtk.h" I'm more used to.
However, I think you have a valid point, and since you're trying to use
to API, and I'm simply writing it, I'll follow your suggestions.

> Actually I am currently working on interfacing libYc from python.
> I don't know C++ but i have some experience in C and python. I thought
> it might be a good start to just wrap libYc instead of implementing
> the interface in python.

   I'm not quite sure I follow what you're trying to do... Are you going
to write a python wrapper around libYc, so the python API uses libYc for
low level protocol stuff, or the other way round? I think python around
libYc, since C is a lower level language, would make more sense, but
then again, I'm probably slightly biased :)
   Anyway, thanks for your feedback. I will release another version with
some of your suggestions soon,

Richard Hills




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved