summaryrefslogtreecommitdiff
path: root/vcl/source/window/menufloatingwindow.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-22 15:13:48 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-22 15:15:08 +0100
commit48a05b5b64e2f2c68f5ba013b9962390f0f85f0d (patch)
treeea4d97496563cfb362de395cba2c590f713dcf63 /vcl/source/window/menufloatingwindow.hxx
parentc81f202788124631fb3a321c3f47a6c44692a26e (diff)
tdf#91366 - invalidate only individual menu items to render highlight.
Change-Id: I0dd741829dd315ed86e3fcf79b7fb4da349d0ac8
Diffstat (limited to 'vcl/source/window/menufloatingwindow.hxx')
-rw-r--r--vcl/source/window/menufloatingwindow.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/menufloatingwindow.hxx b/vcl/source/window/menufloatingwindow.hxx
index 9336664a5bc9..00c797d6942e 100644
--- a/vcl/source/window/menufloatingwindow.hxx
+++ b/vcl/source/window/menufloatingwindow.hxx
@@ -78,6 +78,9 @@ protected:
void ImplHighlightItem( const MouseEvent& rMEvt, bool bMBDown );
long ImplGetStartY() const;
Rectangle ImplGetItemRect( sal_uInt16 nPos );
+ void RenderHighlightItem( vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHighlight );
+ long GetInitialItemY( long *pOptStartY = NULL ) const;
+ void InvalidateItem( sal_uInt16 nPos );
public:
MenuFloatingWindow(Menu* pMenu, vcl::Window* pParent, WinBits nStyle);
@@ -112,7 +115,6 @@ public:
PopupMenu* GetActivePopup() const { return pActivePopup; }
void KillActivePopup( PopupMenu* pThisOnly = NULL );
- void HighlightItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHighlight);
void ChangeHighlightItem(sal_uInt16 n, bool bStartPopupTimer);
sal_uInt16 GetHighlightedItem() const { return nHighlightedItem; }