> #include <FL/Fl.H>
> #include <FL/fl_draw.H>
> #include <FL/Fl_Double_Window.H>
> class MyDraw : public Fl_Widget {
> public:
> MyDraw(int X, int Y, int W, int H, const char*L=0) :
> Fl_Widget(X,Y,W,H,L) {
> }
> void draw() {
> // DRAW A BLACK DIAGONAL LINE, AND SMALL BLACK RECTANGLE
> fl_color(FL_BLACK);
> fl_line(0, 0, 200, 200);
> fl_rect(0, 0, 50, 50);
> }
> };
> int main() {
> Fl_Double_Window win(200,200);
> MyDraw mydraw(0, 0, win.w(), win.h());
> win.resizable(mydraw);
> win.show();
> return(Fl::run());
> }
If i use fl_rectf instead of fl_rect and choose any color then line under this
rectangle never display.
like
fl_rectf(0, 0, 50, 50,100,100,100);
Can i see the line also if i use fl_rectf?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk