aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-glwidgets/glw-base.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-09-26 14:04:24 -0400
committerKen Moore <ken@ixsystems.com>2017-09-26 14:04:24 -0400
commita8ab0934e4782a14206cba544c846a34947cce36 (patch)
treef032428eca9b7938b43b6f06f67da554d0faf2b0 /src-qt5/src-glwidgets/glw-base.h
parentFix up the close event handling in lumina-textedit. Now it will actually clos... (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-a8ab0934e4782a14206cba544c846a34947cce36.tar.gz
lumina-a8ab0934e4782a14206cba544c846a34947cce36.tar.bz2
lumina-a8ab0934e4782a14206cba544c846a34947cce36.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/src-glwidgets/glw-base.h')
-rw-r--r--src-qt5/src-glwidgets/glw-base.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src-qt5/src-glwidgets/glw-base.h b/src-qt5/src-glwidgets/glw-base.h
new file mode 100644
index 00000000..729aa68e
--- /dev/null
+++ b/src-qt5/src-glwidgets/glw-base.h
@@ -0,0 +1,43 @@
+//===========================================
+// Lumina-desktop source code
+// Copyright (c) 2017, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_OPENGL_WIDGETS_BASE_H
+#define _LUMINA_OPENGL_WIDGETS_BASE_H
+
+#include <QOpenGLWidget>
+#include <QImage>
+#include <QPaintEvent>
+#include <QPainter>
+#include <QResizeEvent>
+#include <QStylePainter>
+
+class GLW_Base : public QOpenGLWidget{
+ Q_OBJECT
+private:
+ QColor bg_color;
+ QImage bg_img;
+
+public:
+ GLW_Base(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
+ ~GLW_Base();
+
+
+private slots:
+
+public slots:
+ void setBackgroundColor(QColor color);
+ void setBackground(QRect geom, QImage img);
+ void repaintArea(QRect);
+
+signals:
+ void BaseResized();
+
+protected:
+ void resizeEvent(QResizeEvent *ev);
+ void paintEvent(QPaintEvent *ev);
+};
+
+#endif
bgstack15