* Refactored a method to draw a label when the location is already known.

(This one takes care of setting up the correct color.)
 * Added TODO about using either B_CONTROL_TEXT_COLOR, or elliminating that
   constant (which I am in favor of...).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35260 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-01-23 12:48:18 +00:00
parent 90b5a0b261
commit c4e211feb6
2 changed files with 38 additions and 17 deletions
+8
View File
@@ -257,6 +257,14 @@ public:
const rgb_color& base, uint32 flags,
const BAlignment& alignment);
// TODO: This should also be virtual
// TODO: Would be nice to have a (non-virtual) version of this method
// which takes an array of labels and locations. That would save some
// setup with the view graphics state.
void DrawLabel(BView* view, const char* label,
const rgb_color& base, uint32 flags,
const BPoint& where);
protected:
void _DrawButtonFrame(BView* view, BRect& rect,
const BRect& updateRect,