On 9 Jun 2012, at 22:22, Greg Ercolano wrote:

> On 06/09/12 13:26, Ian MacArthur wrote:
>> So, anyway, that code still builds fine on OSX, and AFAIK the
>> fltk built-in works too,
> 
> 
>       Hmm, is the platform older than 10.6?
>       If so, that might be why.
> 
>       I think our cairo code depends on functions like GetWindowPort()
>       which are Carbon specific and have been removed from OSX.

Ah, well, my code doesn't, and as I say I haven't tried to build the Fl_Cairo 
stuff in the last few months - possibly not even this year... This box is 10.6. 
As it stands, I've not been inclined to upgrade from 10.6 so far... We still 
target older systems, and building for older systems with later releases seems 
to be deliberately hard. I also do not have Xcode-4 yet, for much the same 
reasons.


> 
>       Seems like our cairo/* code might need to be cocoa-ified
>       for that to work.
> 
>       I was thinking about writing a few widgets that use Cairo,
>       but wanted to make sure our cairo support is cross platform,
>       since the vector shape drawing capabilities in Cairo look so good.
>       Things like gradient areas and gradient circles..
> 
>       I'm kinda stuck though if Cairo support doesn't work.
>       Might have to fall back to making custom gradient code..


A trawl through the forums for the posts by J.Liles in the fairly recent past 
might find some good stuff in this regard; he was rendering various buttons and 
widgets with a Cairo+fltk combo and the screenshots etc. he posted looked 
pretty groovy...






_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to