From 912d3394894c85c12b6d72637caee1c65c72497e Mon Sep 17 00:00:00 2001 From: Aleix Pol Gonzalez Date: Fri, 24 May 2024 16:37:51 +0200 Subject: [PATCH] window: Extend API documentation Signed-off-by: Victoria Fischer --- src/window.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/window.h b/src/window.h index 4a9ed53db0..11154ef358 100644 --- a/src/window.h +++ b/src/window.h @@ -679,9 +679,21 @@ public: virtual QSizeF constrainClientSize(const QSizeF &size, SizeMode mode = SizeModeAny) const; QSizeF constrainFrameSize(const QSizeF &size, SizeMode mode = SizeModeAny) const; - void move(const QPointF &point); + /** + * Moves the window so that the new topLeft corner of the frame is @p topLeft. + */ + void move(const QPointF &topLeft); + + /** + * Resizes the window to have a new @p size but stay with the top-left corner in the same position. + */ void resize(const QSizeF &size); - void moveResize(const QRectF &rect); + + /** + * Requests a new @p geometry for the window that the implementation will need to adopt + * within its possibilities. + */ + void moveResize(const QRectF &geometry); void growHorizontal(); void shrinkHorizontal();