17 #ifndef LOMIRI_SHELL_APPLICATION_MIRSURFACEITEM_H
18 #define LOMIRI_SHELL_APPLICATION_MIRSURFACEITEM_H
31 class MirSurfaceInterface;
62 Q_PROPERTY(QString
name READ
name NOTIFY nameChanged)
68 Q_PROPERTY(
bool live READ
live NOTIFY liveChanged)
76 NOTIFY orientationAngleChanged DESIGNABLE false)
85 WRITE setConsumesInput
86 NOTIFY consumesInputChanged)
95 NOTIFY surfaceWidthChanged)
103 WRITE setSurfaceHeight
104 NOTIFY surfaceHeightChanged)
106 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
123 virtual ~MirSurfaceItemInterface() {}
126 virtual QString
name()
const = 0;
127 virtual bool live()
const = 0;
134 virtual MirSurfaceInterface*
surface()
const = 0;
135 virtual void setSurface(MirSurfaceInterface*) = 0;
138 virtual void setConsumesInput(
bool value) = 0;
141 virtual void setSurfaceWidth(
int value) = 0;
144 virtual void setSurfaceHeight(
int value) = 0;
146 virtual FillMode fillMode()
const = 0;
147 virtual void setFillMode(FillMode value) = 0;
156 void liveChanged(
bool live);
159 void consumesInputChanged(
bool value);
160 void surfaceWidthChanged(
int value);
161 void surfaceHeightChanged(
int value);
162 void nameChanged(
const QString &
name);
163 void fillModeChanged(FillMode value);
172 #endif // LOMIRI_SHELL_APPLICATION_MIRSURFACEITEM_H
OrientationAngle
Surface orientation angle.
Definition: Mir.h:85
ShellChrome
Shell chrome.
Definition: Mir.h:96
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:52
Renders a MirSurface in a QML scene and forwards the input events it receives to it.
Definition: MirSurfaceItemInterface.h:40
Mir::OrientationAngle orientationAngle
Orientation angle of the given surface.
Definition: MirSurfaceItemInterface.h:76
QString name
Name of the given surface or an empty string if no surface is set.
Definition: MirSurfaceItemInterface.h:62
Mir::ShellChrome shellChrome
The Shell chrome mode.
Definition: MirSurfaceItemInterface.h:111
int surfaceWidth
The desired width for the contained MirSurface. It's ignored if set to zero or a negative number The ...
Definition: MirSurfaceItemInterface.h:95
bool consumesInput
Whether the item will forward activeFocus, touch events, mouse events and key events to its surface....
Definition: MirSurfaceItemInterface.h:86
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:68
Top-level namespace for all things Lomiri-related.
Definition: Version.h:37
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:41
Mir::State surfaceState
State of the given surface or Mir.UnknownState if no surface is set.
Definition: MirSurfaceItemInterface.h:57
int surfaceHeight
The desired height for the contained MirSurface. It's ignored if set to zero or a negative number The...
Definition: MirSurfaceItemInterface.h:104
lomiri::shell::application::MirSurfaceInterface surface
The surface to be displayed.
Definition: MirSurfaceItemInterface.h:47
Type
Surface type.
Definition: Mir.h:47
State
Surface state.
Definition: Mir.h:64