Files
openpilot-evo/selfdrive/ui/qt/onroad.h
T
Dean Lee 9a827fea20 c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
2021-05-03 11:53:11 +02:00

28 lines
521 B
C++

#pragma once
#include <QOpenGLFunctions>
#include <QOpenGLWidget>
#include <QTimer>
#include "ui/ui.h"
// container window for the NVG UI
class OnroadWindow : public QOpenGLWidget, protected QOpenGLFunctions {
Q_OBJECT
public:
using QOpenGLWidget::QOpenGLWidget;
explicit OnroadWindow(QWidget* parent = 0) : QOpenGLWidget(parent) {};
~OnroadWindow();
protected:
void paintGL() override;
void initializeGL() override;
private:
double prev_draw_t = 0;
public slots:
void update(const UIState &s);
};