8#ifndef KIS_OPENGL_CANVAS_2_H
9#define KIS_OPENGL_CANVAS_2_H
11#include <QOpenGLWidget>
15#include "kritaui_export.h"
19class QOpenGLShaderProgram;
31 :
public QOpenGLWidget
49 void resizeGL(
int width,
int height)
override;
50 void initializeGL()
override;
51 void paintGL()
override;
52 void paintEvent(QPaintEvent *e)
override;
54 QVariant inputMethodQuery(Qt::InputMethodQuery query)
const override;
55 void inputMethodEvent(QInputMethodEvent *event)
override;
57 void focusInEvent(QFocusEvent *event)
override;
58 void focusOutEvent(QFocusEvent *event)
override;
60 void hideEvent(QHideEvent *event)
override;
61 void showEvent(QShowEvent *event)
override;
90 bool isBusy()
const override;
99 void slotConfigChanged();
100 void slotPixelGridModeChanged();
101 void slotUpdateCursorColor();
104 void slotShowFloatingMessage(
const QString &message,
int timeout,
bool priority);
float value(const T *src, size_t ch)
KisDisplayConfig This class keeps track of the color management configuration for image to display....
QWidget * widget() override