summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-18 16:36:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-18 16:37:24 +0000
commitbc6479e92b56df742dd7339d337ffc78d2f9e4a1 (patch)
treec4db395d7143b22cb55f91f5b48a27ad087be260 /include
parent239e877d51399daedd315b6d1b31543e491169b6 (diff)
change DrawControlText to return new rect rather than change old one
Change-Id: Id5c80ff263e429d4239a844db216e87a656edb2e
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ctrl.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx
index ca230310a232..2f93f64ccc7b 100644
--- a/include/vcl/ctrl.hxx
+++ b/include/vcl/ctrl.hxx
@@ -80,10 +80,11 @@ protected:
If no reference device is set, the draw request will simply be forwarded to OutputDevice::DrawText. Otherwise,
the text will be rendered according to the metrics at the reference device.
- Note that the given rectangle might be modified, it will contain the result of a GetTextRect call (either
- directly at the target device, or taking the reference device into account) when returning.
+ return will contain the result of a GetTextRect call (either directly
+ at the target device, or taking the reference device into account) when
+ returning.
*/
- void DrawControlText( OutputDevice& _rTargetDevice, Rectangle& _io_rRect,
+ Rectangle DrawControlText( OutputDevice& _rTargetDevice, const Rectangle& _rRect,
const OUString& _rStr, DrawTextFlags _nStyle,
MetricVector* _pVector, OUString* _pDisplayText ) const;