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.

59 lines
1.2KB

  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. // Andy Preston
  8. enum dp_type { off, point, colon };
  9. class Fl_SevenSeg : public Fl_Widget {
  10. // Andy Preston changed
  11. // int digit,decpt,segwidth;
  12. // to
  13. int digit, segwidth;
  14. dp_type decpt;
  15. public:
  16. Fl_SevenSeg(int x,int y,int w,int h);
  17. ~Fl_SevenSeg(void);
  18. void value(int v);
  19. void value(char c);
  20. const int value(void);
  21. // Andy Preston changed
  22. // void dp (int onoff);
  23. // to
  24. void dp (dp_type state);
  25. // Andy Preston changed
  26. // const int dp(void);
  27. // to
  28. const dp_type dp (void);
  29. const int bar_width(void);
  30. void bar_width(int w);
  31. private:
  32. void draw();
  33. void draw_seg_a(int xx,int yy,int ww,int hh);
  34. void draw_seg_b(int xx,int yy,int ww,int hh);
  35. void draw_seg_c(int xx,int yy,int ww,int hh);
  36. void draw_seg_d(int xx,int yy,int ww,int hh);
  37. void draw_seg_e(int xx,int yy,int ww,int hh);
  38. void draw_seg_f(int xx,int yy,int ww,int hh);
  39. void draw_seg_g(int xx,int yy,int ww,int hh);
  40. // Andy Preston
  41. void draw_seg_dp (int xx, int yy, int ww, int hh);
  42. void draw_seg_col (int xx, int yy, int ww, int hh);
  43. };
  44. #endif