17 #ifndef UNITY_SHELL_APPLICATION_MIRSURFACE_H 18 #define UNITY_SHELL_APPLICATION_MIRSURFACE_H 33 class MirSurfaceListInterface;
53 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
73 Q_PROPERTY(QSize
size READ
size NOTIFY sizeChanged)
84 Q_PROPERTY(
bool live READ
live NOTIFY liveChanged)
97 NOTIFY orientationAngleChanged DESIGNABLE false)
144 Q_PROPERTY(QString
keymap READ
keymap WRITE setKeymap NOTIFY keymapChanged)
174 virtual QString
name()
const = 0;
178 virtual QPoint
position()
const = 0;
180 virtual QSize
size()
const = 0;
181 virtual void resize(
int width,
int height) = 0;
182 virtual void resize(
const QSize &
size) = 0;
186 virtual bool live()
const = 0;
188 virtual bool visible()
const = 0;
200 virtual void setKeymap(
const QString &) = 0;
201 virtual QString
keymap()
const = 0;
205 virtual bool focused()
const = 0;
212 virtual void setRequestedPosition(
const QPoint &) = 0;
219 Q_INVOKABLE
virtual void close() = 0;
226 Q_INVOKABLE
virtual void activate() = 0;
237 void liveChanged(
bool value);
238 void visibleChanged(
bool visible);
241 void positionChanged(QPoint
position);
242 void requestedPositionChanged(QPoint position);
243 void sizeChanged(
const QSize &value);
244 void nameChanged(
const QString &
name);
245 void minimumWidthChanged(
int value);
246 void minimumHeightChanged(
int value);
247 void maximumWidthChanged(
int value);
248 void maximumHeightChanged(
int value);
249 void widthIncrementChanged(
int value);
250 void heightIncrementChanged(
int value);
252 void keymapChanged(
const QString &value);
253 void focusedChanged(
bool value);
254 void inputBoundsChanged(QRect value);
255 void confinesMousePointerChanged(
bool value);
277 #endif // UNITY_SHELL_APPLICATION_MIRSURFACE_H int heightIncrement
The requested height increment for the surface Zero if not set.
Definition: MirSurfaceInterface.h:133
virtual void requestState(Mir::State state)=0
Requests a change to the specified state.
int minimumHeight
The requested minimum height for the surface Zero if not set.
Definition: MirSurfaceInterface.h:109
Type
Surface type.
Definition: Mir.h:45
Mir::Type type
The surface type.
Definition: MirSurfaceInterface.h:48
int minimumWidth
The requested minimum width for the surface Zero if not set.
Definition: MirSurfaceInterface.h:103
State
Surface state.
Definition: Mir.h:61
QString name
Name of the surface, given by the client application.
Definition: MirSurfaceInterface.h:53
virtual Q_INVOKABLE void close()=0
Sends a close request.
Mir::OrientationAngle orientationAngle
Orientation angle of the surface.
Definition: MirSurfaceInterface.h:97
virtual Q_INVOKABLE void activate()=0
Activates this surface.
ShellChrome
Shell chrome.
Definition: Mir.h:91
Top-level namespace for all things Unity-related.
Definition: Version.h:37
QString keymap
The requested keymap for this surface Its format is "layout+variant".
Definition: MirSurfaceInterface.h:144
bool focused
Whether the surface is focused.
Definition: MirSurfaceInterface.h:151
QSize size
Size of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:73
int maximumWidth
The requested maximum width for the surface Zero if not set.
Definition: MirSurfaceInterface.h:115
Mir::State state
State of the surface.
Definition: MirSurfaceInterface.h:78
bool confinesMousePointer
Whether the surface wants to confine the mouse pointer within its boundaries.
Definition: MirSurfaceInterface.h:165
void focusRequested()
Emitted in response to a requestFocus() call.
int maximumHeight
The requested maximum height for the surface Zero if not set.
Definition: MirSurfaceInterface.h:121
OrientationAngle
Surface orientation angle.
Definition: Mir.h:81
Acting mostly as a namespace to hold enums and such for use in QML.
Definition: Mir.h:25
int widthIncrement
The requested width increment for the surface Zero if not set.
Definition: MirSurfaceInterface.h:127
QPoint position
Position of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:63
QString persistentId
Persistent Id of the surface.
Definition: MirSurfaceInterface.h:58
QRect inputBounds
Input bounds.
Definition: MirSurfaceInterface.h:158
bool live
True if it has a mir client bound to it. A "zombie" (live == false) surface never becomes alive again...
Definition: MirSurfaceInterface.h:84
void closeRequested()
Emitted when close() is called.
bool visible
Visibility of the surface.
Definition: MirSurfaceInterface.h:89
Mir::ShellChrome shellChrome
The Shell chrome mode.
Definition: MirSurfaceInterface.h:138
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:41
QPoint requestedPosition
Requested position of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:68