2 * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "include/windowmanager.hpp"
19 SimplePoint::SimplePoint()
23 SimplePoint::~SimplePoint()
28 LayoutArea::LayoutArea()
32 LayoutArea::~LayoutArea()
44 Layout::Layout(int layoutId, const QString &layoutName, const QList<LayoutArea> &surfaceAreas):
47 layoutAreas(surfaceAreas)
55 QDBusArgument &operator <<(QDBusArgument &argument, const SimplePoint &mSimplePoint)
57 argument.beginStructure();
58 argument << mSimplePoint.x;
59 argument << mSimplePoint.y;
60 argument.endStructure();
65 const QDBusArgument &operator >>(const QDBusArgument &argument, SimplePoint &mSimplePoint)
67 argument.beginStructure();
68 argument >> mSimplePoint.x;
69 argument >> mSimplePoint.y;
70 argument.endStructure();
74 QDBusArgument &operator <<(QDBusArgument &argument, const LayoutArea &mLayoutArea)
76 argument.beginStructure();
77 argument << mLayoutArea.x;
78 argument << mLayoutArea.y;
79 argument << mLayoutArea.width;
80 argument << mLayoutArea.height;
81 argument.endStructure();
86 const QDBusArgument &operator >>(const QDBusArgument &argument, LayoutArea &mLayoutArea)
88 argument.beginStructure();
89 argument >> mLayoutArea.x;
90 argument >> mLayoutArea.y;
91 argument >> mLayoutArea.width;
92 argument >> mLayoutArea.height;
93 argument.endStructure();
97 QDBusArgument &operator <<(QDBusArgument &argument, const Layout &mLayout)
99 argument.beginStructure();
100 argument << mLayout.id;
101 argument << mLayout.name;
102 argument << mLayout.layoutAreas;
103 argument.endStructure();
108 const QDBusArgument &operator >>(const QDBusArgument &argument, Layout &mLayout)
110 argument.beginStructure();
111 argument >> mLayout.id;
112 argument >> mLayout.name;
113 argument >> mLayout.layoutAreas;
114 argument.endStructure();