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 GLuint _tex_id; //<! OpenGL texture id if canvas
40 size_t _no_tex_cnt;//<! Count since how many frames we were not
41 // able to get the texture (for debugging)
42 simgear::canvas::CanvasPtr _canvas;
43 SGPropertyNode *_mouse_x,
52 #endif /* CANVASWIDGET_HXX_ */