summaryrefslogtreecommitdiffstats
path: root/tests/auto/compositor/compositor/mockpointer.h
blob: db5c6a0af38b1717f93ea131fdb2ac00eb0c8837 (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

#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