Lines Matching refs:state

176 expand_rect_for_pen_size(BoundingBoxState* state, RectType& rect)
178 float penInset = -((state->GetDrawState()->PenSize() / 2.0f) + 1.0f);
187 BoundingBoxState* const state =
190 state->GetDrawState()->SetPenLocation(
191 state->GetDrawState()->PenLocation() + delta);
201 BoundingBoxState* const state =
207 const SimpleTransform transform = state->PenToLocalTransform();
227 expand_rect_for_pen_size(state, rect);
228 state->IncludeRect(rect);
230 state->GetDrawState()->SetPenLocation(_end);
239 BoundingBoxState* const state =
243 state->PenToLocalTransform().Apply(&rect);
245 expand_rect_for_pen_size(state, rect);
246 state->IncludeRect(rect);
259 determine_bounds_bezier(BoundingBoxState* state, const BPoint* viewPoints,
269 state->PenToLocalTransform().Apply(points, viewPoints, 4);
295 BoundingBoxState* const state =
303 determine_bounds_bezier(state, viewPoints, rect);
305 expand_rect_for_pen_size(state, rect);
306 state->IncludeRect(rect);
315 BoundingBoxState* const state =
319 state->PenToLocalTransform().Apply(&rect);
321 expand_rect_for_pen_size(state, rect);
322 state->IncludeRect(rect);
337 determine_bounds_polygon(BoundingBoxState* state, int32 numPoints,
349 state->PenToLocalTransform().Apply(points, viewPoints, numPoints);
359 state->PenToLocalTransform().Apply(points, viewPoints, numPoints);
372 BoundingBoxState* const state =
376 determine_bounds_polygon(state, numPoints, viewPoints, rect);
378 expand_rect_for_pen_size(state, rect);
379 state->IncludeRect(rect);
390 BoundingBoxState* const state =
393 state->PenToLocalTransform().Apply(&rect);
395 expand_rect_for_pen_size(state, rect);
396 state->IncludeRect(rect);
405 BoundingBoxState* const state =
408 ServerFont font = state->GetDrawState()->Font();
415 BPoint location = state->GetDrawState()->PenLocation();
417 state->PenToLocalTransform().Apply(&location);
419 state->IncludeRect(rect);
421 state->PenToLocalTransform().Apply(&location);
422 state->GetDrawState()->SetPenLocation(location);
432 BoundingBoxState* const state =
436 state->PenToLocalTransform().Apply(&dest);
437 state->IncludeRect(dest);
478 TRACE_BB("%p push state\n", _state);
479 BoundingBoxState* const state =
482 state->PushDrawState();
489 TRACE_BB("%p pop state\n", _state);
490 BoundingBoxState* const state =
493 state->PopDrawState();
525 BoundingBoxState* const state =
527 state->GetDrawState()->SetOrigin(pt);
535 BoundingBoxState* const state =
537 state->GetDrawState()->SetPenLocation(pt);
551 BoundingBoxState* const state =
554 DrawState* drawState = state->GetDrawState();
565 BoundingBoxState* const state =
568 state->GetDrawState()->SetPenSize(size);
575 BoundingBoxState* const state =
578 state->GetDrawState()->SetHighColor(color);
585 BoundingBoxState* const state =
588 state->GetDrawState()->SetLowColor(color);
595 BoundingBoxState* const state =
598 state->GetDrawState()->SetPattern(Pattern(_pattern));
605 BoundingBoxState* const state =
608 state->GetDrawState()->SetScale(scale);
615 BoundingBoxState* const state =
622 state->GetDrawState()->SetFont(font, B_FONT_FAMILY_AND_STYLE);
629 BoundingBoxState* const state =
633 ServerFont font(state->GetDrawState()->Font());
636 state->GetDrawState()->SetFont(font, B_FONT_FAMILY_AND_STYLE);
643 BoundingBoxState* const state =
648 state->GetDrawState()->SetFont(font, B_FONT_SPACING);
655 BoundingBoxState* const state =
660 state->GetDrawState()->SetFont(font, B_FONT_SIZE);
667 BoundingBoxState* const state =
672 state->GetDrawState()->SetFont(font, B_FONT_ROTATION);
679 BoundingBoxState* const state =
684 state->GetDrawState()->SetFont(font, B_FONT_ENCODING);
691 BoundingBoxState* const state =
696 state->GetDrawState()->SetFont(font, B_FONT_FLAGS);
703 BoundingBoxState* const state =
708 state->GetDrawState()->SetFont(font, B_FONT_SHEAR);
715 BoundingBoxState* const state =
720 state->GetDrawState()->SetFont(font, B_FONT_FACE);
734 BoundingBoxState* const state =
736 state->GetDrawState()->SetTransform(transform);
744 BoundingBoxState* const state =
746 BAffineTransform transform = state->GetDrawState()->Transform();
748 state->GetDrawState()->SetTransform(transform);
756 BoundingBoxState* const state =
758 BAffineTransform transform = state->GetDrawState()->Transform();
760 state->GetDrawState()->SetTransform(transform);
768 BoundingBoxState* const state =
770 BAffineTransform transform = state->GetDrawState()->Transform();
772 state->GetDrawState()->SetTransform(transform);
780 BoundingBoxState* const state =
784 PictureBoundingBoxPlayer::Play(layer, state->GetDrawState(), &boundingBox);
786 state->IncludeRect(boundingBox);
846 State state(drawState, outBoundingBox);
856 sizeof(kPictureBoundingBoxPlayerCallbacks), &state);