aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.h
blob: 0e48c000d493d1f4a39358a51384151eb2c748f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//===========================================
//  Lumina-desktop source code
//  Copyright (c) 2017, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_ROOT_WINDOW_H
#define _LUMINA_DESKTOP_ROOT_WINDOW_H
#include <global-includes.h>
#include "src-cpp/RootDesktopObject.h"

class RootWindow : public QObject{
	Q_OBJECT
private:
	QWindow *root_win;
	QQuickView *root_view;
	RootDesktopObject *root_obj;

public:
	RootWindow();
	~RootWindow();

	void start();

	WId viewID(){ return root_view->parent()->winId(); }

public slots:
	void syncRootSize();

signals:
	void startLogout();
	void RegisterVirtualRoot(WId);
	void RootResized(QRect);
	void MouseMoved();
};

#endif
bgstack15