From 99586bc42075698650ff510a520b5bab3db2c051 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 21 Jul 2014 15:49:10 +0200 Subject: [PATCH] Add API documentation as it's public API now Reviewed by David Edmundson --- src/plasma/framesvg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/plasma/framesvg.h b/src/plasma/framesvg.h index 201e93ed9..ce34ee96b 100644 --- a/src/plasma/framesvg.h +++ b/src/plasma/framesvg.h @@ -287,8 +287,19 @@ public: */ Q_INVOKABLE void paintFrame(QPainter *painter, const QPointF &pos = QPointF(0, 0)); + /** + * @returns the prefix that is actually used + */ QString actualPrefix() const; + + /** + * @returns the element id name for said @p borders + */ static QString borderToElementId(FrameSvg::EnabledBorders borders); + + /** + * @returns the suggested geometry for the @p borders given a @p fullSize frame size and a @p contentRect + */ static QRect sectionRect(Plasma::FrameSvg::EnabledBorders borders, const QRect& contentRect, const QSize& fullSize); protected: