summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/haiku/qhaikuscreen.h
blob: 22cfd82c767427e3140cb54c4e14f3baee13f59b (plain)
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
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Tobias Koenig <tobias.koenig@kdab.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QHAIKUSCREEN_H
#define QHAIKUSCREEN_H

#include <qpa/qplatformscreen.h>

class BScreen;
class QHaikuCursor;

QT_BEGIN_NAMESPACE

class QHaikuScreen : public QPlatformScreen
{
public:
    QHaikuScreen();
    ~QHaikuScreen();

    QPixmap grabWindow(WId window, int x, int y, int width, int height) const override;

    QRect geometry() const override;
    int depth() const override;
    QImage::Format format() const override;

    QPlatformCursor *cursor() const override;

private:
    BScreen *m_screen;

    QHaikuCursor *m_cursor;
};

QT_END_NAMESPACE

#endif