Make the DefaultDecorator more convenience to sub class.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6bb7a098b7
commit
670cf167f0
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user