12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //| Copyright: (C) 2019-2020 Kevin Larke <contact AT larke DOT org>
- //| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
- #ifndef cmGr2dFltk_h
- #define cmGr2dFltk_h
-
- class Fl_Menu_Bar;
-
- class cmGr2dFltk : public cmGrPlotFltk
- {
- public:
- cmGr2dFltk(cmCtx_t* ctx, Fl_Menu_Bar* menuBar, int x, int y, int w, int h);
-
- virtual ~cmGr2dFltk();
-
- virtual bool on_plot_object( cmGrPlotCbArg_t* arg );
-
- double x() const;
- double y() const;
- double radius() const;
- double angle() const;
-
- private:
- enum
- {
- kWidth = 100,
- kHeight = 100
- };
-
- enum
- {
- kOkRC = 0,
- kCreateObjRC
- };
-
- cmErr_t _err;
- double _x;
- double _y;
- double _radius;
- double _angle;
- unsigned _objId;
-
- void _createObj();
-
- };
-
- #endif
|