4 * Created on: 03.07.2012
8 #ifndef CANVASWIDGET_HXX_
9 #define CANVASWIDGET_HXX_
11 #include <Main/fg_props.hxx>
14 #include <simgear/canvas/canvas_fwd.hxx>
22 CanvasWidget( int x, int y,
23 int width, int height,
24 SGPropertyNode* props,
25 const std::string& module );
26 virtual ~CanvasWidget();
28 virtual void doHit (int button, int updown, int x, int y);
29 virtual int checkKey(int key, int updown);
31 virtual void setSize ( int w, int h );
32 virtual void draw(int dx, int dy);
36 CanvasMgr *_canvas_mgr; // TODO maybe we should store this in some central
37 // location or make it static...
39 simgear::canvas::CanvasPtr _canvas;
43 bool _auto_viewport; //!< Set true to get the canvas view dimensions
44 // automatically resized if the size of the widget
47 static SGPropertyNode_ptr _time,
51 #endif /* CANVASWIDGET_HXX_ */