[Y-devel] libYc-0.1
Peter Prohaska pitrp at wg78.de
Thu Feb 26 14:34:59 GMT 2004
On Wed, Feb 25, 2004 at 11:46:30AM +0000, Richard Hills wrote:
[..]
> This is still very much in development. Some bits are rushed and/or
> badly written, and there are known bugs. However, the API to it should
> remain reasonably constant, even if the internals change a lot, so don't
> worry about writing applications which take advantage of it.
> If those who try it could let me know how they get on, that'd be very
> cool,
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.
Y -- is capital, why change it to lower case?
Y::Window::setChild -- is mapped to ySetWindoChild
-- though i understand that it is nice english, it becomes very
confusing if the amount of code grows.
What about an approach like encoding the namespaces and classes
unchanged as a prefix to the functions?
Y_run()
Y_initialise()
...
YWindow_show()
YWindow_setChild()
I am not toying around with all just a few days and are already
confused, so please consider this.
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.
But I won't make much noise about it because it is only the second time
i'm doing it. So if there is someone who would make this a real project,
step forward and i would be glad to help.
peter.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved