forked from leavengood/Haiku-Browser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathToolbarView.cpp
More file actions
39 lines (29 loc) · 850 Bytes
/
ToolbarView.cpp
File metadata and controls
39 lines (29 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright 2009, Maxime Simon, simon.maxime@gmail.com
// All rights reserved.
//
// Distributed under the terms of the MIT License.
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include "ToolbarView.h"
#include <ControlLook.h>
ToolbarView::ToolbarView()
: BGroupView(B_HORIZONTAL, 5)
{
SetFlags(Flags() | B_WILL_DRAW);
SetViewColor(ui_color(B_MENU_BACKGROUND_COLOR));
}
ToolbarView::~ToolbarView()
{
}
void
ToolbarView::Draw(BRect updateRect)
{
BRect rect = Bounds();
be_control_look->DrawMenuBarBackground(this, rect, updateRect,
ui_color(B_MENU_BACKGROUND_COLOR));
be_control_look->DrawBorder(this, rect, updateRect,
ui_color(B_MENU_BACKGROUND_COLOR), B_FANCY_BORDER, 0,
BControlLook::B_BOTTOM_BORDER);
}