summaryrefslogtreecommitdiffstats
path: root/tests/auto/compositor/compositor/mockpointer.h
blob: a354346132c6024ce402ddde3e22d472c2ca3748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef MOCKPOINTER_H
#define MOCKPOINTER_H

#include <QObject>
#include "wayland-wayland-client-protocol.h"

class MockPointer : public QObject
{
    Q_OBJECT

public:
    MockPointer(wl_seat *seat);
    ~MockPointer() override;

    wl_pointer *m_pointer = nullptr;
    wl_surface *m_enteredSurface = nullptr;
};

#endif // MOCKPOINTER_H