Document AbstractClient::isResize() and AbstractClient::isMove()

This commit is contained in:
Vlad Zahorodnii 2020-01-28 22:18:57 +02:00
parent 34fc962ff1
commit 3399a7db8a

View file

@ -693,9 +693,15 @@ public:
*/
QRect clientRectToFrameRect(const QRect &rect) const;
/**
* Returns @c true if the Client is being interactively moved; otherwise @c false.
*/
bool isMove() const {
return isMoveResize() && moveResizePointerMode() == PositionCenter;
}
/**
* Returns @c true if the Client is being interactively resized; otherwise @c false.
*/
bool isResize() const {
return isMoveResize() && moveResizePointerMode() != PositionCenter;
}