summary refs log tree commit diff
path: root/src/ui/OverlayWidget.h
blob: 05bb86968fdeee642e085550e50174d3abb0fb89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include <QEvent>
#include <QWidget>

class QPainter;

class OverlayWidget : public QWidget
{
        Q_OBJECT

public:
        explicit OverlayWidget(QWidget *parent = nullptr);

protected:
        bool event(QEvent *event) override;
        bool eventFilter(QObject *obj, QEvent *event) override;

        QRect overlayGeometry() const;
        void paintEvent(QPaintEvent *event) override;
};