xref: /haiku/headers/os/interface/GradientLinear.h (revision 9f739dd2e868114ce19ae73afcff07caf2ddb8b6)
1 /*
2  * Copyright 2006-2009, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _GRADIENT_LINEAR_H
6 #define _GRADIENT_LINEAR_H
7 
8 
9 #include <Gradient.h>
10 
11 
12 class BPoint;
13 
14 
15 // WARNING! This is experimental API and may change! Be prepared to
16 // recompile your software in a next version of haiku.
17 
18 
19 class BGradientLinear : public BGradient {
20 public:
21 								BGradientLinear();
22 								BGradientLinear(const BPoint& start,
23 									const BPoint& end);
24 								BGradientLinear(float x1, float y1,
25 									float x2, float y2);
26 
27 			BPoint				Start() const;
28 			void				SetStart(const BPoint& start);
29 			void				SetStart(float x1, float y1);
30 
31 			BPoint				End() const;
32 			void				SetEnd(const BPoint& end);
33 			void				SetEnd(float x2, float y2);
34 };
35 
36 #endif // _GRADIENT_LINEAR_H
37