2 * Copyright 2009, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Ryan Leavengood, leavengood@gmail.com
10 #include <BuildScreenSaverDefaultSettingsView.h>
12 #include <StringView.h>
18 // This is used to provide a consistent look for the settings view for screen
19 // savers without any configuration.
21 BuildScreenSaverDefaultSettingsView(BView
* view
, const char* moduleName
, const char* info
)
23 BRect
rect(15, 15, 20, 20);
24 BStringView
* stringView
= new BStringView(rect
, "module", moduleName
);
25 stringView
->SetFont(be_bold_font
);
26 stringView
->ResizeToPreferred();
27 view
->AddChild(stringView
);
29 rect
.OffsetBy(0, stringView
->Bounds().Height() + 4);
30 stringView
= new BStringView(rect
, "info", info
);
31 stringView
->ResizeToPreferred();
32 view
->AddChild(stringView
);