Lines Matching defs:view
392 BPrintJob::DrawView(BView* view, BRect rect, BPoint where)
397 if (view == NULL)
400 if (view->LockLooper()) {
402 _RecurseView(view, B_ORIGIN - rect.LeftTop(), &picture, rect);
404 view->UnlockLooper();
521 BPrintJob::_RecurseView(BView* view, BPoint origin, BPicture* picture,
528 view->fState->print_rect = rect;
530 view->AppendToPicture(picture);
531 view->PushState();
532 view->SetOrigin(origin);
533 view->ConstrainClippingRegion(®ion);
535 if (view->ViewColor() != B_TRANSPARENT_COLOR) {
536 rgb_color highColor = view->HighColor();
537 view->SetHighColor(view->ViewColor());
538 view->FillRect(rect);
539 view->SetHighColor(highColor);
542 if ((view->Flags() & B_WILL_DRAW) != 0) {
543 view->fIsPrinting = true;
544 view->Draw(rect);
545 view->fIsPrinting = false;
548 view->PopState();
549 view->EndPicture();
551 BView* child = view->ChildAt(0);
554 BPoint leftTop(view->Bounds().LeftTop() + child->Frame().LeftTop());
563 if ((view->Flags() & B_DRAW_ON_CHILDREN) != 0) {
564 view->AppendToPicture(picture);
565 view->PushState();
566 view->SetOrigin(origin);
567 view->ConstrainClippingRegion(®ion);
568 view->fIsPrinting = true;
569 view->DrawAfterChildren(rect);
570 view->fIsPrinting = false;
571 view->PopState();
572 view->EndPicture();