Home | History | Annotate | Download | only in views

Lines Matching refs:Background

29 // Background class
31 // A background implements a way for views to paint a background. The
32 // background can be either solid or based on a gradient. Of course,
33 // Background can be subclassed to implement various effects.
35 // Any View can have a background. See View::SetBackground() and
39 class VIEWS_EXPORT Background {
41 Background();
42 virtual ~Background();
44 // Creates a background that fills the canvas in the specified color.
45 static Background* CreateSolidBackground(SkColor color);
47 // Creates a background that fills the canvas in the specified color.
48 static Background* CreateSolidBackground(int r, int g, int b) {
52 // Creates a background that fills the canvas in the specified color.
53 static Background* CreateSolidBackground(int r, int g, int b, int a) {
57 // Creates a background that contains a vertical gradient that varies
59 static Background* CreateVerticalGradientBackground(SkColor color1,
62 // Creates a background that contains a vertical gradient. The gradient can
67 static Background* CreateVerticalMultiColorGradientBackground(SkColor* colors,
71 // Creates Chrome's standard panel background
72 static Background* CreateStandardPanelBackground();
74 // Creates a Background from the specified Painter. If owns_painter is
76 static Background* CreateBackgroundPainter(bool owns_painter,
79 // Render the background for the provided view
86 // Returns the "background color". This is equivalent to the color set in
106 DISALLOW_COPY_AND_ASSIGN(Background);