KWin
Loading...
Searching...
No Matches
main_x11.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10#include "main.h"
11
12namespace KWin
13{
14
15class KWinSelectionOwner;
16
18{
19 Q_OBJECT
20public:
21 ApplicationX11(int &argc, char **argv);
22 ~ApplicationX11() override;
23
24 void setReplace(bool replace);
25
26 std::unique_ptr<Edge> createScreenEdge(ScreenEdges *parent) override;
27 std::unique_ptr<Cursor> createPlatformCursor() override;
28 std::unique_ptr<OutlineVisual> createOutline(Outline *outline) override;
29 void createEffectsHandler(Compositor *compositor, WorkspaceScene *scene) override;
30 void startInteractiveWindowSelection(std::function<void(KWin::Window *)> callback, const QByteArray &cursorName = QByteArray()) override;
31 void startInteractivePositionSelection(std::function<void(const QPointF &)> callback) override;
32 PlatformCursorImage cursorImage() const override;
33
34protected:
35 void performStartup() override;
36
37private Q_SLOTS:
38 void lostSelection();
39
40private:
41 void crashChecking();
42 void setupCrashHandler();
43 void notifyKSplash();
44
45 static void crashHandler(int signal);
46
47 std::unique_ptr<KWinSelectionOwner> owner;
48 bool m_replace;
49};
50
51}
ApplicationX11(int &argc, char **argv)
Definition main_x11.cpp:173
void setReplace(bool replace)
Definition main_x11.cpp:199
void startInteractiveWindowSelection(std::function< void(KWin::Window *)> callback, const QByteArray &cursorName=QByteArray()) override
Definition main_x11.cpp:228
std::unique_ptr< OutlineVisual > createOutline(Outline *outline) override
Definition main_x11.cpp:214
void performStartup() override
Definition main_x11.cpp:260
void startInteractivePositionSelection(std::function< void(const QPointF &)> callback) override
Definition main_x11.cpp:233
std::unique_ptr< Edge > createScreenEdge(ScreenEdges *parent) override
Definition main_x11.cpp:204
std::unique_ptr< Cursor > createPlatformCursor() override
Definition main_x11.cpp:209
PlatformCursorImage cursorImage() const override
Definition main_x11.cpp:238
~ApplicationX11() override
Definition main_x11.cpp:182
void createEffectsHandler(Compositor *compositor, WorkspaceScene *scene) override
Definition main_x11.cpp:223
This class is used to show the outline of a given geometry.
Definition outline.h:38
Class for controlling screen edges.
Definition screenedge.h:222