Drawing Functions
Detailed Description
There are only certain places you can execute drawing code in FLTK. Calling these functions at other places will result in undefined behavior!
- The most common is inside the virtual method Widget::draw(). To write code here, you must subclass one of the existing Widget classes and implement your own version of draw().
- You can also write boxtypes and labeltypes. These are small structures with functions in them that rae called by existing fltk::Widget::draw() methods. Pointers to these structures are stored in the widget's box() , labeltype(), and possibly other properties.
- You can write fltk::Image classes, which can then be put into the fltk::Widget::image() and be called by existing fltk::Widget::draw() methods.
- You can call fltk::Window::make_current() to do incremental update of a widget. Use fltk::Widget::window() to find the window.
All functions are defined by including <fltk/draw.h>
Sun May 8 21:48:57 2005.
©2004 Bill Spitzak and others. See Main Page
for details.