# : Ruby/FLTK 0.9.6

**URL:** <https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512>\
**Category:** Ruby\
**Created:** [January 9, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512 "2007-01-09T15:45:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [January 9, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512/1 "2007-01-09T15:45:48Z")

</div>

Ruby/FLTK 0.9.6 , 2007-01-09  
[http://ruby-fltk.sourceforge.net/](http://ruby-fltk.sourceforge.net/)

“Graphical functions of FLTK for make benefit glorious language of Ruby”

What is this?:

Ruby/FLTK is a Ruby binding for the FLTK (Fast, Light Toolkit) GUI  
library.

Headlines!:

- Having languished somewhat in late 2006, Ruby/FLTK returns with a  
fat ChangeLog in 2007.
- A new class FLTK::Spinner (if your FLTK version is \>= 1.1.7).
- All of FLTK’s enumeration values and constant macros are bound to  
Ruby constants (with a few justifiable exceptions).
- Several new FLTK class methods (see ChangeLog).
- Convenience I: if FLTK.color receives a block it yields and then  
restores the original color.
- Convenience II: you can invoke #{rectf,rect,push\_clip,pop\_clip} on  
widget objects and the boundary of the widget will be used as the  
rectangle.
- FLTK.{choice,input,password} sprintf their arguments in the same way  
as their counterparts in FLTK (NB: FLTK.{message,alert,ask} already  
did this).
- New non-sprintf-ing methods  
FLTK.{message0,alert0,ask0,choice0,input0,password0} (NB: you should  
switch to these methods if you did not realise that their cousins  
call sprintf, as it will fix subtle bugs that appear when the  
argument contains a’%’ ).
- Big cleanup of tests and sample scripts, plus a few additions.

Details are in the Release Notes and the ChangeLog.

The focus for version 0.9.7 will be:

- Push towards full coverage of FLTK’s global functions and Fl::\*  
methods.
- Any suggestions?

Regards,

Jeremy H.  
removed\_email\_address@domain.invalid

–  
On two occasions, I have been asked [by members of Parliament], ‘Pray,  
Mr. Babbage, if you put into the machine wrong figures, will the right  
answers come out?’ I am not able to rightly apprehend the kind of  
confusion of ideas that could provoke such a question.  
– Charles Babbage

---

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [January 9, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512/2 "2007-01-09T16:12:55Z")

</div>

Jeremy H. wrote:

> Ruby/FLTK is a Ruby binding for the FLTK (Fast, Light Toolkit) GUI  
> library.
> 
> Headlines!:
> 
> - Having languished somewhat in late 2006, Ruby/FLTK returns with a  
> fat ChangeLog in 2007  
> [snip]  
> The focus for version 0.9.7 will be:
> - Push towards full coverage of FLTK’s global functions and Fl::\*  
> methods.
> - Any suggestions?

On towards 1.0!! 🙂  
Seriously, though, I was hoping there was an FLTK Ruby binding – why  
should Tk, Gtk, Qt and Fox have all the fun?

–  
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)  
[http://borasky-research.blogspot.com/](http://borasky-research.blogspot.com/)

If God had meant for carrots to be eaten cooked, He would have given  
rabbits fire.

---

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [January 9, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512/3 "2007-01-09T16:22:58Z")

</div>

On 1/9/07, Jeremy H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> - Convenience I: if FLTK.color receives a block it yields and then  
> restores the original color.
> - Convenience II: you can invoke #{rectf,rect,push\_clip,pop\_clip} on  
> widget objects and the boundary of the widget will be used as the  
> rectangle.

Very nice touches indeed.

martin

---

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [January 9, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/ruby-fltk-0-9-6/81512/4 "2007-01-09T23:10:57Z")

</div>

On 2007-01-09, M. Edward (Ed) Borasky [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Jeremy H. wrote:
> 
> > Ruby/FLTK 0.9.6 , 2007-01-09  
> > [http://ruby-fltk.sourceforge.net/](http://ruby-fltk.sourceforge.net/)
> > 
> > “Graphical functions of FLTK for make benefit glorious language of Ruby”  
> > […]
> > 
> > - Any suggestions?
> 
> On towards 1.0!! 🙂

Thanks, but there’s a way to go yet. The core architecture’s all in  
place but there are lots of FLTK methods not yet wrapped (check  
Coverage.txt for a summary).

> … I was hoping there was an FLTK Ruby binding – why should Tk,  
> Gtk, Qt and Fox have all the fun?

Incidentally, the FLTK developers’ mailing list just announced a beta  
of Ruby/FLTK2 . Nothing to do with me, though I’m hoping to give it a  
look (_provided_ I can keep up the momentum of Ruby/FLTK _and_ find  
some spare development time). It’s at  
URL:http://rubyforge.org/projects/fltk/.

Jeremy
