Programmable real-time audio signal processing application
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.

cmGr2dFltk.h 753B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //| Copyright: (C) 2019-2020 Kevin Larke <contact AT larke DOT org>
  2. //| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
  3. #ifndef cmGr2dFltk_h
  4. #define cmGr2dFltk_h
  5. class Fl_Menu_Bar;
  6. class cmGr2dFltk : public cmGrPlotFltk
  7. {
  8. public:
  9. cmGr2dFltk(cmCtx_t* ctx, Fl_Menu_Bar* menuBar, int x, int y, int w, int h);
  10. virtual ~cmGr2dFltk();
  11. virtual bool on_plot_object( cmGrPlotCbArg_t* arg );
  12. double x() const;
  13. double y() const;
  14. double radius() const;
  15. double angle() const;
  16. private:
  17. enum
  18. {
  19. kWidth = 100,
  20. kHeight = 100
  21. };
  22. enum
  23. {
  24. kOkRC = 0,
  25. kCreateObjRC
  26. };
  27. cmErr_t _err;
  28. double _x;
  29. double _y;
  30. double _radius;
  31. double _angle;
  32. unsigned _objId;
  33. void _createObj();
  34. };
  35. #endif