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:
@@ -75,22 +75,7 @@ protected:
|
|||||||
|
|
||||||
virtual void _GetFootprint(BRegion *region);
|
virtual void _GetFootprint(BRegion *region);
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
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);
|
|
||||||
|
|
||||||
rgb_color fButtonHighColor;
|
rgb_color fButtonHighColor;
|
||||||
rgb_color fButtonLowColor;
|
rgb_color fButtonLowColor;
|
||||||
rgb_color fTabColor;
|
rgb_color fTabColor;
|
||||||
@@ -130,6 +115,22 @@ private:
|
|||||||
BString fTruncatedTitle;
|
BString fTruncatedTitle;
|
||||||
int32 fTruncatedTitleLength;
|
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;
|
bigtime_t fLastClicked;
|
||||||
bool fWasDoubleClick;
|
bool fWasDoubleClick;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user