BControlLook: Add DrawLabel() variants with icon

A label, a bitmap, or both can be specified.
This commit is contained in:
Ingo Weinhold
2013-12-22 02:48:24 +01:00
parent 8719e0dc4b
commit 1b848ee7f2
2 changed files with 97 additions and 49 deletions
+11
View File
@@ -12,6 +12,7 @@
#include <Slider.h>
class BBitmap;
class BControl;
class BGradientLinear;
class BView;
@@ -336,6 +337,16 @@ public:
const rgb_color& base, uint32 flags,
const BPoint& where);
void DrawLabel(BView* view, const char* label,
const BBitmap* icon, BRect rect,
const BRect& updateRect,
const rgb_color& base, uint32 flags);
virtual void DrawLabel(BView* view, const char* label,
const BBitmap* icon, BRect rect,
const BRect& updateRect,
const rgb_color& base, uint32 flags,
const BAlignment& alignment);
virtual void GetFrameInsets(frame_type frameType,
uint32 flags, float& _left, float& _top,
float& _right, float& _bottom);