Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.h
Show First 20 Lines • Show All 657 Lines • ▼ Show 20 Line(s) | 657 | QuickTileMode quickTileMode() const { | |||
---|---|---|---|---|---|
658 | return QuickTileMode(m_quickTileMode); | 658 | return QuickTileMode(m_quickTileMode); | ||
659 | } | 659 | } | ||
660 | Layer layer() const override; | 660 | Layer layer() const override; | ||
661 | void updateLayer(); | 661 | void updateLayer(); | ||
662 | 662 | | |||
663 | enum ForceGeometry_t { NormalGeometrySet, ForceGeometrySet }; | 663 | enum ForceGeometry_t { NormalGeometrySet, ForceGeometrySet }; | ||
664 | void move(int x, int y, ForceGeometry_t force = NormalGeometrySet); | 664 | void move(int x, int y, ForceGeometry_t force = NormalGeometrySet); | ||
665 | void move(const QPoint &p, ForceGeometry_t force = NormalGeometrySet); | 665 | void move(const QPoint &p, ForceGeometry_t force = NormalGeometrySet); | ||
666 | virtual void resizeWithChecks(int w, int h, ForceGeometry_t force = NormalGeometrySet) = 0; | 666 | virtual void resizeWithChecks(const QSize &size, ForceGeometry_t force = NormalGeometrySet) = 0; | ||
667 | void resizeWithChecks(const QSize& s, ForceGeometry_t force = NormalGeometrySet); | | |||
668 | void keepInArea(QRect area, bool partial = false); | 667 | void keepInArea(QRect area, bool partial = false); | ||
669 | virtual QSize minSize() const; | 668 | virtual QSize minSize() const; | ||
670 | virtual QSize maxSize() const; | 669 | virtual QSize maxSize() const; | ||
671 | virtual void setGeometry(const QRect &rect, ForceGeometry_t force = NormalGeometrySet) = 0; | 670 | virtual void setGeometry(const QRect &rect, ForceGeometry_t force = NormalGeometrySet) = 0; | ||
672 | /// How to resize the window in order to obey constains (mainly aspect ratios) | 671 | /// How to resize the window in order to obey constains (mainly aspect ratios) | ||
673 | enum Sizemode { | 672 | enum Sizemode { | ||
674 | SizemodeAny, | 673 | SizemodeAny, | ||
675 | SizemodeFixedW, ///< Try not to affect width | 674 | SizemodeFixedW, ///< Try not to affect width | ||
▲ Show 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | |||||
867 | 866 | | |||
868 | /** | 867 | /** | ||
869 | * Returns whether window rules can be applied to this client. | 868 | * Returns whether window rules can be applied to this client. | ||
870 | * | 869 | * | ||
871 | * Default implementation returns @c true. | 870 | * Default implementation returns @c true. | ||
872 | */ | 871 | */ | ||
873 | virtual bool supportsWindowRules() const; | 872 | virtual bool supportsWindowRules() const; | ||
874 | 873 | | |||
874 | /** | ||||
875 | * Returns the extents of the server side-decoration. | ||||
876 | * | ||||
877 | * Note that the returned margins object will have all margins set to 0 if | ||||
878 | * the client doesn't have a server side-decoration. | ||||
879 | */ | ||||
880 | QMargins frameMargins() const; | ||||
881 | | ||||
875 | public Q_SLOTS: | 882 | public Q_SLOTS: | ||
876 | virtual void closeWindow() = 0; | 883 | virtual void closeWindow() = 0; | ||
877 | 884 | | |||
878 | Q_SIGNALS: | 885 | Q_SIGNALS: | ||
879 | void fullScreenChanged(); | 886 | void fullScreenChanged(); | ||
880 | void skipTaskbarChanged(); | 887 | void skipTaskbarChanged(); | ||
881 | void skipPagerChanged(); | 888 | void skipPagerChanged(); | ||
882 | void skipSwitcherChanged(); | 889 | void skipSwitcherChanged(); | ||
▲ Show 20 Lines • Show All 442 Lines • ▼ Show 20 Line(s) | 1331 | private: | |||
1325 | AbstractClient* cl; | 1332 | AbstractClient* cl; | ||
1326 | }; | 1333 | }; | ||
1327 | 1334 | | |||
1328 | inline void AbstractClient::move(const QPoint& p, ForceGeometry_t force) | 1335 | inline void AbstractClient::move(const QPoint& p, ForceGeometry_t force) | ||
1329 | { | 1336 | { | ||
1330 | move(p.x(), p.y(), force); | 1337 | move(p.x(), p.y(), force); | ||
1331 | } | 1338 | } | ||
1332 | 1339 | | |||
1333 | inline void AbstractClient::resizeWithChecks(const QSize& s, AbstractClient::ForceGeometry_t force) | | |||
1334 | { | | |||
1335 | resizeWithChecks(s.width(), s.height(), force); | | |||
1336 | } | | |||
1337 | | ||||
1338 | inline const QList<AbstractClient*>& AbstractClient::transients() const | 1340 | inline const QList<AbstractClient*>& AbstractClient::transients() const | ||
1339 | { | 1341 | { | ||
1340 | return m_transients; | 1342 | return m_transients; | ||
1341 | } | 1343 | } | ||
1342 | 1344 | | |||
1343 | inline bool AbstractClient::areGeometryUpdatesBlocked() const | 1345 | inline bool AbstractClient::areGeometryUpdatesBlocked() const | ||
1344 | { | 1346 | { | ||
1345 | return m_blockGeometryUpdates != 0; | 1347 | return m_blockGeometryUpdates != 0; | ||
Show All 34 Lines |