Home | History | Annotate | Download | only in views

Lines Matching defs:Border

26 // Border class.
28 // The border class is used to display a border around a view.
29 // To set a border on a view, just call SetBorder on the view, for example:
30 // view->SetBorder(Border::CreateSolidBorder(1, SkColorSetRGB(25, 25, 112));
31 // Once set on a view, the border is owned by the view.
34 // support the border, views should make sure to use bounds excluding the
35 // border (by calling View::GetLocalBoundsExcludingBorder) when doing layout and
40 class VIEWS_EXPORT Border {
42 Border();
43 virtual ~Border();
45 // Convenience for creating a scoped_ptr with no Border.
46 static scoped_ptr<Border> NullBorder();
48 // Creates a border that is a simple line of the specified thickness and
50 static scoped_ptr<Border> CreateSolidBorder(int thickness, SkColor color);
52 // Creates a border for reserving space. The returned border does not
54 static scoped_ptr<Border> CreateEmptyBorder(int top,
59 // Creates a border of the specified color, and specified thickness on each
61 static scoped_ptr<Border> CreateSolidSidedBorder(int top,
67 // Creates a Border from the specified Painter. The border owns the painter,
68 // thus the painter is deleted when the Border is deleted.
69 // |insets| define size of an area allocated for a Border.
70 static scoped_ptr<Border> CreateBorderPainter(Painter* painter,
73 // Renders the border for the specified view.
76 // Returns the border insets.
79 // Returns the minimum size this border requires. Note that this may not be
80 // the same as the insets. For example, a Border may paint images to draw
81 // some graphical border around a view, and this would return the minimum size
88 DISALLOW_COPY_AND_ASSIGN(Border);