2 * Copyright (C) 2016 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 SimpleRect::SimpleRect()
32 SimpleRect::~SimpleRect()
36 QDBusArgument &operator <<(QDBusArgument &argument, const SimplePoint &mSimplePoint)
38 argument.beginStructure();
39 argument << mSimplePoint.x;
40 argument << mSimplePoint.y;
41 argument.endStructure();
46 const QDBusArgument &operator >>(const QDBusArgument &argument, SimplePoint &mSimplePoint)
48 argument.beginStructure();
49 argument >> mSimplePoint.x;
50 argument >> mSimplePoint.y;
51 argument.endStructure();
55 QDBusArgument &operator <<(QDBusArgument &argument, const SimpleRect &mSimpleRect)
57 argument.beginStructure();
58 argument << mSimpleRect.x;
59 argument << mSimpleRect.y;
60 argument << mSimpleRect.width;
61 argument << mSimpleRect.height;
62 argument.endStructure();
67 const QDBusArgument &operator >>(const QDBusArgument &argument, SimpleRect &mSimpleRect)
69 argument.beginStructure();
70 argument >> mSimpleRect.x;
71 argument >> mSimpleRect.y;
72 argument >> mSimpleRect.width;
73 argument >> mSimpleRect.height;
74 argument.endStructure();