17 #ifndef UNITY_SHELL_APPLICATION_MIRSURFACE_H
18 #define UNITY_SHELL_APPLICATION_MIRSURFACE_H
55 Q_PROPERTY(QSize
size READ
size NOTIFY sizeChanged)
60 Q_PROPERTY(
Mir::State
state READ
state WRITE setState NOTIFY stateChanged)
66 Q_PROPERTY(
bool live READ
live NOTIFY liveChanged)
74 NOTIFY orientationAngleChanged DESIGNABLE false)
83 virtual QString
name()
const = 0;
85 virtual QSize
size()
const = 0;
86 virtual void resize(
int width,
int height) = 0;
87 virtual void resize(
const QSize &
size) = 0;
90 virtual void setState(
Mir::State qmlState) = 0;
92 virtual bool live()
const = 0;
101 void liveChanged(
bool value);
104 void sizeChanged(
const QSize &value);
114 #endif // UNITY_SHELL_APPLICATION_MIRSURFACE_H
Type
Surface type.
Definition: Mir.h:36
Mir::Type type
The surface type.
Definition: MirSurfaceInterface.h:45
State
Surface state.
Definition: Mir.h:52
QString name
Name of the surface, given by the client application.
Definition: MirSurfaceInterface.h:50
Mir::OrientationAngle orientationAngle
Orientation angle of the surface.
Definition: MirSurfaceInterface.h:74
Top-level namespace for all things Unity-related.
Definition: Version.h:37
QSize size
Size of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:55
Mir::State state
State of the surface.
Definition: MirSurfaceInterface.h:60
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
bool live
True if it has a mir client bound to it. A "zombie" (live == false) surface never becomes alive again...
Definition: MirSurfaceInterface.h:66
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:38