Document AbstractClient::minSize() and AbstractClient::maxSize()

Summary:
Clarify that AbstractClient::minSize() and AbstractClient::maxSize()
specify the minimum and the maximum client size.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D26829
This commit is contained in:
Vlad Zahorodnii 2020-02-12 12:40:32 +02:00
parent a75fb7f84e
commit c3abe87f4c

View file

@ -719,11 +719,17 @@ void AbstractClient::keepInArea(QRect area, bool partial)
move(tx, ty);
}
/**
* Returns the maximum client size, not the maximum frame size.
*/
QSize AbstractClient::maxSize() const
{
return rules()->checkMaxSize(QSize(INT_MAX, INT_MAX));
}
/**
* Returns the minimum client size, not the minimum frame size.
*/
QSize AbstractClient::minSize() const
{
return rules()->checkMinSize(QSize(0, 0));