From 670cf167f033cdc3bf62d6f5f3299665dd39cb41 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Wed, 4 Aug 2010 22:01:43 +0000 Subject: [PATCH] Make the DefaultDecorator more convenience to sub class. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37911 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.h | 33 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/servers/app/DefaultDecorator.h b/src/servers/app/DefaultDecorator.h index 8571b95400..94cbbc897d 100644 --- a/src/servers/app/DefaultDecorator.h +++ b/src/servers/app/DefaultDecorator.h @@ -75,22 +75,7 @@ protected: virtual void _GetFootprint(BRegion *region); -private: - void _UpdateFont(DesktopSettings& settings); - void _DrawButtonBitmap(ServerBitmap* bitmap, - BRect rect); - void _DrawBlendedRect(DrawingEngine *engine, - BRect rect, bool down, bool focus); - void _GetButtonSizeAndOffset(const BRect& tabRect, - float* offset, float* size, - float* inset) const; - void _LayoutTabItems(const BRect& tabRect); - void _InvalidateBitmaps(); - - static ServerBitmap* _GetBitmapForButton(int32 item, bool down, - bool focus, int32 width, int32 height, - DefaultDecorator* object); - +protected: rgb_color fButtonHighColor; rgb_color fButtonLowColor; rgb_color fTabColor; @@ -130,6 +115,22 @@ private: BString fTruncatedTitle; int32 fTruncatedTitleLength; +private: + void _UpdateFont(DesktopSettings& settings); + void _DrawButtonBitmap(ServerBitmap* bitmap, + BRect rect); + void _DrawBlendedRect(DrawingEngine *engine, + BRect rect, bool down, bool focus); + void _GetButtonSizeAndOffset(const BRect& tabRect, + float* offset, float* size, + float* inset) const; + void _LayoutTabItems(const BRect& tabRect); + void _InvalidateBitmaps(); + + static ServerBitmap* _GetBitmapForButton(int32 item, bool down, + bool focus, int32 width, int32 height, + DefaultDecorator* object); + bigtime_t fLastClicked; bool fWasDoubleClick; };