My Project
Mir.h
1 /*
2  * Copyright (C) 2015 Canonical, Ltd.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef UNITY_SHELL_APPLICATION_MIR_H
18 #define UNITY_SHELL_APPLICATION_MIR_H
19 
20 #include <QObject>
21 
25 class Mir
26 {
27  Q_GADGET
28  Q_ENUMS(Type)
29  Q_ENUMS(State)
30  Q_ENUMS(OrientationAngle)
31 
32 public:
36  enum Type {
37  UnknownType,
38  NormalType,
39  UtilityType,
40  DialogType,
41  GlossType,
42  FreeStyleType,
43  MenuType,
44  InputMethodType,
45  SatelliteType,
46  TipType,
47  };
48 
52  enum State {
53  UnknownState,
54  RestoredState,
55  MinimizedState,
56  MaximizedState,
57  VertMaximizedState,
58  FullscreenState,
59  HorizMaximizedState,
60  HiddenState,
61  };
62 
67  Angle0 = 0,
68  Angle90 = 90,
69  Angle180 = 180,
70  Angle270 = 270
71  };
72 };
73 
74 Q_DECLARE_METATYPE(Mir::OrientationAngle)
75 
76 #endif // UNITY_SHELL_APPLICATION_MIR_H
Type
Surface type.
Definition: Mir.h:36
State
Surface state.
Definition: Mir.h:52
OrientationAngle
Surface orientation angle.
Definition: Mir.h:66
Acting as a namespace to hold enums and such for use in QML.
Definition: Mir.h:25