Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
IScreen.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2003 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "base/Event.h"
11#include "base/EventTypes.h"
12#include "common/IInterface.h"
14
15class IClipboard;
16
18
21class IScreen : public IInterface
22{
23public:
25 {
26 public:
29 };
30
32
33
35
38 virtual void *getEventTarget() const = 0;
39
41
45 virtual bool getClipboard(ClipboardID id, IClipboard *) const = 0;
46
48
52 virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const = 0;
53
55
58 virtual void getCursorPos(int32_t &x, int32_t &y) const = 0;
59
61};
uint8_t ClipboardID
Clipboard ID.
Definition ClipboardTypes.h:16
int y
Definition ServerConfig.cpp:27
int x
Definition ServerConfig.cpp:26
Clipboard interface.
Definition IClipboard.h:20
Base class of interfaces.
Definition IInterface.h:18
Screen interface.
Definition IScreen.h:22
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const =0
Get screen shape.
virtual bool getClipboard(ClipboardID id, IClipboard *) const =0
Get clipboard.
virtual void * getEventTarget() const =0
Get event target.
virtual void getCursorPos(int32_t &x, int32_t &y) const =0
Get cursor position.
Definition IScreen.h:25
ClipboardID m_id
Definition IScreen.h:27
uint32_t m_sequenceNumber
Definition IScreen.h:28