Move enum Sizemode from Client to AbstractClient

Required to add e.g. sizeForClientSize and adjustedSize to
AbstractClient.
This commit is contained in:
Martin Gräßlin 2015-10-13 09:44:50 +02:00
parent acb3a14200
commit 37fc20d3c0
2 changed files with 7 additions and 7 deletions

View file

@ -397,6 +397,13 @@ public:
void keepInArea(QRect area, bool partial = false);
virtual QSize minSize() const;
virtual QSize maxSize() const;
/// How to resize the window in order to obey constains (mainly aspect ratios)
enum Sizemode {
SizemodeAny,
SizemodeFixedW, ///< Try not to affect width
SizemodeFixedH, ///< Try not to affect height
SizemodeMax ///< Try not to make it larger in either direction
};
virtual bool hasStrut() const;

View file

@ -209,13 +209,6 @@ public:
void releaseWindow(bool on_shutdown = false);
void destroyClient();
/// How to resize the window in order to obey constains (mainly aspect ratios)
enum Sizemode {
SizemodeAny,
SizemodeFixedW, ///< Try not to affect width
SizemodeFixedH, ///< Try not to affect height
SizemodeMax ///< Try not to make it larger in either direction
};
QSize adjustedSize(const QSize&, Sizemode mode = SizemodeAny) const;
QSize adjustedSize() const;