Home | History | Annotate | Download | only in controls

Lines Matching defs:text_bounds

304   gfx::Rect text_bounds;
306 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
320 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
345 gfx::Rect text_bounds;
349 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
352 EXPECT_EQ(extra.width() / 2, text_bounds.x());
353 EXPECT_EQ(extra.height() / 2 , text_bounds.y());
354 EXPECT_EQ(required_size.width(), text_bounds.width());
355 EXPECT_EQ(required_size.height(), text_bounds.height());
364 text_bounds.SetRect(0, 0, 0, 0);
365 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
368 EXPECT_EQ(0, text_bounds.x());
369 EXPECT_EQ(extra.height() / 2 , text_bounds.y());
370 EXPECT_EQ(required_size.width(), text_bounds.width());
371 EXPECT_EQ(required_size.height(), text_bounds.height());
380 text_bounds.SetRect(0, 0, 0, 0);
381 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
384 EXPECT_EQ(extra.width(), text_bounds.x());
385 EXPECT_EQ(extra.height() / 2 , text_bounds.y());
386 EXPECT_EQ(required_size.width(), text_bounds.width());
387 EXPECT_EQ(required_size.height(), text_bounds.height());
413 text_bounds.SetRect(0, 0, 0, 0);
414 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
417 EXPECT_EQ(border.left() + extra.width() / 2, text_bounds.x());
418 EXPECT_EQ(border.top() + extra.height() / 2 , text_bounds.y());
419 EXPECT_EQ(required_size.width(), text_bounds.width());
420 EXPECT_EQ(required_size.height(), text_bounds.height());
429 text_bounds.SetRect(0, 0, 0, 0);
430 label.CalculateDrawStringParams(&paint_text, &text_bounds
433 EXPECT_EQ(border.left(), text_bounds.x());
434 EXPECT_EQ(border.top() + extra.height() / 2 , text_bounds.y());
435 EXPECT_EQ(required_size.width(), text_bounds.width());
436 EXPECT_EQ(required_size.height(), text_bounds.height());
445 text_bounds.SetRect(0, 0, 0, 0);
446 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
449 EXPECT_EQ(border.left() + extra.width(), text_bounds.x());
450 EXPECT_EQ(border.top() + extra.height() / 2 , text_bounds.y());
451 EXPECT_EQ(required_size.width(), text_bounds.width());
452 EXPECT_EQ(required_size.height(), text_bounds.height());
482 gfx::Rect text_bounds;
484 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
486 EXPECT_EQ(extra.width() / 2, text_bounds.x());
487 EXPECT_EQ(extra.height() / 2, text_bounds.y());
488 EXPECT_GT(text_bounds.width(), kMinTextDimension);
489 EXPECT_GT(text_bounds.height(), kMinTextDimension);
498 gfx::Rect center_bounds(text_bounds);
502 text_bounds.SetRect(0, 0, 0, 0);
503 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
505 EXPECT_EQ(0, text_bounds.x());
506 EXPECT_EQ(extra.height() / 2, text_bounds.y());
507 EXPECT_GT(text_bounds.width(), kMinTextDimension);
508 EXPECT_GT(text_bounds.height(), kMinTextDimension);
520 text_bounds.SetRect(0, 0, 0, 0);
521 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
523 EXPECT_EQ(extra.width(), text_bounds.x());
524 EXPECT_EQ(extra.height() / 2, text_bounds.y());
525 EXPECT_GT(text_bounds.width(), kMinTextDimension);
526 EXPECT_GT(text_bounds.height(), kMinTextDimension);
550 text_bounds.SetRect(0, 0, 0, 0);
551 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
553 EXPECT_EQ(border.left() + extra.width() / 2, text_bounds.x());
554 EXPECT_EQ(border.top() + extra.height() / 2, text_bounds.y());
555 EXPECT_EQ(center_bounds.width(), text_bounds.width());
556 EXPECT_EQ(center_bounds.height(), text_bounds.height());
568 text_bounds.SetRect(0, 0, 0, 0);
569 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
571 EXPECT_EQ(border.left(), text_bounds.x());
572 EXPECT_EQ(border.top() + extra.height() / 2, text_bounds.y());
573 EXPECT_EQ(center_bounds.width(), text_bounds.width());
574 EXPECT_EQ(center_bounds.height(), text_bounds.height());
586 text_bounds.SetRect(0, 0, 0, 0);
587 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
589 EXPECT_EQ(extra.width() + border.left(), text_bounds.x());
590 EXPECT_EQ(border.top() + extra.height() / 2, text_bounds.y());
591 EXPECT_EQ(center_bounds.width(), text_bounds.width());
592 EXPECT_EQ(center_bounds.height(), text_bounds.height());
621 gfx::Rect text_bounds;
625 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
628 EXPECT_EQ(extra.width() / 2, text_bounds.x());
629 EXPECT_EQ(extra.height() / 2 , text_bounds.y());
630 EXPECT_EQ(required_size.width(), text_bounds.width());
631 EXPECT_EQ(required_size.height(), text_bounds.height());
640 text_bounds.SetRect(0, 0, 0, 0);
641 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
644 EXPECT_EQ(extra.width(), text_bounds.x());
645 EXPECT_EQ(extra.height() / 2 , text_bounds.y());
646 EXPECT_EQ(required_size.width(), text_bounds.width());
647 EXPECT_EQ(required_size.height(), text_bounds.height());
656 text_bounds.SetRect(0, 0, 0, 0);
657 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
660 EXPECT_EQ(0, text_bounds.x());
661 EXPECT_EQ(extra.height() / 2 , text_bounds.y());
662 EXPECT_EQ(required_size.width(), text_bounds.width());
663 EXPECT_EQ(required_size.height(), text_bounds.height());
690 text_bounds.SetRect(0, 0, 0, 0);
691 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
694 EXPECT_EQ(border.left() + extra.width() / 2, text_bounds.x());
695 EXPECT_EQ(border.top() + extra.height() / 2 , text_bounds.y());
696 EXPECT_EQ(required_size.width(), text_bounds.width());
697 EXPECT_EQ(required_size.height(), text_bounds.height());
706 text_bounds.SetRect(0, 0, 0, 0);
707 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
710 EXPECT_EQ(border.left() + extra.width(), text_bounds.x());
711 EXPECT_EQ(border.top() + extra.height() / 2 , text_bounds.y());
712 EXPECT_EQ(required_size.width(), text_bounds.width());
713 EXPECT_EQ(required_size.height(), text_bounds.height());
722 text_bounds.SetRect(0, 0, 0, 0);
723 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
726 EXPECT_EQ(border.left(), text_bounds.x());
727 EXPECT_EQ(border.top() + extra.height() / 2 , text_bounds.y());
728 EXPECT_EQ(required_size.width(), text_bounds.width());
729 EXPECT_EQ(required_size.height(), text_bounds.height());
762 gfx::Rect text_bounds;
764 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
766 EXPECT_EQ(extra.width() / 2, text_bounds.x());
767 EXPECT_EQ(extra.height() / 2, text_bounds.y());
768 EXPECT_GT(text_bounds.width(), kMinTextDimension);
769 EXPECT_GT(text_bounds.height(), kMinTextDimension);
779 gfx::Rect center_bounds(text_bounds);
783 text_bounds.SetRect(0, 0, 0, 0);
784 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
786 EXPECT_EQ(extra.width(), text_bounds.x());
787 EXPECT_EQ(extra.height() / 2, text_bounds.y());
788 EXPECT_GT(text_bounds.width(), kMinTextDimension);
789 EXPECT_GT(text_bounds.height(), kMinTextDimension);
802 text_bounds.SetRect(0, 0, 0, 0);
803 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
805 EXPECT_EQ(0, text_bounds.x());
806 EXPECT_EQ(extra.height() / 2, text_bounds.y());
807 EXPECT_GT(text_bounds.width(), kMinTextDimension);
808 EXPECT_GT(text_bounds.height(), kMinTextDimension);
833 text_bounds.SetRect(0, 0, 0, 0);
834 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
836 EXPECT_EQ(border.left() + extra.width() / 2, text_bounds.x());
837 text_bounds.y());
838 EXPECT_EQ(center_bounds.width(), text_bounds.width());
839 EXPECT_EQ(center_bounds.height(), text_bounds.height());
852 text_bounds.SetRect(0, 0, 0, 0);
853 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
855 EXPECT_EQ(border.left() + extra.width(), text_bounds.x());
856 EXPECT_EQ(border.top() + extra.height() / 2, text_bounds.y());
857 EXPECT_EQ(center_bounds.width(), text_bounds.width());
858 EXPECT_EQ(center_bounds.height(), text_bounds.height());
871 text_bounds.SetRect(0, 0, 0, 0);
872 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
874 EXPECT_EQ(border.left(), text_bounds.x());
875 EXPECT_EQ(border.top() + extra.height() / 2, text_bounds.y());
876 EXPECT_EQ(center_bounds.width(), text_bounds.width());
877 EXPECT_EQ(center_bounds.height(), text_bounds.height());