GNU Radio's TEST Package
QGLSurface.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2013-2021 Sylvain Munaut <tnt@246tNt.com>
4  *
5  * This file is part of gr-fosphor
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  */
9 
10 #pragma once
11 
12 #include <QGLWidget>
13 
14 class QThread;
15 
16 namespace gr {
17  namespace fosphor {
18 
19  class qt_sink_c_impl;
20 
21  class QGLSurface : public ::QGLWidget
22  {
23  Q_OBJECT
24 
25  qt_sink_c_impl *d_block;
26  QThread *d_gui_thread;
27 
28  protected:
29  void hideEvent(QHideEvent *he);
30  void showEvent(QShowEvent *he);
31  void paintEvent(QPaintEvent *pe);
32  void resizeEvent(QResizeEvent *re);
33  void keyPressEvent(QKeyEvent *ke);
34  void mousePressEvent(QMouseEvent *me);
35 
36  private slots:
37  void giveContext(QThread *thread);
38 
39  public:
40  QGLSurface(QWidget *parent, qt_sink_c_impl *d_block);
41 
42  void grabContext();
44  };
45 
46  } // namespace fosphor
47 } // namespace gr
Definition: QGLSurface.h:22
QGLSurface(QWidget *parent, qt_sink_c_impl *d_block)
void hideEvent(QHideEvent *he)
void keyPressEvent(QKeyEvent *ke)
void paintEvent(QPaintEvent *pe)
void resizeEvent(QResizeEvent *re)
void showEvent(QShowEvent *he)
void mousePressEvent(QMouseEvent *me)
Qt version of fosphor sink (implementation)
Definition: qt_sink_c_impl.h:26
Definition: base_sink_c.h:17
Definition: private.h:31