On 28.07.2008, at 16:52, Иван Васильев wrote:

> 2 - Is it posible in FLTK to fill round rect with a pattern?
> I mean that I wan`t to draw round rect rectangle and fill it with  
> patern (gradient) created from an image file.


Yes, you can draw anything you like. There are four ways that come to  
mind, but likely more:

1: override a widget, draw by using FLTK drawing commands. A small  
shaded rectangle can be drawn using arcs and lines
2: create an RGB bitmap, link it to an Fl_Image and add the Fl_Image  
to any widget
3: override a widget, and use the platform native graphics call
4: override the Fl_GL_Widget and draw anything you like, shaded,  
textured, 2D, 3D, volumetric...

And finally, yes, FLTK has round buttons.

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to