On 21.08.2011, at 18:18, asif saeed wrote:

> Hi,
> 
> I just read this tutorial here:
> 
> http://www.gidnetwork.com/b-22.html
> 
> The design approach is good but one based on inheritance public from FLTK
> widgets. Do you suggest any design guidelines if I do not want to include
> FLTK headers in my own application-specific GUI header (I'll put all the
> FLTK #includes in .cpp file)? That way, of course, I'll need to create
> forward declarations and create only pointers to FLTK widgets/windows in my
> own classes. Are there any online examples/code snippets that following this
> style?

If you want to create your own widget by deriving on an existing FLTK widget, 
you will have no other way of including the header at some point. Forward 
declarations only get you so far.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to