1#include "PrintTestView.hpp" 2 3PrintTestView::PrintTestView(BRect frame) 4 : Inherited(frame, "", B_FOLLOW_ALL, B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE) 5{ 6} 7 8void PrintTestView::Draw(BRect updateRect) 9{ 10 StrokeRoundRect(Bounds().InsetByCopy(20,20), 10, 10); 11 BFont font(be_bold_font); 12 font.SetSize(Bounds().Height()/10); 13 font.SetShear(Bounds().Height()/10); 14 font.SetRotation(Bounds().Width()/10); 15 SetFont(&font, B_FONT_ALL); 16 DrawString("Haiku", 8, BPoint(Bounds().Width()/2,Bounds().Height()/2)); 17} 18 19