Deskflow 1.24.0.365
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) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2003 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
12
13class IClipboard;
14
16
20{
21public:
22 virtual ~IScreen() = default;
24 {
25 public:
28 };
29
31
32
34
37 virtual void *getEventTarget() const = 0;
38
40
44 virtual bool getClipboard(ClipboardID id, IClipboard *) const = 0;
45
47
51 virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const = 0;
52
54
57 virtual void getCursorPos(int32_t &x, int32_t &y) const = 0;
58
60};
uint8_t ClipboardID
Clipboard ID.
Definition ClipboardTypes.h:16
int y
Definition ServerConfig.cpp:25
int x
Definition ServerConfig.cpp:24
Clipboard interface.
Definition IClipboard.h:19
Screen interface.
Definition IScreen.h:20
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 ~IScreen()=default
virtual void getCursorPos(int32_t &x, int32_t &y) const =0
Get cursor position.
Definition IScreen.h:24
ClipboardID m_id
Definition IScreen.h:26
uint32_t m_sequenceNumber
Definition IScreen.h:27