17 #ifndef UNITY_SHELL_APPLICATION_MIRSURFACEITEM_H 18 #define UNITY_SHELL_APPLICATION_MIRSURFACEITEM_H 31 class MirSurfaceInterface;
64 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
70 Q_PROPERTY(
bool live READ
live NOTIFY liveChanged)
78 NOTIFY orientationAngleChanged DESIGNABLE false)
87 WRITE setConsumesInput
88 NOTIFY consumesInputChanged)
97 NOTIFY surfaceWidthChanged)
105 WRITE setSurfaceHeight
106 NOTIFY surfaceHeightChanged)
108 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
127 virtual QString
name()
const = 0;
128 virtual bool live()
const = 0;
140 virtual void setConsumesInput(
bool value) = 0;
143 virtual void setSurfaceWidth(
int value) = 0;
146 virtual void setSurfaceHeight(
int value) = 0;
148 virtual FillMode fillMode()
const = 0;
149 virtual void setFillMode(FillMode value) = 0;
158 void liveChanged(
bool live);
161 void consumesInputChanged(
bool value);
162 void surfaceWidthChanged(
int value);
163 void surfaceHeightChanged(
int value);
164 void nameChanged(
const QString &
name);
165 void fillModeChanged(FillMode value);
174 #endif // UNITY_SHELL_APPLICATION_MIRSURFACEITEM_H unity::shell::application::MirSurfaceInterface surface
The surface to be displayed.
Definition: MirSurfaceItemInterface.h:49
Mir::State surfaceState
State of the given surface or Mir.UnknownState if no surface is set.
Definition: MirSurfaceItemInterface.h:59
Mir::OrientationAngle orientationAngle
Orientation angle of the given surface.
Definition: MirSurfaceItemInterface.h:78
bool live
True if the item has a surface and that surface has a mir client bound to it. A "zombie" (live == fal...
Definition: MirSurfaceItemInterface.h:70
Type
Surface type.
Definition: Mir.h:45
Mir::ShellChrome shellChrome
The Shell chrome mode.
Definition: MirSurfaceItemInterface.h:113
State
Surface state.
Definition: Mir.h:61
ShellChrome
Shell chrome.
Definition: Mir.h:85
Top-level namespace for all things Unity-related.
Definition: Version.h:37
int surfaceWidth
The desired width for the contained MirSurface. It's ignored if set to zero or a negative number The ...
Definition: MirSurfaceItemInterface.h:97
Renders a MirSurface in a QML scene and forwards the input events it receives to it.
Definition: MirSurfaceItemInterface.h:40
int surfaceHeight
The desired height for the contained MirSurface. It's ignored if set to zero or a negative number The...
Definition: MirSurfaceItemInterface.h:106
QString name
Name of the given surface or an empty string if no surface is set.
Definition: MirSurfaceItemInterface.h:64
OrientationAngle
Surface orientation angle.
Definition: Mir.h:75
bool consumesInput
Whether the item will forward activeFocus, touch events, mouse events and key events to its surface...
Definition: MirSurfaceItemInterface.h:88
Acting mostly as a namespace to hold enums and such for use in QML.
Definition: Mir.h:25
Mir::Type type
Type of the given surface or Mir.UnknownType if no surface is set.
Definition: MirSurfaceItemInterface.h:54
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:38