17 #ifndef UNITY_SHELL_APPLICATION_MIRSURFACE_H 18 #define UNITY_SHELL_APPLICATION_MIRSURFACE_H 50 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
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)
79 NOTIFY orientationAngleChanged DESIGNABLE false)
145 virtual QString
name()
const = 0;
147 virtual QSize
size()
const = 0;
148 virtual void resize(
int width,
int height) = 0;
149 virtual void resize(
const QSize &
size) = 0;
152 virtual void setState(
Mir::State qmlState) = 0;
154 virtual bool live()
const = 0;
156 virtual bool visible()
const = 0;
171 virtual void setKeymap(
const QString &layout,
const QString &variant) = 0;
177 void liveChanged(
bool value);
178 void visibleChanged(
bool visible);
181 void sizeChanged(
const QSize &value);
182 void nameChanged(
const QString &
name);
183 void minimumWidthChanged(
int value);
184 void minimumHeightChanged(
int value);
185 void maximumWidthChanged(
int value);
186 void maximumHeightChanged(
int value);
187 void widthIncrementChanged(
int value);
188 void heightIncrementChanged(
int value);
190 void keymapChanged(
const QString &layout,
const QString &variant);
200 #endif // UNITY_SHELL_APPLICATION_MIRSURFACE_H int heightIncrement
The requested height increment for the surface Zero if not set.
Definition: MirSurfaceInterface.h:115
int minimumHeight
The requested minimum height for the surface Zero if not set.
Definition: MirSurfaceInterface.h:91
Type
Surface type.
Definition: Mir.h:45
Mir::Type type
The surface type.
Definition: MirSurfaceInterface.h:45
int minimumWidth
The requested minimum width for the surface Zero if not set.
Definition: MirSurfaceInterface.h:85
State
Surface state.
Definition: Mir.h:61
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:79
ShellChrome
Shell chrome.
Definition: Mir.h:85
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
QString keymapLayout
Keymap layout.
Definition: MirSurfaceInterface.h:128
int maximumWidth
The requested maximum width for the surface Zero if not set.
Definition: MirSurfaceInterface.h:97
Mir::State state
State of the surface.
Definition: MirSurfaceInterface.h:60
int maximumHeight
The requested maximum height for the surface Zero if not set.
Definition: MirSurfaceInterface.h:103
OrientationAngle
Surface orientation angle.
Definition: Mir.h:75
Acting mostly as a namespace to hold enums and such for use in QML.
Definition: Mir.h:25
QString keymapVariant
Keymap variant.
Definition: MirSurfaceInterface.h:136
int widthIncrement
The requested width increment for the surface Zero if not set.
Definition: MirSurfaceInterface.h:109
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
bool visible
Visibility of the surface.
Definition: MirSurfaceInterface.h:71
Mir::ShellChrome shellChrome
The Shell chrome mode.
Definition: MirSurfaceInterface.h:120
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:38