summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-06-15 14:01:12 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-15 14:42:09 +0200
commit0342b099d7079c8246684c8bafd79d98172ae029 (patch)
tree9cf53d6ae4db2b07f4887992cc1a143eaa791a2b /include/vcl
parent4f036439f7597d33a9f90860d9a5b6ac28b270c7 (diff)
sidebar: Make the color toolbox updater rendering more universal.
Render the color preview bigger if we have space for that. Change-Id: I5bbe5edbb8e354fc3009935d3ed6090271b72bf7
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/toolbox.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 9c619ea35afd..e3e2ff866350 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -400,6 +400,9 @@ public:
Rectangle GetItemRect( sal_uInt16 nItemId ) const;
Rectangle GetItemPosRect( sal_uInt16 nPos ) const;
+ /// Returns size of the bitmap / text that is inside this toolbox item.
+ Size GetItemContentSize( sal_uInt16 nItemId ) const;
+
/// Retrieves the optimal position to place a popup window for this item (subtoolbar or dropdown)
Point GetItemPopupPosition( sal_uInt16 nItemId, const Size& rSize ) const;