GNU Radio's FOSPHOR Package
QGLSurface.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2013-2014 Sylvain Munaut <tnt@246tNt.com>
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_GR_FOSPHOR_QGLSURFACE_H
22 #define INCLUDED_GR_FOSPHOR_QGLSURFACE_H
23 
24 #include <QGLWidget>
25 
26 namespace gr {
27  namespace fosphor {
28 
29  class qt_sink_c_impl;
30 
31  class QGLSurface : public ::QGLWidget
32  {
33  Q_OBJECT
34 
35  qt_sink_c_impl *d_block;
36 
37  protected:
38  void paintEvent(QPaintEvent *pe);
39  void resizeEvent(QResizeEvent *re);
40  void keyPressEvent(QKeyEvent *ke);
41 
42  public:
43  QGLSurface(QWidget *parent, qt_sink_c_impl *d_block);
44  };
45 
46  } // namespace fosphor
47 } // namespace gr
48 
49 #endif /* INCLUDED_GR_FOSPHOR_QGLSURFACE_H */
void resizeEvent(QResizeEvent *re)
Definition: private.h:43
Definition: base_sink_c.h:30
void keyPressEvent(QKeyEvent *ke)
QGLSurface(QWidget *parent, qt_sink_c_impl *d_block)
Qt version of fosphor sink (implementation)
Definition: qt_sink_c_impl.h:38
Definition: QGLSurface.h:31
void paintEvent(QPaintEvent *pe)