You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0KB

  1. // generated by Fast Light User Interface Designer (fluid) version 1.0010
  2. #ifndef Fl_SevenSeg_H
  3. #define Fl_SevenSeg_H
  4. #include <FL/Fl.H>
  5. #include <FL/fl_draw.H>
  6. #include <FL/Fl_Widget.H>
  7. enum dp_type { off, point, colon };
  8. class Fl_SevenSeg : public Fl_Widget {
  9. int digit, segwidth;
  10. dp_type decpt;
  11. public:
  12. Fl_SevenSeg(int x,int y,int w,int h);
  13. ~Fl_SevenSeg(void);
  14. void value(int v);
  15. void value(char c);
  16. const int value(void);
  17. void dp (dp_type state);
  18. const dp_type dp (void);
  19. const int bar_width(void);
  20. void bar_width(int w);
  21. private:
  22. void draw();
  23. void draw_seg_a(int xx,int yy,int ww,int hh);
  24. void draw_seg_b(int xx,int yy,int ww,int hh);
  25. void draw_seg_c(int xx,int yy,int ww,int hh);
  26. void draw_seg_d(int xx,int yy,int ww,int hh);
  27. void draw_seg_e(int xx,int yy,int ww,int hh);
  28. void draw_seg_f(int xx,int yy,int ww,int hh);
  29. void draw_seg_g(int xx,int yy,int ww,int hh);
  30. void draw_seg_dp (int xx, int yy, int ww, int hh);
  31. void draw_seg_col (int xx, int yy, int ww, int hh);
  32. };
  33. #endif