KWin
Loading...
Searching...
No Matches
src
plugins
private
expoarea.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#pragma once
8
9
#include "
core/output.h
"
10
11
namespace
KWin
12
{
13
14
class
ExpoArea
:
public
QObject
15
{
16
Q_OBJECT
17
Q_PROPERTY(
KWin::Output
*
screen
READ
screen
WRITE
setScreen
NOTIFY
screenChanged
)
18
Q_PROPERTY(qreal
x
READ
x
NOTIFY
xChanged
)
19
Q_PROPERTY(qreal
y
READ
y
NOTIFY
yChanged
)
20
Q_PROPERTY(qreal
width
READ
width
NOTIFY
widthChanged
)
21
Q_PROPERTY(qreal
height
READ
height
NOTIFY
heightChanged
)
22
23
public:
24
explicit
ExpoArea
(QObject *parent =
nullptr
);
25
26
Output
*
screen
() const;
27
void
setScreen
(
Output
*
screen
);
28
29
qreal
x
() const;
30
qreal
y
() const;
31
qreal
width
() const;
32
qreal
height
() const;
33
34
Q_SIGNALS:
35
void
screenChanged
();
36
void
xChanged
();
37
void
yChanged
();
38
void
widthChanged
();
39
void
heightChanged
();
40
41
private
:
42
void
update();
43
44
QRectF m_rect;
45
Output
*m_screen =
nullptr
;
46
};
47
48
}
// namespace KWin
KWin::ExpoArea
Definition
expoarea.h:15
KWin::ExpoArea::xChanged
void xChanged()
KWin::ExpoArea::yChanged
void yChanged()
KWin::ExpoArea::screen
KWin::Output * screen
Definition
expoarea.h:17
KWin::ExpoArea::x
qreal x
Definition
expoarea.h:18
KWin::ExpoArea::widthChanged
void widthChanged()
KWin::ExpoArea::heightChanged
void heightChanged()
KWin::ExpoArea::height
qreal height
Definition
expoarea.h:21
KWin::ExpoArea::width
qreal width
Definition
expoarea.h:20
KWin::ExpoArea::y
qreal y
Definition
expoarea.h:19
KWin::ExpoArea::setScreen
void setScreen(Output *screen)
Definition
expoarea.cpp:44
KWin::ExpoArea::screenChanged
void screenChanged()
KWin::Output
Definition
output.h:132
output.h
KWin
Definition
activation_test.cpp:20
private
#define private
Definition
screenedge_test.cpp:17
explicit
#define explicit
Definition
x11_standalone_keyboard.cpp:13
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0