Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ScreenList.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2021 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include "Screen.h"
10
11class ScreenList : public QList<Screen>
12{
13 int m_width = 5;
14
15public:
16 explicit ScreenList(int width = 5);
17
29 void addScreenByPriority(const Screen &newScreen);
30
35 void addScreenToFirstEmpty(const Screen &newScreen);
36
41 bool operator==(const ScreenList &sc) const;
42};
void addScreenToFirstEmpty(const Screen &newScreen)
addScreenToFirstEmpty adds screen into the first empty place
Definition ScreenList.cpp:96
bool operator==(const ScreenList &sc) const
Returns true if screens are equal.
Definition ScreenList.cpp:107
void addScreenByPriority(const Screen &newScreen)
addScreenByPriority adds a new screen according to the following priority: 1.left side of the server ...
Definition ScreenList.cpp:74
ScreenList(int width=5)
Definition ScreenList.cpp:70
Definition Screen.h:26