~untrusted-ci-dev-bot/unity-api/unity-api-ubuntu-xenial-landing-002

« back to all changes in this revision

Viewing changes to include/unity/shell/application/MirSurfaceInterface.h

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-02-11 23:53:21 UTC
  • mfrom: (206.1.2 surfaceItemSizeHints)
  • Revision ID: ci-train-bot@canonical.com-20160211235321-nbku9r6cb0z0snlz
MirSurfaceInterface: added size hints
Approved by: Unity8 CI Bot, Michał Sawicz

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    Q_PROPERTY(Mir::OrientationAngle orientationAngle READ orientationAngle WRITE setOrientationAngle
79
79
               NOTIFY orientationAngleChanged DESIGNABLE false)
80
80
 
 
81
    /**
 
82
     * @brief The requested minimum width for the surface
 
83
     * Zero if not set
 
84
     */
 
85
    Q_PROPERTY(int minimumWidth READ minimumWidth NOTIFY minimumWidthChanged)
 
86
 
 
87
    /**
 
88
     * @brief The requested minimum height for the surface
 
89
     * Zero if not set
 
90
     */
 
91
    Q_PROPERTY(int minimumHeight READ minimumHeight NOTIFY minimumHeightChanged)
 
92
 
 
93
    /**
 
94
     * @brief The requested maximum width for the surface
 
95
     * Zero if not set
 
96
     */
 
97
    Q_PROPERTY(int maximumWidth READ maximumWidth NOTIFY maximumWidthChanged)
 
98
 
 
99
    /**
 
100
     * @brief The requested maximum height for the surface
 
101
     * Zero if not set
 
102
     */
 
103
    Q_PROPERTY(int maximumHeight READ maximumHeight NOTIFY maximumHeightChanged)
 
104
 
 
105
    /**
 
106
     * @brief The requested width increment for the surface
 
107
     * Zero if not set
 
108
     */
 
109
    Q_PROPERTY(int widthIncrement READ widthIncrement NOTIFY widthIncrementChanged)
 
110
 
 
111
    /**
 
112
     * @brief The requested height increment for the surface
 
113
     * Zero if not set
 
114
     */
 
115
    Q_PROPERTY(int heightIncrement READ heightIncrement NOTIFY heightIncrementChanged)
 
116
 
81
117
public:
82
118
    /// @cond
83
119
    MirSurfaceInterface(QObject *parent = nullptr) : QObject(parent) {}
100
136
 
101
137
    virtual Mir::OrientationAngle orientationAngle() const = 0;
102
138
    virtual void setOrientationAngle(Mir::OrientationAngle angle) = 0;
 
139
 
 
140
    virtual int minimumWidth() const = 0;
 
141
    virtual int minimumHeight() const = 0;
 
142
    virtual int maximumWidth() const = 0;
 
143
    virtual int maximumHeight() const = 0;
 
144
    virtual int widthIncrement() const = 0;
 
145
    virtual int heightIncrement() const = 0;
103
146
    /// @endcond
104
147
 
105
148
Q_SIGNALS:
111
154
    void orientationAngleChanged(Mir::OrientationAngle value);
112
155
    void sizeChanged(const QSize &value);
113
156
    void nameChanged(const QString &name);
 
157
    void minimumWidthChanged(int value);
 
158
    void minimumHeightChanged(int value);
 
159
    void maximumWidthChanged(int value);
 
160
    void maximumHeightChanged(int value);
 
161
    void widthIncrementChanged(int value);
 
162
    void heightIncrementChanged(int value);
114
163
    /// @endcond
115
164
};
116
165