www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - fltk4D 0.1

reply Micke <dronten gmail.com> writes:
fltk4D is a binding to the FLTK gui library.
http://dronten.googlepages.com/fltk4d
Sep 30 2007
next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Micke wrote:

 fltk4D is a binding to the FLTK gui library.
 http://dronten.googlepages.com/fltk4d
If you make a few adjustments* to it, it will also work with GDC/rebuild - and with Mac OS X (Carbon): http://www.algonet.se/~afb/d/fltk4d_helloworld_mac.png http://www.algonet.se/~afb/d/fltk4d_table_mac.png * A minor change to give the full module name for "FLTK.eventKey", plus avoid linking to X11 on Mac. You also want to avoid including "fltk4d.cxx" in the FLTK libraries, but put them in a separate lib. That way users can use the standard fltk libraries, and just add two fltk4d libraries (one C++, one D) Otherwise FLTK is looking "as lovely as ever" ;-) And as opposed to FOX, it _is_ native on the Mac. I'll send you a patch, that will build Universal binaries and use `fltk-config` for the libraries... --anders PS: You know there is a native D port of FLTK, yes ? http://svn.easysw.com/public/fltk/fltk/branches/branch-D-1.1/ PPS: As you suspected, it requires the 1.1.8 fltk - recommend making it work with the stable version ?
Sep 30 2007
parent reply Micke <dronten gmail.com> writes:
Anders F Björklund wrote:
 You also want to avoid including "fltk4d.cxx" in
 the FLTK libraries, but put them in a separate lib.
 That way users can use the standard fltk libraries,
 and just add two fltk4d libraries (one C++, one D)
Yeah, I had thought about it but maybee later on.
 PS: You know there is a native D port of FLTK, yes ?
 http://svn.easysw.com/public/fltk/fltk/branches/branch-D-1.1/
Yes but I think it have slowed down considerably.
 
 PPS: As you suspected, it requires the 1.1.8 fltk -
 recommend making it work with the stable version ?
No, as they have been talking about getting 1.1.8 out of the door for a long time. Anyway, it should be more stable than 1.1.7.
Oct 01 2007
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Micke wrote:

 PPS: As you suspected, it requires the 1.1.8 fltk -
 recommend making it work with the stable version ?
No, as they have been talking about getting 1.1.8 out of the door for a long time. Anyway, it should be more stable than 1.1.7.
I was sorta thinking making it work with *both*, using conditionals. But as long as you're using your own static copy, it doesn't matter. It's just when you're trying to use the system version of the fltk packages, you are more likely to find "1.1.7" than "1.1.x-r5940" ? --anders
Oct 01 2007
prev sibling next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Micke wrote:
 fltk4D is a binding to the FLTK gui library.
 http://dronten.googlepages.com/fltk4d
Any thoughts about adding a more D-ish callback system? Having delegates in the language but requiring static function callbacks is unfortunate. --bb
Sep 30 2007
next sibling parent reply Micke <dronten gmail.com> writes:
Bill Baxter wrote:

 Any thoughts about adding a more D-ish callback system?  Having 
 delegates in the language but requiring static function callbacks is 
 unfortunate.
I'm not sure I'm following you here. The static callbacks are for c++ to connect to D. I haven't found out a way to do it any other way.
Oct 01 2007
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Micke wrote:
 Bill Baxter wrote:
 
 Any thoughts about adding a more D-ish callback system?  Having 
 delegates in the language but requiring static function callbacks is 
 unfortunate.
I'm not sure I'm following you here. The static callbacks are for c++ to connect to D. I haven't found out a way to do it any other way.
Ok, maybe I'm just confused then. In your examples page I see the Valuator demo uses a non-static callback. So the D callbacks *don't* have to be static then? --bb
Oct 01 2007
parent Micke <dronten gmail.com> writes:
Bill Baxter wrote:

 Ok, maybe I'm just confused then.  In your examples page I see the 
 Valuator demo uses a non-static callback.  So the D callbacks *don't* 
 have to be static then?
Yes.
Oct 02 2007
prev sibling parent reply Dejan Lekic <dejan.lekic gmail.com> writes:
That is the main reason why I, FLTK developer, never had any intention of
porting FLTK to D. Matthias M. was on a good track (another FLTK developer who
ported FLTK 1 to D - native port), but IMHO he has chosen wrong version. I am
using FLTK 2 for years, and will continue to do so.

I might one day port FLTK 2 to D. Still, it would not be FLTK 2 we know,
because it would use D's "juicy" features.
Oct 02 2007
parent Charles D Hixson <charleshixsn earthlink.net> writes:
Dejan Lekic wrote:
 That is the main reason why I, FLTK developer, never had any intention of
porting FLTK to D. Matthias M. was on a good track (another FLTK developer who
ported FLTK 1 to D - native port), but IMHO he has chosen wrong version. I am
using FLTK 2 for years, and will continue to do so.
 
 I might one day port FLTK 2 to D. Still, it would not be FLTK 2 we know,
because it would use D's "juicy" features.
That could be a VERY nice thing. Still, you would be shooting at a fast moving target.
Oct 03 2007
prev sibling next sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Micke wrote:
 fltk4D is a binding to the FLTK gui library.
 http://dronten.googlepages.com/fltk4d
You should add your library to the Wiki4D gui libs page: http://www.prowiki.org/wiki4d/wiki.cgi?GuiLibraries And if you have any advice on writing wrappers, put it here: http://www.prowiki.org/wiki4d/wiki.cgi?WrappingCxx (I just added a link to your project, but a detailed advice of how to go about implementing the "3-step" plan for wrapping is what I'm after.) --bb
Sep 30 2007
parent Micke <dronten gmail.com> writes:
Bill Baxter wrote:
 You should add your library to the Wiki4D gui libs page:
 http://www.prowiki.org/wiki4d/wiki.cgi?GuiLibraries
Done.
Oct 01 2007
prev sibling parent "Kris" <foo bar.com> writes:
Nice!

There was a lot of talk about making FLTK 2.0 compatible with D, but that 
fizzled out ... glad to see this instead. FLTK is a great package

- Kris

"Micke" <dronten gmail.com> wrote in message 
news:fdou3k$7a0$1 digitalmars.com...
 fltk4D is a binding to the FLTK gui library.
 http://dronten.googlepages.com/fltk4d 
Sep 30 2007