17 #ifndef LOMIRI_SHELL_APPLICATION_MIRSURFACE_H
18 #define LOMIRI_SHELL_APPLICATION_MIRSURFACE_H
53 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
78 Q_PROPERTY(QSize
size READ
size NOTIFY sizeChanged)
89 Q_PROPERTY(
bool live READ
live NOTIFY liveChanged)
102 NOTIFY orientationAngleChanged DESIGNABLE
false)
149 Q_PROPERTY(QString
keymap READ
keymap WRITE setKeymap NOTIFY keymapChanged)
199 virtual QString
name()
const = 0;
203 virtual QString
appId()
const = 0;
205 virtual QPoint
position()
const = 0;
207 virtual QSize
size()
const = 0;
208 virtual void resize(
int width,
int height) = 0;
209 virtual void resize(
const QSize &
size) = 0;
213 virtual bool live()
const = 0;
215 virtual bool visible()
const = 0;
227 virtual void setKeymap(
const QString &) = 0;
228 virtual QString
keymap()
const = 0;
232 virtual bool focused()
const = 0;
239 virtual void setAllowClientResize(
bool) = 0;
242 virtual void setRequestedPosition(
const QPoint &) = 0;
253 Q_INVOKABLE
virtual void close() = 0;
277 void liveChanged(
bool value);
278 void visibleChanged(
bool visible);
281 void positionChanged(QPoint
position);
282 void requestedPositionChanged(QPoint
position);
283 void sizeChanged(
const QSize &value);
284 void nameChanged(
const QString &
name);
285 void minimumWidthChanged(
int value);
286 void minimumHeightChanged(
int value);
287 void maximumWidthChanged(
int value);
288 void maximumHeightChanged(
int value);
289 void widthIncrementChanged(
int value);
290 void heightIncrementChanged(
int value);
292 void keymapChanged(
const QString &value);
293 void focusedChanged(
bool value);
294 void inputBoundsChanged(QRect value);
295 void confinesMousePointerChanged(
bool value);
296 void allowClientResizeChanged(
bool value);
318 #endif // LOMIRI_SHELL_APPLICATION_MIRSURFACE_H
OrientationAngle
Surface orientation angle.
Definition: Mir.h:86
ShellChrome
Shell chrome.
Definition: Mir.h:97
virtual Q_INVOKABLE void activate()=0
Activates this surface.
int minimumHeight
The requested minimum height for the surface Zero if not set.
Definition: MirSurfaceInterface.h:114
QRect inputBounds
Input bounds.
Definition: MirSurfaceInterface.h:163
int maximumWidth
The requested maximum width for the surface Zero if not set.
Definition: MirSurfaceInterface.h:120
virtual void requestState(Mir::State state)=0
Requests a change to the specified state.
QPoint position
Position of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:68
Mir::OrientationAngle orientationAngle
Orientation angle of the surface.
Definition: MirSurfaceInterface.h:102
bool confinesMousePointer
Whether the surface wants to confine the mouse pointer within its boundaries.
Definition: MirSurfaceInterface.h:170
QString appId
App Id of the app this surface belongs to.
Definition: MirSurfaceInterface.h:63
bool visible
Visibility of the surface.
Definition: MirSurfaceInterface.h:94
MirSurfaceInterface parentSurface
The parent MirSurface or null if this is a top-level surface.
Definition: MirSurfaceInterface.h:182
int maximumHeight
The requested maximum height for the surface Zero if not set.
Definition: MirSurfaceInterface.h:126
virtual Q_INVOKABLE void forceClose()=0
Sends a force close request.
void closeRequested()
Emitted when close() is called.
bool focused
Whether the surface is focused.
Definition: MirSurfaceInterface.h:156
virtual Q_INVOKABLE void close()=0
Sends a close request.
int minimumWidth
The requested minimum width for the surface Zero if not set.
Definition: MirSurfaceInterface.h:108
int widthIncrement
The requested width increment for the surface Zero if not set.
Definition: MirSurfaceInterface.h:132
QString name
Name of the surface, given by the client application.
Definition: MirSurfaceInterface.h:53
Mir::ShellChrome shellChrome
The Shell chrome mode.
Definition: MirSurfaceInterface.h:143
QSize size
Size of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:78
QString persistentId
Persistent Id of the surface.
Definition: MirSurfaceInterface.h:58
Mir::State state
State of the surface.
Definition: MirSurfaceInterface.h:83
void focusRequested()
Emitted in response to a requestFocus() call.
Interface for a list model of MirSurfaces.
Definition: MirSurfaceListInterface.h:32
bool live
True if it has a mir client bound to it. A "zombie" (live == false) surface never becomes alive again...
Definition: MirSurfaceInterface.h:89
int heightIncrement
The requested height increment for the surface Zero if not set.
Definition: MirSurfaceInterface.h:138
QString keymap
The requested keymap for this surface Its format is "layout+variant".
Definition: MirSurfaceInterface.h:149
Top-level namespace for all things Lomiri-related.
Definition: Version.h:38
bool allowClientResize
Whether to comply to resize requests coming from the client side.
Definition: MirSurfaceInterface.h:177
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:42
lomiri::shell::application::MirSurfaceListInterface childSurfaceList
The list of child surfaces.
Definition: MirSurfaceInterface.h:190
Type
Surface type.
Definition: Mir.h:47
QPoint requestedPosition
Requested position of the current surface buffer, in pixels.
Definition: MirSurfaceInterface.h:73
Mir::Type type
The surface type.
Definition: MirSurfaceInterface.h:48
State
Surface state.
Definition: Mir.h:64