core: Add Output::rectF
This commit is contained in:
parent
c314705d53
commit
571e4026ac
1 changed files with 10 additions and 0 deletions
|
@ -238,6 +238,11 @@ public:
|
||||||
*/
|
*/
|
||||||
QRect rect() const;
|
QRect rect() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Equivalent to `QRectF(QPointF(0, 0), geometryF().size())`
|
||||||
|
*/
|
||||||
|
QRectF rectF() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the approximate vertical refresh rate of this output, in mHz.
|
* Returns the approximate vertical refresh rate of this output, in mHz.
|
||||||
*/
|
*/
|
||||||
|
@ -480,6 +485,11 @@ inline QRect Output::rect() const
|
||||||
return QRect(QPoint(0, 0), geometry().size());
|
return QRect(QPoint(0, 0), geometry().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline QRectF Output::rectF() const
|
||||||
|
{
|
||||||
|
return QRectF(QPointF(0, 0), geometryF().size());
|
||||||
|
}
|
||||||
|
|
||||||
KWIN_EXPORT QDebug operator<<(QDebug debug, const Output *output);
|
KWIN_EXPORT QDebug operator<<(QDebug debug, const Output *output);
|
||||||
|
|
||||||
} // namespace KWin
|
} // namespace KWin
|
||||||
|
|
Loading…
Reference in a new issue