I tried this code for drawing two lines it works well but
i want to assign values (0,90,180,270,360) in the top of line
can any one help me in this issues please
class sound_lines : public Fl_Widget {
public:
sound_lines(int x, int y, int w, int h, double a1, double a2, char
*label);
void draw();
private:
int org_x, org_y, width, height;
double start, end;
};
sound_lines::sound_lines(int x, int y, int w, int h, double a1, double a2, char
*label) : Fl_Widget(x,y,w,h,label) {
width=w;
height=h;
org_x=x;
org_y=y;
start = a1;
end = a2;
}
void sound_lines::draw(){
fl_rect(25,280,w()+120,h()+100);
fl_begin_line();
fl_vertex(35,-35);
fl_xyline(25,340,165); /// int x , int y , int width ---> horizantal
line
fl_yxline(95,400,280); // int x ,
fl_vertex(-35,35);
fl_end_line();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk