Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
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 Synergy App 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
11
#include "
deskflow/ClipboardTypes.h
"
12
13
class
IClipboard
;
14
16
19
class
IScreen
20
{
21
public
:
22
virtual
~IScreen
() =
default
;
23
struct
ClipboardInfo
24
{
25
public
:
26
ClipboardID
m_id
;
27
uint32_t
m_sequenceNumber
;
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
};
ClipboardTypes.h
ClipboardID
uint8_t ClipboardID
Clipboard ID.
Definition
ClipboardTypes.h:16
IClipboard
Clipboard interface.
Definition
IClipboard.h:19
IScreen
Screen interface.
Definition
IScreen.h:20
IScreen::getShape
virtual void getShape(int32_t &x, int32_t &y, int32_t &width, int32_t &height) const =0
Get screen shape.
IScreen::getClipboard
virtual bool getClipboard(ClipboardID id, IClipboard *) const =0
Get clipboard.
IScreen::getEventTarget
virtual void * getEventTarget() const =0
Get event target.
IScreen::~IScreen
virtual ~IScreen()=default
IScreen::getCursorPos
virtual void getCursorPos(int32_t &x, int32_t &y) const =0
Get cursor position.
IScreen::ClipboardInfo
Definition
IScreen.h:24
IScreen::ClipboardInfo::m_id
ClipboardID m_id
Definition
IScreen.h:26
IScreen::ClipboardInfo::m_sequenceNumber
uint32_t m_sequenceNumber
Definition
IScreen.h:27
src
lib
deskflow
IScreen.h
Generated by
1.18.0