]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/CanvasWidget.hxx
Support for multiple data dirs.
[flightgear.git] / src / GUI / CanvasWidget.hxx
index f5fa0bf75a2056c0f134ba7478d8e65928120566..63d648c7b58ceaf99460433b50c8e751f5b5baed 100644 (file)
@@ -1,9 +1,20 @@
-/*
- * CanvasWidget.hxx
- *
- *  Created on: 03.07.2012
- *      Author: tom
- */
+// CanvasWidget -- Using Canvas inside PUI dialogs
+//
+// Copyright (C) 2012  Thomas Geymayer <tomgey@gmail.com>
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #ifndef CANVASWIDGET_HXX_
 #define CANVASWIDGET_HXX_
@@ -36,17 +47,16 @@ class CanvasWidget:
     CanvasMgr  *_canvas_mgr; // TODO maybe we should store this in some central
                              // location or make it static...
 
-    GLuint              _tex_id;    //<! OpenGL texture id if canvas
-    size_t              _no_tex_cnt;//<! Count since how many frames we were not
-                                    //   able to get the texture (for debugging)
     simgear::canvas::CanvasPtr _canvas;
-    SGPropertyNode     *_mouse_x,
-                       *_mouse_y,
-                       *_mouse_down,
-                       *_mouse_drag;
 
     float _last_x,
           _last_y;
+    bool  _auto_viewport; //!< Set true to get the canvas view dimensions
+                          //   automatically resized if the size of the widget
+                          //   changes.
+
+    static SGPropertyNode_ptr _time,
+                              _view_height;
 };
 
 #endif /* CANVASWIDGET_HXX_ */