[Y-devel] libYc-0.2.4
Andreas Karafyllis ankar at homodigitalis.net
Fri Apr 9 16:37:28 BST 2004
On Friday 09 April 2004 16:34, jcsnvu at free.fr wrote:
> Selon Andreas Karafyllis <ankar at homodigitalis.net>:
> > To cheer you up, I tell you that I started to implement Eiffel-bindings
> > for Y.
> > I hope that I will make the first release soon. Any contributors are of
> > course welcomed but wait first until I have something usable. Afterwards,
> > I plan to join the efforts to bring more functionality to the Y-Server...
>
> I also planned to port the libY to Eiffel and I was wondering if anyone had
> the same idea. Well you answered my question before I asked it. I'm looking
> forward to the first release.
>
I implemented completly in Eiffel using SmartEiffel. Thanks to the ePosix
library, I do not have to use directly C code. I have finished the design at
the moment (I decided what classes to implement) and about 30% of the
classes. This includes a signal/slot library (In a Qt-fashion, I am quite
affected from QT).
A hello-world program with a button, will look like this:
class Y_HELLO_WORLD
inherit
Y_CONNECTOR
creation
make
feature
make is
local
app: Y_APPLICATION
win: Y_WINDOW
but: Y_BUTTON
do
create app.make
create win.make(app.connection)
create but.make(app.connection)
but.set_text("Hello, World")
win.add_child(but)
y_connect_0(win.signal_close, app.quit)
win.show
app.exec_loop
end
end
Cheers
Andreas
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved